0%
AWS Solutions Architect Associate (SAA-C03) Exam Prep: Secure, Resilient, High-Performing and Cost-Optimized Architectures
Domain 1: Design Secure Architectures
Domain 3: Design High-Performing Architectures
Domain 4: Design Cost-Optimized Architectures
Final Review and Mock Exams
Designing for High Availability
High availability means a system keeps serving users when parts of it fail. On AWS, the basic tool is spreading resources across Availability Zones, and most questions test whether a design really survives the failure of an instance, a zone or a dependency. This lesson covers Multi-AZ design for each tier, database options, Route 53 routing and the reasoning that ties them together. Regions, AZs and Blast Radius and RDS and Aurora Architecture in the AWS in Practice course go deeper.
Availability, durability and resilience
Availability is the share of time a system is usable, often expressed as a percentage such as 99.9 percent, about 8.8 hours of downtime a year, or 99.99 percent, about 53 minutes a year. Durability is the likelihood that stored data is not lost; S3 is designed for eleven nines of durability, which says nothing about whether it is reachable at a given moment. Resilience is the ability to recover from failures and keep meeting requirements. Disaster recovery, covered in the next lesson, is about recovering from large events such as the loss of a Region.
Regions and Availability Zones
A Region is a geographic area with several Availability Zones. Each zone is one or more data centres with independent power, cooling and networking, physically separated from the other zones by a meaningful distance but connected to them with low latency links. Failures such as a power loss, a flood or a network problem usually affect a single zone. Designs that spread across zones survive these failures; designs that place everything in one zone do not.
Multi-AZ for each tier
A highly available architecture has no tier confined to one zone. The load balancer is enabled in at least two zones. The web and application tiers run in Auto Scaling groups spanning subnets in each zone, as covered in the scaling lesson. The database uses a Multi-AZ deployment or a cluster with members in several zones. Caches such as ElastiCache use replicas in other zones with automatic failover. NAT gateways are placed one per zone, with each private subnet routing to the NAT gateway in its own zone, so a zone failure does not cut off the others' internet access.
The last point is a frequent trap. A single NAT gateway in one zone is a single point of failure for outbound internet traffic from every zone. Similarly, a single EC2 instance acting as a bastion, proxy or scheduler is a single point of failure, which is why managed services such as Systems Manager Session Manager and EventBridge Scheduler are preferred.
Managed services that are already Multi-AZ
Many AWS services are Regional and spread across zones automatically: S3 Standard, DynamoDB, SQS, SNS, Lambda, API Gateway, EFS Standard, Kinesis Data Streams and Step Functions. Using them removes the need to design zone redundancy yourself. Some have single zone variants that cost less but lose this protection, such as S3 One Zone-IA and EFS One Zone, which suit reproducible or non critical data only. When a question requires data to survive the loss of a zone, single zone storage classes are wrong.
Single points of failure
Reviewing a design for availability means asking, for each component, what happens if it fails. A single instance, a single NAT gateway, one database without a standby, a self managed DNS server, a VPN with one tunnel or one Direct Connect link, and a license server on one host are all common single points of failure in exam scenarios. The fix is usually redundancy across zones or a managed service that provides it.
Failure detection and recovery time
Redundancy only helps if failures are detected and traffic moves. Load balancer health checks stop routing to failed targets within seconds to a minute. Auto Scaling replaces failed instances in minutes. RDS Multi-AZ failover takes about one to two minutes. Aurora failover usually takes under a minute. DNS changes depend on record TTLs. Knowing these rough numbers helps compare options when a question states a maximum acceptable interruption.
EC2 instance recovery
For single instances that cannot be made redundant, such as a legacy licensed application, EC2 automatic recovery restarts an instance on new hardware when a system status check fails, keeping its instance ID, private IP addresses, Elastic IP and EBS volumes. It is not high availability, because the instance is down while it recovers, but it is better than manual recovery and is a common answer when the question explicitly says the application cannot run on more than one instance.
Composite availability
The availability of a system depends on how its components are combined. Components in series, where every one must work, multiply their availabilities: a web tier at 99.9 percent depending on a database at 99.9 percent gives about 99.8 percent overall. Components in parallel, where any one is enough, combine so that the system fails only when all fail: two independent copies at 99 percent each give 99.99 percent together. This is why redundancy raises availability so effectively, and why every additional hard dependency lowers it. A design that depends on many services in series needs each to be far more available than the target.
Zone IDs and placement across accounts
Availability Zone names such as us-east-1a are mapped to physical zones differently in each account, to spread load. Zone IDs, such as use1-az1, identify the same physical zone in every account. When resources in several accounts must be in the same physical zone, for example to keep traffic within a zone for latency or cost, or spread across different zones for resilience, use zone IDs rather than names. Shared subnets through Resource Access Manager keep the placement consistent automatically.
Subnet and IP planning for redundancy
Each tier needs a subnet in every zone it uses, sized for its peak plus the extra capacity that arrives when another zone fails. A common mistake is giving each zone a small subnet that fills up during scale out after a zone failure, so new instances cannot launch even though the account has capacity. Planning address ranges with room for growth and for Lambda functions, containers with their own interfaces and load balancer nodes avoids this. When a question describes failed launches with an error about insufficient IP addresses, larger or additional subnets are the fix.
Availability for hybrid connectivity
Connections to on premises networks are often the weakest link. A Site-to-Site VPN connection has two tunnels to different AWS endpoints, and both should be configured on the customer side, ideally with two customer gateway devices. Direct Connect resilience recommendations range from two connections at one location for development, to connections at two locations for high resilience, to two connections at each of two locations for maximum resilience. A VPN can also back up a Direct Connect link at low cost. Questions that ask for highly available hybrid connectivity are testing these combinations, and they are covered further in the networking lesson.
Choosing an availability target
Not every system needs four nines. Higher availability costs more in redundancy, engineering and testing, so the target should match the business impact of downtime. An internal reporting tool might accept hours of downtime, while a payment API might need minutes per year. The exam signals the target through phrases such as must remain available during an Availability Zone failure, which sets a clear minimum design, or most cost effective, which suggests avoiding redundancy beyond what is required.
Worked example
A company runs a web application on two EC2 instances in one zone, with a MySQL database on a third instance and a single NAT gateway. To make it highly available with little effort, it moves the database to RDS Multi-AZ, puts the web instances in an Auto Scaling group across three zones behind an ALB, moves sessions to ElastiCache with replicas, adds a NAT gateway in each zone and replaces the bastion host with Session Manager. Each change removes one single point of failure, and together they let the application survive the loss of any instance or any zone.
Place a NAT gateway in each Availability Zone and route each private subnet to the one in its own zone. Otherwise a zone failure cuts outbound internet access for all zones.