Reliability
Overview
The Reliability pillar is about a workload performing its intended function correctly and consistently when expected, including recovering from failures and meeting changing demand. In AWS terms it means designing so that a failed instance, AZ or even Region does not take your application down for long.
Everything fails eventually, so reliable architectures assume failure and automate recovery. Instead of repairing a broken server by hand, you let an Auto Scaling group replace it. Instead of one big database, you run it across Availability Zones with automatic failover.
Reliability is measured with availability (percentage of time the system works), RPO (how much data you can lose) and RTO (how long you can be down). The exam constantly asks you to choose the architecture that meets given RPO and RTO at the lowest cost.
Key Concepts
- Availability is uptime percentage: 99.9% allows ~8.8 hours/year of downtime, 99.99% ~52 minutes, 99.999% ~5 minutes.
- RPO (Recovery Point Objective) is the maximum acceptable data loss; RTO (Recovery Time Objective) is the maximum acceptable downtime.
- The four DR strategies are Backup and Restore, Pilot Light, Warm Standby and Multi-site Active/Active, in rising cost and falling RTO/RPO.
- Design principles: automatically recover from failure, test recovery procedures, scale horizontally, stop guessing capacity, manage change in automation.
- Use multiple AZs for high availability and multiple Regions for disaster recovery or global resilience.
- Decouple components with SQS/SNS/EventBridge and use retries with exponential backoff and jitter.
- Monitor and request service quotas (formerly limits) before they cause failures; Trusted Advisor and Service Quotas help.
- Health checks (ELB, Route 53) and self-healing (Auto Scaling, EC2 auto recovery) are the basis of automatic recovery.
Detailed Notes
Four focus areas
- Foundations: service quotas, network topology (multi-AZ subnets, IP planning, connectivity redundancy such as two Direct Connect links or DX + VPN).
- Workload architecture: service-oriented or microservice design, loosely coupled components, idempotent operations.
- Change management: auto scaling, monitoring, deploying changes with automation and safe strategies.
- Failure management: backups, fault isolation, DR, testing.
Availability maths
| Availability | Downtime per year | Downtime per month |
|---|---|---|
| 99% | 3.65 days | 7.3 hours |
| 99.9% | 8.77 hours | 43.8 minutes |
| 99.95% | 4.38 hours | 21.9 minutes |
| 99.99% | 52.6 minutes | 4.4 minutes |
| 99.999% | 5.26 minutes | 26 seconds |
Components in series multiply (lower overall availability); components in parallel (redundancy) improve it. Two independent 99.9% components in parallel give about 99.9999%.
Disaster recovery strategies
| Strategy | RPO | RTO | Cost | How it works |
|---|---|---|---|---|
| Backup & Restore | Hours | 24 h+ | $ | Backups (AWS Backup, snapshots, S3 CRR) restored into a new Region/infra on demand |
| Pilot Light | Minutes | Tens of minutes to hours | $$ | Core data replicated and always on (e.g. RDS replica); app servers off, started on failover |
| Warm Standby | Seconds-minutes | Minutes | $$$ | Scaled-down full copy always running; scale up on failover |
| Multi-site Active/Active | Near zero | Near zero | $$$$ | Full capacity in 2+ Regions serving traffic (Route 53, Global Accelerator, Aurora Global, DynamoDB global tables) |
Reliability building blocks by layer
| Layer | Pattern | AWS feature |
|---|---|---|
| DNS | Health-checked failover | Route 53 failover/latency/weighted routing (100% SLA) |
| Edge | Absorb and retry | CloudFront origin failover groups, Global Accelerator |
| Compute | Self-healing, horizontal scale | ALB + Auto Scaling group across AZs, ELB health checks |
| Decoupling | Buffer spikes | SQS (with DLQ), SNS, EventBridge, Kinesis |
| Database | Synchronous standby, replicas | RDS Multi-AZ (failover about 60-120 s), Aurora (6 copies across 3 AZs, ~30 s failover), DynamoDB (multi-AZ by default, global tables) |
| Storage | Durable copies | S3 (11 nines, 3+ AZs), EFS (multi-AZ), EBS snapshots, AWS Backup |
| Network | Redundant connectivity | 2 DX locations, DX + VPN, multiple NAT Gateways (one per AZ) |
Failure-handling patterns
- Retries with exponential backoff and jitter avoid retry storms.
- Idempotency so retried requests do not duplicate work.
- Circuit breaker stops calls to a failing dependency; bulkheads isolate failures; graceful degradation serves cached or partial results.
- Dead-letter queues capture poison messages.
- Throttling and load shedding protect downstream systems (API Gateway usage plans, SQS buffering).
Example: self-healing Auto Scaling group
aws autoscaling create-auto-scaling-group \
--auto-scaling-group-name web-asg \
--launch-template LaunchTemplateName=web-lt,Version='$Latest' \
--min-size 2 --max-size 6 --desired-capacity 2 \
--vpc-zone-identifier "subnet-aaa111,subnet-bbb222,subnet-ccc333" \
--target-group-arns arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/web/abc123 \
--health-check-type ELB --health-check-grace-period 120
With --health-check-type ELB the group replaces instances that fail the load balancer health check, not just EC2 status checks.
Testing reliability
- Restore backups regularly; an untested backup is not a backup.
- Run game days and use AWS Fault Injection Service to inject failures such as instance termination or AZ network loss.
- Use AWS Elastic Disaster Recovery (DRS) for continuous block-level replication of servers to AWS and AWS Resilience Hub to assess resilience against RPO/RTO targets.
Real World Example
Scenario — an online ticketing company must survive an entire Region failure with minimal data loss.
The business sets RPO under 1 minute and RTO under 15 minutes for the checkout service, while the marketing site can tolerate hours of downtime. The architects therefore choose different DR strategies per workload.
Checkout runs warm standby: the primary Region has an ALB, Auto Scaling group across three AZs and Aurora Global Database; the secondary Region keeps a scaled-down copy of the application tier and an Aurora secondary cluster with typical replication lag under one second. Route 53 health checks with failover routing shift traffic, and a runbook promotes the Aurora secondary and scales out the ASG.
Order processing is decoupled with SQS and DLQs so spikes do not overload the payment provider. The marketing site uses simple backup and restore with S3 cross-Region replication. Quarterly game days validate recovery times, and the team monitors service quotas in the secondary Region so failover is not blocked by limits.
Architecture Diagram
Route 53 fails over to a scaled-down secondary Region fed by Aurora Global Database replication.
- 1Route 53 sends traffic to the primary Region while its health check passes.
- 2Within the Region, the ALB and Auto Scaling group spread load across AZs and replace failed instances.
- 3Aurora Global Database replicates asynchronously to the secondary Region, typically under a second behind.
- 4If the primary fails, Route 53 fails over, the Aurora secondary is promoted and the secondary ASG scales out.
Best Practices
- ✓Design for failure: deploy across at least two AZs, remove single points of failure and avoid state on instances.
- ✓Define RPO/RTO per workload and choose the cheapest DR strategy that meets them.
- ✓Decouple tiers with queues and use retries with exponential backoff and jitter plus DLQs.
- ✓Use health checks and auto scaling so recovery is automatic, with ELB health check type on ASGs.
- ✓Test recovery regularly: restore backups, run game days and use Fault Injection Service.
- ✓Monitor and raise service quotas in every Region, including the DR Region.
- ✓Automate backups with AWS Backup (cross-Region and cross-account copy, Vault Lock) and keep infrastructure as code for rebuilds.
- ✓Provide redundant network connectivity (two Direct Connect locations or DX plus VPN).
Common Interview Questions
Exam Tips
SAA-C03 focus
- Know the four DR strategies in order of cost: Backup & Restore < Pilot Light < Warm Standby < Multi-site Active/Active.
- "Core database replicated, servers off until disaster" -> Pilot Light; "scaled-down full copy running" -> Warm Standby.
- "Automatic failover of a relational database" -> RDS/Aurora Multi-AZ; "scale reads" -> read replicas.
- "Survive loss of an AZ" -> multi-AZ ASG + ELB; "survive loss of a Region" -> multi-Region + Route 53 failover.
- "Decouple to handle spikes and failures" -> SQS (and DLQ for failed messages).
- Route 53 failover routing needs health checks; Global Accelerator also provides fast failover with static anycast IPs.
- Untested backups are risky: choose answers that automate and test recovery (AWS Backup, Fault Injection Service).
- Servers to AWS DR with continuous replication -> AWS Elastic Disaster Recovery.
Finished this lesson?
0 of 64 lessons done · 0% of the course

