RTO, RPO and choosing a recovery strategy
Set recovery time and recovery point objectives per business function and per kind of disaster, compare backup and restore, pilot light, warm standby and multi-site active/active, estimate recovery time step by step with a small script, and design restore tests that prove the plan still works.
Contentsand lesson path
On this page
- Why it matters
- RTO and RPO, per function and per kind of disaster
- Four strategies, from cheap and slow to costly and fast
- Choosing with numbers
- Restore testing: proving the plan still works
- Check your understanding
- Apply it
- Review prompt
Lessons of Availability & Disaster Recovery
- Availability math: nines, dependencies and redundancy Worked example · 25 min
- Redundancy, failover and hidden single points of failure Concept · 20 min
- Multi-region designs, deployment stamps and their consistency cost Concept · 20 min
- RTO, RPO and choosing a recovery strategy Concept · 20 min
- Observability at scale: sampling, cardinality and telemetry cost Concept · 20 min
- Availability design check Knowledge check · 8 questions
What you will learn
- Choose a backup and disaster-recovery strategy (backup and restore, pilot light, warm standby, multi-site) for a stated RTO, RPO and budget.
01. Why it matters
Ask a product owner how long the order service may be down after a disaster and how much data it may lose, and the first answer is often "none and nothing". Both can be bought only up to a point, and each step closer to zero costs more: standing capacity in another region, replication on every write, people who rehearse the switch.
Two numbers turn that wish into a design input. This lesson shows how to set them, how to pick the cheapest of four recovery strategies that meets them, and how to keep proving the choice still works. How backups themselves are taken, stored and verified is the subject of backup and recovery; here we decide what the backups and replicas must achieve.
02. RTO and RPO, per function and per kind of disaster
The AWS disaster recovery whitepaper defines the two objectives this way:
- Recovery time objective (RTO): the maximum acceptable delay between the interruption of service and its restoration.
- Recovery point objective (RPO): the maximum acceptable time since the last data recovery point, which sets how much recent data may be lost.
last good copy disaster service restored
|<------- RPO ------->|<---------- RTO ---------->|
data written here users cannot work here
may be lostBoth come from a business impact analysis: what a disruption costs and how that cost grows over time. The whitepaper gives an example of impact that depends on timing: a payroll outage just before payday hurts far more than one just after. Three practices keep the numbers honest.
- Set them per business function, not per system. Taking orders may need an RTO of minutes while monthly reports can wait a day, even if both run on the same platform.
- Set them per kind of disaster. Losing a region, corrupting data with a bad migration, and an attacker deleting data with stolen credentials need different defences, and the same design can have very different RTOs for each.
- Take the worst copy path. The effective RPO of a business record is set by the slowest way any part of it is copied. An order replicated in seconds, whose invoice PDF is copied by a nightly job, can lose up to a day of invoices.
03. Four strategies, from cheap and slow to costly and fast
The AWS whitepaper groups disaster recovery into four strategies. They differ in what already runs in the recovery region and therefore in what must still happen during the disaster:
strategy runs in the recovery region still to do at disaster time
backup and restore copies of backups only build infrastructure, restore
data, redirect traffic
pilot light live replicated data stores; deploy or start app servers,
app servers not running scale up, redirect traffic
warm standby a smaller, fully working copy scale up, redirect traffic
of production
multi-site full production, serving steer traffic away from
active/active users all the time the failed regionMoving down the table, standing cost and complexity rise and recovery time falls; data loss drops sharply once continuous replication replaces periodic backups. A few details from the whitepaper decide real choices:
- Pilot light versus warm standby. A pilot light cannot serve any request until servers are started; a warm standby can serve at reduced capacity at once and only needs to scale up.
- Scaling up is a control-plane action. If the region event also slows the cloud's management APIs, scale-up may stall (see the previous lesson on static stability). Running the standby at full size, which AWS calls hot standby, removes that dependency at a higher price.
- Replication is not a backup. Continuous replication gives a low RPO for losing a region, but it copies corruption and deletions too. Every strategy, active/active included, still needs point-in-time backups to recover from bad data, and that recovery has an RPO above zero.
- An RPO of zero needs synchronous replication: a write is acknowledged only after another site has it, so every write pays a cross-region round trip. Leaders, replicas and failover shows the mechanism.
04. Choosing with numbers
An RTO is a sum of steps, so estimate it step by step. Suppose an order service with a 2 TB database needs an RTO of 60 minutes and an RPO of 5 minutes. The script below writes each strategy as a list of steps with assumed durations, and a standing cost as an assumed share of the primary region's monthly bill. The restore throughput is the kind of figure a restore drill gives you.
"""Estimate RTO and RPO for four DR strategies and pick the cheapest that fits.
Every number is a planning assumption: replace it with data from your drills."""
DB_GB = 2000 # database size
RESTORE_GB_PER_MIN = 6 # restore throughput measured in the last drill
STRATEGIES = { # standing cost as a share of the primary region's monthly bill
"backup and restore": dict(cost=0.05, rpo_min=15, steps=dict(
detect=10, decide=20, build_infra=30, restore=DB_GB / RESTORE_GB_PER_MIN,
redirect=5)),
"pilot light": dict(cost=0.15, rpo_min=1, steps=dict(
detect=10, decide=20, start_app=20, scale_up=15, redirect=5)),
"warm standby": dict(cost=0.35, rpo_min=1, steps=dict(
detect=10, decide=20, scale_up=15, redirect=5)),
"multi-site active/active": dict(cost=1.00, rpo_min=1, steps=dict(
detect=2, shift_traffic=3)),
}
RTO_TARGET, RPO_TARGET = 60, 5 # minutes
print(f"targets: RTO {RTO_TARGET} min, RPO {RPO_TARGET} min")
fits = []
for name, s in STRATEGIES.items():
rto = sum(s["steps"].values())
ok = rto <= RTO_TARGET and s["rpo_min"] <= RPO_TARGET
fits += [(s["cost"], name)] if ok else []
print(f"{name:<26} RTO {rto:>5.0f} min RPO {s['rpo_min']:>3} min "
f"cost {s['cost']:>4.0%} {'meets' if ok else 'misses'}")
print("cheapest that meets both:", min(fits)[1])
for size in (2000, 4000):
print(f"restore step alone for {size} GB: {size / RESTORE_GB_PER_MIN:.0f} min")targets: RTO 60 min, RPO 5 min
backup and restore RTO 398 min RPO 15 min cost 5% misses
pilot light RTO 70 min RPO 1 min cost 15% misses
warm standby RTO 50 min RPO 1 min cost 35% meets
multi-site active/active RTO 5 min RPO 1 min cost 100% meets
cheapest that meets both: warm standby
restore step alone for 2000 GB: 333 min
restore step alone for 4000 GB: 667 minBackup and restore misses by hours, because restoring 2 TB at 6 GB a minute takes 333 minutes; its 15-minute RPO also misses. Pilot light misses the RTO by ten minutes: starting and scaling the application servers takes 35. Warm standby is the cheapest strategy that meets both targets, at an assumed 35% of the primary bill.
Two what ifs show why the numbers must be revisited. If the RTO were 90 minutes, pilot light would fit and cost less than half as much. If the database doubles to 4 TB, the restore step alone grows to 667 minutes: the RTO of backup and restore scales with data size, so a strategy that fitted last year may not fit now. Finally, compare the standing cost with the cost of the disaster it covers. The whitepaper is blunt: if recovery costs more than the failure or loss, do not put it in place unless something else, such as regulation, requires it.
05. Restore testing: proving the plan still works
The AWS whitepaper puts it plainly: in its experience, the only error recovery that works is the path you test frequently, which is why a small number of recovery paths is best. Recovery paths decay quietly. The standby's capacity may no longer handle today's load, service quotas in the recovery region may be too low, and images and configuration drift. The whitepaper also notes that restoring from a backup is itself a control-plane operation, so restoring on a schedule leaves you with ready-to-use data stores even if that operation is unavailable during a disaster.
A useful restore test proves more than "the job succeeded":
- The data is usable: the application starts on the restored copy and passes checks that real users would notice, such as finding yesterday's orders.
- The time fits: each step is timed and the total compared with the RTO; the age of the restored data is compared with the RPO.
- It runs without the failed region: credentials, encryption keys, images, DNS changes and runbooks all come from outside the region you pretend to lose.
- Failback is planned: returning to the primary is a second migration with its own risks.
Run tests on a schedule and after changes that move the numbers: large data growth, schema changes, a new region or a new dependency. A game day is a good format for the regional version.
Not every workload needs a strategy beyond backups. The whitepaper notes that for less critical workloads, having no disaster recovery at all can be a valid, informed decision, and that a multi-zone design may already cover most risks. Spend on fast recovery where the business impact analysis shows the loss is real, and say explicitly what you chose not to protect.
06. Check your understanding
07. Apply it
Write the disaster recovery plan for the checkout journey of the skill project:
- Set RTO and RPO for at least two business functions (for example taking payments and order history) and for two kinds of disaster (region loss and bad data).
- Adapt
recovery.pywith your own steps, durations and data size, and choose a strategy. State the monthly cost difference against the next cheaper strategy. - Write a restore-test procedure: what is restored, where, which checks prove the data is usable, what is timed, and how often it runs.
- Inject the loss of the shared identity provider or DNS from lesson 2. Does your plan still meet its RTO? If not, what changes?
08. Review prompt
Without looking back: define RTO and RPO and draw where each sits on a disaster timeline. Explain why both should be set per business function and per kind of disaster, and why the effective RPO is set by the slowest copy path. Describe the four strategies by what runs in the recovery region and what remains to do, and list four things a restore test must prove besides a successful job.
References
Your progress
Reading state
Sign in to save that you finished reading this lesson.
Prove this skill
8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.