Skip to main content
Cloud basicsLesson 14 of 17

When a Whole Region Goes Down

Spreading across availability zones protects you from one data center failing. It does not help when the whole region has an outage, or when someone deletes a table by mistake. Follow a store as it prepares a second region and then has to use it.

StrategyNone yet
Data lost (RPO)?
Downtime (RTO)?
Standing cost1 region
Region A · primaryRegion B · recoveryBackup account · separate credentialsUsershop.example.comDNS failoverHealth check · TTLAppRegion A · activeDB primaryRegion AAppRegion BDB in region BReplica or restoreIaC templatesRebuild infraBackup copiesImmutable · lockOrdersWrites
RequestWatchAppears in a later step

What you will learn

  • Why replication alone is not a backup
  • The 3-2-1 rule, separate accounts and immutable backups
  • Backup and restore, pilot light, warm standby and active-active
  • How DNS failover and replication lag set real RTO and RPO
  • Hidden dependencies, split brain, and why drills matter

The four DR strategies​

These ranges follow the AWS disaster recovery whitepaper. Your real numbers come from drills.

StrategyWhat runs in region BRPORTOStanding cost
Backup and restoreOnly backup copies; infrastructure is created from IaC on the dayHours (since the last backup)Hours$
Pilot lightLive data (replica); app off or scaled to zeroSeconds to minutes (replication lag)Tens of minutes$$
Warm standbyA smaller full copy that can serve traffic right awaySeconds to minutesMinutes$$$
Multi-site active-activeFull capacity, serving users all the timeNear zeroNear zero$$$$

Whatever the strategy, keep backups as well: only a point-in-time copy undoes a deleted table or encrypted data.

Try it yourself​

These are AWS examples. Other clouds have the same building blocks under different names.

# Copy a DB snapshot to the recovery region (run against the destination region; encrypted snapshots also need --kms-key-id)
aws rds copy-db-snapshot --region ap-northeast-1 \
--source-db-snapshot-identifier arn:aws:rds:ap-northeast-2:<account>:snapshot:<snapshot> \
--target-db-snapshot-identifier <snapshot>-dr

aws ec2 copy-snapshot --region ap-northeast-1 --source-region ap-northeast-2 --source-snapshot-id <snap-id> # Disk snapshot copy

aws backup describe-backup-vault --backup-vault-name <vault> # Locked: is the vault lock on?
aws route53 list-health-checks # Health checks behind DNS failover
aws route53 get-health-check-status --health-check-id <id> # What each checker sees right now
dig +noall +answer shop.example.com # The TTL clients will cache

Restore drill checklist: pick a backup at random → restore into an empty environment → start the app against it → check the newest record's time (your RPO) → write down the total time (your RTO) and every manual step.

Check yourself

  1. Someone runs DROP TABLE on the primary DB in region A. A cross-region replica runs in region B. What gets the data back?
  2. Region A goes down and the replica in region B is promoted to primary. How much data is lost?
  3. An internal tool can be down for hours, and the team wants the lowest standing cost. Which DR strategy fits?

Further reading: Disaster recovery options in the cloud (AWS whitepaper) · Reliability pillar (AWS Well-Architected) · DNS failover (Route 53) · Disaster recovery planning guide (Google Cloud) · When One Availability Zone Goes Down · How DNS Finds an Address