ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

သဘောတရား

Multi-tier architectures

Web, application and data tiers, each in its own subnets, scaled on its own and reachable only from the tier above.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

Public subnetsApp subnetsData subnets
Users
Load BalancingEC2ElastiCacheRDSHTTPScacheSQL
Each tier sits in its own subnets. Only the load balancer is public.
Security group chaining: each tier trusts only the tier above it.

ဘာလဲ

A multi-tier design splits an application into layers. The web tier takes requests from users. The application tier runs the business logic. The data tier stores data. Each tier can scale, fail and be secured on its own. The three-tier design is the classic exam answer.

ဘာလဲ

On AWS, an Application Load Balancer sits in public subnets. The app servers are Amazon EC2 instances in an Auto Scaling group that spans two or more Availability Zones, in private subnets. The database is Amazon RDS Multi-AZ, in separate private subnets. Security groups chain the tiers: the app tier accepts traffic only from the load balancer’s security group, and the database accepts traffic only from the app tier’s security group.

ဘာလဲ

Add a cache where reads repeat: Amazon CloudFront for static content in front of the load balancer, and Amazon ElastiCache between the app tier and the database. Scale each tier on its own metric: the app tier on requests per target or CPU, the database with read replicas.

မှတ်ထားရန်

  • Three tiers: web, application, data. Each in its own subnets.
  • Only the load balancer is public. App and database tiers sit in private subnets.
  • Security group chaining: allow a source security group, not an IP range.
  • Spread every tier over at least two AZs.

မှတ်ထားရန်

  • Cache at the edge (CloudFront) and in front of the database (ElastiCache).
  • Scale the tiers separately. The database scales with a bigger size and read replicas, not with an Auto Scaling group.

စာမေးပွဲမှာ

  • “The database must not be reachable from the internet” points to a private subnet and a security group that allows only the app tier.
  • “Highly available web application with a relational database” points to a load balancer, Auto Scaling across AZs and RDS Multi-AZ.
  • “Reduce load on the database for repeated reads” points to ElastiCache or read replicas.