The four AWS disaster recovery strategies, compared
Backup and restore, pilot light, warm standby and multi-site active/active: what runs where, typical RPO and RTO, the AWS services in each, and how to choose.
Start from RPO and RTO
Two numbers drive every disaster recovery design, and the business sets both:
- Recovery point objective (RPO): the most time that can pass between the last recovery point and the interruption. It is how much data you can afford to lose, measured in time.
- Recovery time objective (RTO): the longest acceptable delay between the interruption and the service being restored. It is how long you can afford to be down.
The shorter the RPO and RTO, the more has to run all the time in the recovery Region, and the more it costs. AWS's own guidance is that a recovery strategy costing more than the failure it protects against isn't worth building, unless something else, such as regulation, requires it.
Disaster recovery isn't the same as high availability. Spreading a workload across Availability Zones handles the loss of a data centre, and a well-architected, highly available workload may need nothing more than backups for that. The four strategies below are for losing a whole Region, or for regulations that require a second one.
The four strategies at a glance
| Strategy | What runs in the recovery Region | Typical RPO and RTO | Cost |
|---|---|---|---|
| Backup and restore | Nothing; backups and infrastructure code are copied there | Hours | Lowest |
| Pilot light | Data replicated continuously; core infrastructure ready; application servers off | Tens of minutes | Low |
| Warm standby | A scaled-down but fully working copy that can take traffic at once | Minutes | Higher |
| Multi-site active/active | Full production, serving users from every Region | Near zero | Highest |
The RPO and RTO ranges follow AWS's disaster recovery whitepaper. Your real numbers depend on how you build and test each strategy.
Backup and restore
Back up data regularly to the recovery Region, and keep everything needed to rebuild the rest. The RPO is the time since the last backup, and the RTO is the time to redeploy and restore, usually hours.
- AWS Backup schedules backups of resources such as EC2 instances, EBS volumes, RDS and Aurora databases, DynamoDB tables, EFS and FSx file systems, and copies them to another Region.
- S3 Cross-Region Replication with versioning copies objects continuously and keeps earlier versions to restore from.
- Infrastructure as code, with AWS CloudFormation or the AWS CDK, redeploys the environment quickly and without mistakes. Back up AMIs, application code and configuration too.
- Point-in-time backups also protect against data corruption and accidental deletion, which continuous replication would copy straight across.
Pilot light
Data is replicated to the recovery Region all the time, and the core infrastructure exists there, but the application servers are switched off or, better, not yet deployed but ready to deploy. In a disaster you start the application tier, scale it up and send traffic to it.
- Continuous cross-Region replication: S3 Replication, RDS cross-Region read replicas, Aurora global databases, DynamoDB global tables, DocumentDB global clusters and ElastiCache Global Datastore.
- AWS Elastic Disaster Recovery replicates server-based applications and databases continuously at block level, and launches recovery instances only when you need them.
- Failing over means promoting the database copy, deploying or starting the servers, and switching traffic.
Warm standby
A complete copy of production runs in the recovery Region at a smaller size. Because it can already handle requests, failing over is mostly scaling it out, for example by raising the desired capacity of its Auto Scaling groups, and moving traffic to it.
Multi-site active/active
The workload runs in full in two or more Regions, and every Region serves users. Recovery time can be close to zero, although recovering from data corruption may still rely on backups, which means some data loss. It is the most complex and costly strategy.
- Route 53 routing policies, such as latency, geolocation or failover, or AWS Global Accelerator, send users to healthy Regions.
- DynamoDB global tables accept writes in every Region. Aurora global databases replicate to secondary Regions, can forward writes to the primary, and can promote a secondary Region in under a minute.
- A variant, hot standby, keeps a full-size copy running but sends users to only one Region.
Failing over safely
- Rely on data plane actions during a failover, such as DNS changes driven by Route 53 health checks. Control planes, which you use to create and change resources, are less available during large events.
- Amazon Application Recovery Controller (ARC) gives you highly available switches for failing over by hand.
- Test recovery regularly, and use AWS Resilience Hub to check whether a workload is likely to meet its RTO and RPO.
Choosing in an exam scenario
- Lowest cost, and an RTO of hours is acceptable: backup and restore.
- Keep costs low but recover in tens of minutes, with the database replicated and the servers not running: pilot light.
- Recover in minutes, with a smaller copy of the environment already running: warm standby.
- Near-zero downtime or data loss, or users served from several Regions: multi-site active/active.
- Servers replicated at block level from on premises or another cloud, with low-cost standby: AWS Elastic Disaster Recovery.