Concept · Builds on 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.
You know from 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.
- Scope
- One AZ
- What you do
- Run copies in several AZs
- Scope
- One AZ
- What you do
- Take snapshots, replicate data in the app
- Scope
- One AZ
- What you do
- Create one in each AZ
- Scope
- One AZ, unless Multi-AZ
- What you do
- Turn on Multi-AZ
- Scope
- Region, 3 or more AZs
- What you do
- Nothing: already spread
- Scope
- Region
- What you do
- Nothing: already spread
| Service | Scope | What you do |
|---|---|---|
| One AZ | Run copies in several AZs | |
| One AZ | Take snapshots, replicate data in the app | |
| NAT gateway cost design | One AZ | Create one in each AZ |
| One AZ, unless Multi-AZ | Turn on Multi-AZ | |
| Region, 3 or more AZs | Nothing: already spread | |
| Region | Nothing: already spread |
1 / 2
- Scope
- One AZ
- What you do
- Run copies in several AZs
- Scope
- One AZ
- What you do
- Take snapshots, replicate data in the app
- Scope
- One AZ
- What you do
- Create one in each AZ
| Service | Scope | What you do |
|---|---|---|
| One AZ | Run copies in several AZs | |
| One AZ | Take snapshots, replicate data in the app | |
| NAT gateway cost design | One AZ | Create one in each AZ |
2 / 2
- Scope
- One AZ, unless Multi-AZ
- What you do
- Turn on Multi-AZ
- Scope
- Region, 3 or more AZs
- What you do
- Nothing: already spread
- Scope
- Region
- What you do
- Nothing: already spread
| Service | Scope | What you do |
|---|---|---|
| One AZ, unless Multi-AZ | Turn on Multi-AZ | |
| Region, 3 or more AZs | Nothing: already spread | |
| Region | Nothing: already spread |
What it is
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.
What it is
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.
Remember
- 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.
Remember
- The AZ name us-east-1a differs between accounts. The AZ ID use1-az1 does not.
- Data transfer between AZs is charged.
On the exam
- “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.
Do not mix it up with
- Multi-Region designsActive-passive or active-active, how data reaches the second Region, and how Route 53 sends users to the healthy one.
AWS Auto ScalingPick the scaling policy and metric, set warm-up, and know warm pools, lifecycle hooks and launch templates.
- NAT gateway cost designA NAT gateway bills per hour and per GB, so place it by AZ and send heavy traffic around it.
Also listed under
In this task · 2.2
- Regions and AZs as the HA building block
- Multi-Region designs
Route 53
- Disaster recovery strategies
Elastic Disaster Recovery
- Failover and distributed design patterns
- AWS Well-Architected Framework
- Immutable infrastructure and deployments
CloudFormation
- Database high availability
- Storage durability and replication
CloudWatch
Health Dashboard
X-Ray
- Service Quotas
- Making legacy apps reliable without code changes
- Migrating workloads to AWS
- Choosing purpose-built services
- Managed AI services recap
Backup
Load Balancing
RDS Proxy
- Throttling strategies