Skip to Content

Disaster recovery strategies

The four disaster recovery strategies, backup and restore, pilot light, warm standby and multi-site active/active, their RPO and RTO, the all-AWS multi-Region design, and DR tips.

Four strategies

The four disaster recovery strategies: backup and restore recovers in hours from backups; pilot light keeps core data live with servers off and recovers in tens of minutes; warm standby runs a full copy at minimum size and recovers in minutes; multi-site active/active runs full production in both sites with near real-time recovery; cost rises as recovery gets faster The four disaster recovery strategies: backup and restore recovers in hours from backups; pilot light keeps core data live with servers off and recovers in tens of minutes; warm standby runs a full copy at minimum size and recovers in minutes; multi-site active/active runs full production in both sites with near real-time recovery; cost rises as recovery gets faster

Faster recovery costs more.

From cheapest and slowest to most expensive and fastest (faster RTO):

  1. Backup and restore (RPO/RTO: hours).
  2. Pilot light (tens of minutes).
  3. Warm standby (minutes).
  4. Hot site / multi-site active/active (near real time).

The first three are active/passive: the DR site doesn't serve traffic until a failover. All four can be used across AWS Regions.

Backup and restore (high RPO)

Backup and restore: on-premises data goes to Amazon S3 through Storage Gateway or Snowball, with lifecycle rules to Glacier; resources already in AWS such as EBS, RDS and Redshift take scheduled snapshots; after a disaster EC2 is restored from AMIs and databases from snapshots Backup and restore: on-premises data goes to Amazon S3 through Storage Gateway or Snowball, with lifecycle rules to Glacier; resources already in AWS such as EBS, RDS and Redshift take scheduled snapshots; after a disaster EC2 is restored from AMIs and databases from snapshots

Cheap to keep, slow to recover.
  • Back up data to AWS: from on premises through Storage Gateway or Snowball to S3, with lifecycle rules to Glacier.
  • In AWS, take scheduled snapshots of EBS, Redshift and RDS (or use AWS Backup).
  • After a disaster, re-create everything: EC2 from AMIs, databases from snapshots (ideally with CloudFormation).
  • Cheap (only storage is billed), but RPO and RTO are high.

Pilot light

Pilot light: Route 53 sends traffic to the corporate data center; the database is continuously replicated to an RDS instance that is always running in AWS, while the EC2 application servers are prepared but not running; on failover they are started and Route 53 points to AWS Pilot light: Route 53 sends traffic to the corporate data center; the database is continuously replicated to an RDS instance that is always running in AWS, while the EC2 application servers are prepared but not running; on failover they are started and Route 53 points to AWS

The core is lit; the rest is ready to switch on.
  • A small version of the app is always running in the cloud: the critical core (the pilot light), usually the database, kept in sync.
  • Very similar to backup and restore, but faster, because critical systems are already up.
  • Application servers are prepared (AMIs, templates) but not running; on failover, start them and switch DNS.

Warm standby

Warm standby: the full system runs in AWS at minimum size, a load balancer, an Auto Scaling group at its minimum and a running RDS secondary kept in sync; on failover Route 53 sends traffic to AWS and the Auto Scaling group scales to production load Warm standby: the full system runs in AWS at minimum size, a load balancer, an Auto Scaling group at its minimum and a running RDS secondary kept in sync; on failover Route 53 sends traffic to AWS and the Auto Scaling group scales to production load

Everything runs, just small.
  • The full system is up and running, but at minimum size.
  • Upon disaster, the environment scales to production load (Auto Scaling) and switch traffic with Route 53 failover.

Multi-site / hot site

Multi-site active/active: full production runs both in the corporate data center and in AWS, and Route 53 sends traffic to both; the database is replicated to a running RDS secondary, so recovery takes seconds to minutes, at the highest cost Multi-site active/active: full production runs both in the corporate data center and in AWS, and Route 53 sends traffic to both; the database is replicated to a running RDS secondary, so recovery takes seconds to minutes, at the highest cost

Both sites serve production all the time.
  • Very low RTO (minutes or seconds), very expensive.
  • Full production scale is running on AWS and on premises, both active.

All-AWS multi-Region

All-AWS multi-Region: two Regions both run production behind load balancers and Auto Scaling groups, Route 53 sends traffic to both, and an Aurora Global Database replicates from the primary in Region A to the secondary in Region B, which can be promoted on failover All-AWS multi-Region: two Regions both run production behind load balancers and Auto Scaling groups, Route 53 sends traffic to both, and an Aurora Global Database replicates from the primary in Region A to the secondary in Region B, which can be promoted on failover

Two Regions, one global database.

The same multi-site idea with two AWS Regions: production in both, Route 53 active-active, and Aurora Global Database replicating to the secondary Region (promote it on failover).

Disaster recovery tips

  • Backup:
    • EBS snapshots, RDS automated backups and snapshots, etc.;
    • regular pushes to S3 / S3 IA / Glacier, lifecycle rules, cross-Region replication;
    • from on premises: Snowball or Storage Gateway.
  • High availability:
    • use Route 53 to migrate DNS from Region to Region;
    • RDS Multi-AZ, ElastiCache Multi-AZ, EFS, S3;
    • Site-to-Site VPN as a recovery from Direct Connect.
  • Replication:
    • RDS replication (cross-Region), Aurora + Global Databases;
    • database replication from on premises to RDS;
    • Storage Gateway.
  • Automation:
    • CloudFormation / Elastic Beanstalk to re-create a whole new environment;
    • recover / reboot EC2 instances with CloudWatch if alarms fail;
    • AWS Lambda functions for customized automations.
  • Chaos: Netflix has a "simian army" randomly terminating EC2 instances, to prove the system survives failures. (On AWS, the Fault Injection Service does this in a controlled way.)

AWS Resilience Hub can check whether a workload is likely to meet its RPO and RTO targets. Test the DR plan regularly: an untested plan is a guess.

Exam tips

  • "Lowest cost, RPO/RTO of hours is fine" → backup and restore.
  • "Database must stay in sync, servers can start on failover, tens of minutes" → pilot light.
  • "Scaled-down full copy always running, minutes" → warm standby.
  • "Near-zero downtime, cost no object" → multi-site active/active.
  • "Multi-Region DR for a relational database with RPO of about a second" → Aurora Global Database.

Common traps

  • "Pilot light runs a small copy of the whole app." Only the core (data) runs; that's warm standby.
  • "Warm standby serves production traffic normally." It's passive until failover; active/active is multi-site.

Check yourself

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt