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

သဘောတရား · CLF-C02 အပေါ် ဆက်လေ့လာရန်

Regions and AZs as the HA building block

Which services are Region-wide and which belong to one AZ, and how to spread tiers so that one AZ can fail.

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

Cloud Practitioner မှ သင်သိပြီးသားများ

  • A Region is a geographic area with several Availability Zones. AZs are separate data centers with their own power, cooling and network.
  • Run every production workload in at least two AZs, so one AZ can fail.
  • RDS Multi-AZ keeps a standby in another AZ. S3, DynamoDB and Lambda already span AZs.
  • Edge locations serve content close to users.
Cloud Practitioner သင်ခန်းစာကို ဖတ်ရန်
  • EC2

    Scope
    One AZ
    What you do
    Run copies in several AZs
  • EBS

    Scope
    One AZ
    What you do
    Take snapshots, replicate data in the app
  • NAT gateway cost design

    Scope
    One AZ
    What you do
    Create one in each AZ
  • RDS

    Scope
    One AZ, unless Multi-AZ
    What you do
    Turn on Multi-AZ
  • S3

    Scope
    Region, 3 or more AZs
    What you do
    Nothing: already spread
  • DynamoDB

    Scope
    Region
    What you do
    Nothing: already spread
Know which services you must spread yourself.

1 / 2

  • EC2

    Scope
    One AZ
    What you do
    Run copies in several AZs
  • EBS

    Scope
    One AZ
    What you do
    Take snapshots, replicate data in the app
  • NAT gateway cost design

    Scope
    One AZ
    What you do
    Create one in each AZ

2 / 2

  • RDS

    Scope
    One AZ, unless Multi-AZ
    What you do
    Turn on Multi-AZ
  • S3

    Scope
    Region, 3 or more AZs
    What you do
    Nothing: already spread
  • DynamoDB

    Scope
    Region
    What you do
    Nothing: already spread
Know which services you must spread yourself.
Each tier has a copy in each AZ. The standby takes over if AZ A fails.

ဘာလဲ

Design by scope. Some resources are Region-wide and already span AZs: Amazon S3 (except the One Zone classes), DynamoDB, SQS, SNS, Lambda, EFS Standard, Elastic Load Balancing and the VPC itself. Others live in exactly one AZ: an EC2 instance, an EBS volume, a subnet, a zonal NAT gateway, an ElastiCache node and an RDS Single-AZ database. For these, you create copies in several AZs yourself. A Regional NAT gateway is one gateway that covers many AZs.

ဘာလဲ

The usual layout uses two or three AZs. Each has a public and a private subnet and its own zonal NAT gateway. Instances run in an Auto Scaling group that spans the subnets, a load balancer covers all AZs, and the database has a standby in another AZ. Size for failure. With 2 AZs, each must be able to carry the full load. With 3 AZs, each needs spare room for half of its own load.

AZ names such as us-east-1a map to different physical zones in different accounts. An AZ ID such as use1-az1 is the same in every account. Use AZ IDs when two accounts must place resources in the same zone. Traffic between AZs is fast but it costs money and adds a little latency.

မှတ်ထားရန်

  • Region-wide: S3, DynamoDB, SQS, SNS, Lambda, EFS Standard, load balancers, the VPC.
  • One AZ only: EC2, EBS, subnets, zonal NAT gateways, ElastiCache nodes, RDS Single-AZ.
  • Use at least two AZs. Make one zonal NAT gateway per AZ, or use one Regional NAT gateway.
  • Size so that the remaining AZs can carry the load when one fails.

မှတ်ထားရန်

  • The AZ name us-east-1a differs between accounts. The AZ ID use1-az1 does not.
  • Data transfer between AZs is charged.

စာမေးပွဲမှာ

  • “Survive the failure of one Availability Zone” points to instances in an Auto Scaling group across two or more AZs behind a load balancer.
  • “Private instances lose internet access when one AZ fails” points to a NAT gateway in each AZ, or a Regional NAT gateway.
  • “Two accounts must use the same physical AZ” points to AZ IDs, not AZ names.