Pick and test a recovery pattern for an AWS workload
Choose backup and restore, pilot light, warm standby or multi-site from RPO and RTO, and plan a recovery test with its cost.
By Invicly Tech, , in AWS Cloud Engineering. About 11 minutes to read.
In short
Disaster recovery (DR) is your plan for getting a workload back after a big failure, such as a lost Region, deleted data or a bad deploy that corrupts records. You choose a pattern from two numbers: how much data you can lose (RPO) and how long you can be down (RTO). Faster recovery costs more, and no plan counts until you have tested it.
Think of it like this: Backup and restore is a spare key at a friend's house; multi-site is living in two houses at once.
Explained simply
Most failures are small: one server dies and another takes over. A disaster is bigger. A whole Region has trouble, someone deletes a table, or a bad release writes wrong data for an hour. Disaster recovery is the plan, written in advance, for getting the service and its data back when that happens.
Two numbers drive the plan. RPO, the recovery point objective, is how much recent data you can afford to lose, measured in time. RTO, the recovery time objective, is how long the service may be down. A shop might accept 15 minutes of lost orders and 1 hour of downtime. A payments system might accept almost none.
AWS describes four patterns. Backup and restore keeps copies and rebuilds when needed. Pilot light keeps data copied live with the servers switched off. Warm standby runs a small working copy. Multi-site runs at full size in two places. Each step down the list recovers faster and costs more every month.
A plan you have never tested is a guess. A recovery test, sometimes called a game day, restores the data and brings the service up in a safe place, while you time each step. The measured times become your real RPO and RTO, and the problems you find go into the backlog.
Press Play on a diagram to walk through it one step at a time.
- RPO and RTO in hours
- Only backups in the second Region
- Lowest standing cost
- Rebuild everything with IaC
- RTO tens of minutes or minutes
- Data replicated continuously
- Pilot light: compute off; warm: small copy running
- Scale up during failover
- RTO near zero
- Full capacity in two or more Regions
- Highest cost and complexity
- Needs multi-Region data design
- 1Declare
Results table deleted at 10:12; RTO clock starts
- 2Restore
PITR or AWS Backup into results-restored
- 3Validate
Item count and spot checks against expectations
- 4Switch
Point the worker config at the restored table
- 5Replay
Re-drive messages since the restore point
In depth
Setting RPO and RTO from business impact
Start with the business, not the technology. For each workload ask: what does one hour of downtime cost in money, customer trust or legal risk? How much lost data could we recreate by hand? The answers set the targets. For the file-processing service, uploads can be retried by users, so an RPO of 1 hour may be fine for results, but the uploads bucket itself should lose almost nothing.
Different parts of one workload can have different targets. Stateless compute is rebuilt from IaC; the hard part is always state: databases, buckets, queues and secrets. Write targets per data store.
Also decide what disaster you plan for. Accidental deletion and data corruption are far more common than losing a Region, and they need point-in-time backups, not replication.
- RPO answers: how much data can we lose?
- RTO answers: how long can we be down?
- Targets per data store, not just per app
- Plan for deletion and corruption as well as Region loss
Building blocks on AWS
AWS Backup runs backup plans: schedules, retention rules, lifecycle to cold storage and copies to another Region or account. Backups land in vaults, and Vault Lock can stop anyone, including administrators, from deleting them early. It supports many services, including EBS, RDS, Aurora, DynamoDB, EFS and S3.
DynamoDB point-in-time recovery restores a table to any second within its recovery period (up to 35 days) into a new table. S3 versioning keeps old object versions, and replication copies objects to a bucket in another Region. DynamoDB global tables replicate a table across Regions for active/active designs.
For traffic, Route 53 failover routing with health checks moves users to the recovery Region, and Amazon Application Recovery Controller (ARC) adds controlled switches for failover. AWS Elastic Disaster Recovery replicates whole servers for pilot light style recovery of EC2 or on-premises machines.
- Backups in a separate account survive a compromised main account
- Restores create new resources; plan the name and DNS switch
- IaC is part of DR: it rebuilds compute in minutes
Estimating the standing cost
Standing cost is what you pay every month to be ready, even when nothing fails. Backup and restore pays only for backup storage and cross-Region copies. Pilot light adds continuous replication, such as a replica database or replicated bucket, but little compute. Warm standby adds a small, always-on copy of the stack: load balancer, a few tasks, a smaller database. Multi-site roughly doubles the stack, plus cross-Region data transfer.
Compare that with the expected cost of downtime. If an hour down costs 500 USD and a Region outage is rare, spending 2,000 USD a month on warm standby makes little sense. If an hour down costs 100,000 USD, it may be cheap insurance.
Do not forget hidden items: cross-Region data transfer, snapshot storage that grows with retention, NAT gateways and load balancers in the standby Region.
- 1Multi-site
Full stack serving traffic in both Regions
- 2Warm standby
Small full stack running, scaled up on failover
- 3Pilot light
Data replicated live; compute defined but off
- 4Backup and restore
Backups and IaC only
Planning and recording a recovery test
Write the test plan like a runbook: scope, the failure you simulate, the target RPO and RTO, who does what, and how you will stop the test if it goes wrong. Prefer restoring into an isolated account or a separate stack so production is never at risk. AWS Backup restore testing can run scheduled restores automatically and report whether they worked.
During the test, record timestamps: failure declared, restore started, data available, service passing smoke tests. Measured RTO is declared to passing. Measured RPO is the gap between the failure time and the newest data you got back.
Afterwards write down what slowed you down, update the runbook and fix the gaps. Then clean up the restored resources so they do not add to the bill.
- Isolated target: separate account or stack
- Timestamps for every step
- Evidence: screenshots, job IDs, query results
- Cleanup: delete restored tables, stacks and snapshots
Learn it in 5 short steps
About 35m each. Track them with a timer in your plan.
- 1Set RPO and RTO~35m
- 2Compare the four recovery patterns~35m
- 3Estimate the standing cost~35m
- 4Plan a recovery test~35m
- 5Record the evidence~35m
Key points
- RPO is the maximum acceptable data loss, measured in time; RTO is the maximum acceptable downtime.
- Set RPO and RTO from business impact first, then pick the cheapest pattern that meets them.
- Replication protects against losing a Region, not against deletion or corruption; you still need point-in-time backups.
- A recovery test produces evidence: measured RPO, measured RTO, and the steps that went wrong.
Key terms
Tap a card to flip it. 0/6 known
Examples
Choosing a pattern for the file-processing service
Business answer: users can re-upload, results must not be lost for more than 15 minutes, and 4 hours of downtime in a Region outage is acceptable. Step 1: RPO 15 minutes rules out daily backups, so turn on DynamoDB point-in-time recovery and S3 replication for uploads. Step 2: RTO 4 hours is met by redeploying compute with IaC in a second Region. Step 3: that is backup and restore for compute plus continuous protection for data, close to pilot light. Step 4: standing cost is mainly replicated storage and backups. Multi-site would add a full second stack for no business benefit.
A timed point-in-time restore drill
Prerequisites: a lab table with PITR enabled and some synthetic items. Step 1: note the time, then delete a few items to simulate a bad script. Step 2: restore the table to one minute before the deletion into a new table. Step 3: wait for ACTIVE and compare the item count. Expected evidence: the restored table has the deleted items; record start and end times as measured RTO. Cleanup: delete the restored table.
aws dynamodb update-continuous-backups --table-name results \
--point-in-time-recovery-specification PointInTimeRecoveryEnabled=true
aws dynamodb restore-table-to-point-in-time \
--source-table-name results \
--target-table-name results-restored \
--restore-date-time 2026-12-02T10:11:00Z
aws dynamodb wait table-exists --table-name results-restored
aws dynamodb scan --table-name results-restored --select COUNT
# Cleanup: aws dynamodb delete-table --table-name results-restoredQuick reference
- RPO = how much data you can lose; RTO = how long you can be down
- Backup and restore: hours; pilot light: tens of minutes; warm standby: minutes; multi-site: near zero
- Replication copies mistakes too; keep point-in-time backups
- DynamoDB PITR restores to any second in its window, into a new table
- AWS Backup: plans, vaults, cross-Region and cross-account copies, Vault Lock
- Measured RTO = from declaring the failure to passing smoke tests
- Every drill ends with cleanup of restored resources
Common mistakes
- Backing up data but not the IaC, secrets and DNS changes needed to run it elsewhere.
- Assuming a restore works because the backup job succeeded.
- Choosing multi-site for a workload whose business impact only justifies backup and restore.
Quick quiz
Pick an answer to see if you're right and why.
Practice exercises
Try each one yourself first. Use the hint if you get stuck, then compare with the solution.
- Exercise 1easy
For three parts of the file-processing service (uploads bucket, results table, worker function), write an RPO, an RTO and the AWS feature that protects each.
- Exercise 2medium
Create an AWS Backup plan in a lab account that backs up resources tagged backup=daily, keeps backups for 35 days and copies them to a second Region.
- Exercise 3hard
Write a recovery test plan for losing the primary Region, using a warm standby design. Include steps, timing points, stop conditions and cleanup.
Check yourself
Answer in your head, reveal, then be honest with yourself.
Feel confident about this topic?
Frequently asked questions
- Is multi-AZ the same as disaster recovery?
- No. Multi-AZ protects against a data centre failure within one Region and should be the default for production. DR covers bigger events such as Region problems, deletion and corruption.
- Do I need a second Region at all?
- Only if your RTO for a Region-wide event is shorter than you could wait out. Many workloads use backups copied to another Region plus IaC, which keeps standing cost low.
- How often should we test recovery?
- At least once or twice a year for a full exercise, and after big architecture changes. Automated restore tests, such as AWS Backup restore testing, can check backups much more often.