Sub topic 1
Designing Highly Available Multi-AZ Architectures on AWS
Prerequisites
Assume you know basic AWS concepts, including Regions, VPCs, EC2, IAM, and subnets. You should also understand basic TCP/IP routing and be able to read simple AWS CLI commands.
What High Availability Means
High availability means keeping a workload usable when part of its infrastructure fails. Availability is measured as a percentage over a period. An SLA, or service-level agreement, is a provider’s commitment about availability. Your application’s availability can be lower because of configuration errors, dependencies, or maintenance.
Two recovery targets describe the impact of failure:
- RTO (Recovery Time Objective): the maximum acceptable time before service returns.
- RPO (Recovery Point Objective): the maximum acceptable amount of data loss, measured in time.
For example, an RTO of 10 minutes and an RPO of 1 minute require recovery within 10 minutes while losing no more than 1 minute of updates.
Regions and Availability Zones
An AWS Region is a separate geographic area. An Availability Zone (AZ) is an isolated infrastructure location inside a Region. AZs have independent power, cooling, and networking, but they are connected with low-latency links.
An AZ name, such as us-east-1a, is mapped independently for each AWS account. An AZ ID, such as use1-az1, identifies the underlying zone consistently across accounts. Use AZ IDs when coordinating shared networks or comparing account placement.
Failure Domains and Single Points of Failure
A failure domain is a component or boundary that can fail together. A single point of failure (SPOF) is a required component with no usable replacement.
Check every tier: load balancers, subnets, NAT gateways, instances, databases, queues, and DNS. Two instances in one AZ still share that AZ’s failure domain. A single NAT gateway can also become a zonal or routing bottleneck.
Subnets and Zonal Egress
Create separate public and private subnets in at least two AZs. Place load balancers in public subnets and application instances in private subnets. Associate each private subnet with a route table that sends internet-bound traffic to a NAT gateway in the same AZ. This avoids cross-AZ dependency and limits cross-AZ data charges.
Exercise
An application has two EC2 instances in one AZ and one NAT gateway in that AZ. Is it multi-AZ?
Show answer
No. Both the compute tier and egress path depend on one AZ. Add instances and a NAT gateway with routes in another AZ.