Sub topic 15
Choosing the right strategy for a workload
This chapter assumes you know what RTO and RPO mean and have seen the four strategies: backup and restore, pilot light, warm standby, and multi-site active/active. It also assumes you can read AWS CLI output and basic Python. The chapter turns that knowledge into a repeatable decision.
The decision in one sentence
Choose the cheapest strategy whose tested recovery time and data loss meet the workload's RTO and RPO, and whose operational complexity your team can run during an incident.
Each part of that sentence is a check. "Cheapest" means you compare cost. "Tested" means a measured result counts and a vendor figure does not. "Operational complexity" means the team on call has to be able to run the strategy.
Step 1: Start from business impact
Targets come from the business, not from engineering preference. For each workload, ask two questions:
- What does one hour of downtime cost in lost revenue, penalties, or lost trust?
- What does losing the last N minutes of data cost? Can the data be re-entered or rebuilt?
The answers let you group workloads into tiers. A common shape looks like this:
| Tier | Example workload | Typical RTO | Typical RPO |
|---|---|---|---|
| 4 | Internal wiki, reporting | 24 hours | 24 hours |
| 3 | Back-office tools | 4 to 8 hours | 1 hour |
| 2 | Customer-facing order API | Under 1 hour | Minutes |
| 1 | Payments, core transactions | Minutes | Seconds or near zero |
Tier by workload, not by company. Applying the strictest tier to every system is the most common source of wasted DR spend.
Step 2: Map targets to strategies
The strategies sit on a ladder. Cost and complexity rise as you go down, and recovery time and data loss fall.
| Strategy | Runs in the DR Region before a disaster | Typical RTO | Typical RPO |
|---|---|---|---|
| Backup and restore | Backup copies only | Hours | Up to the backup interval |
| Pilot light | Replicated data and a minimal core, with compute stopped or at minimum size | Tens of minutes | Seconds to minutes |
| Warm standby | A scaled-down but running full stack | Minutes | Seconds to minutes |
| Multi-site active/active | A full stack serving live traffic | Near zero to minutes | Near zero |
Treat these ranges as starting points. Your own numbers depend on data volume, automation quality, and the services you use.
STRATEGIES = [
# (name, achievable RTO in minutes, achievable RPO in minutes)
("backup and restore", 480, 1440),
("pilot light", 60, 5),
("warm standby", 15, 1),
("multi-site active/active", 5, 0),
]
def candidate_strategy(rto_minutes, rpo_minutes):
"""Return the cheapest listed strategy that meets both targets."""
for name, rto, rpo in STRATEGIES:
if rto <= rto_minutes and rpo <= rpo_minutes:
return name
return None
workloads = {
"wiki": (1440, 1440),
"order-api": (60, 5),
"payments": (15, 1),
"trading": (2, 0),
}
for workload, (rto, rpo) in workloads.items():
print(workload, "->", candidate_strategy(rto, rpo) or "no listed strategy fits")The list is ordered from cheapest to most expensive, so the first match is the cheapest. The function prints None-handling output for trading because a 2-minute RTO with zero data loss is beyond every row. That outcome is useful. It tells you to renegotiate the target or redesign the workload.
Step 3: Check the data layer first
RPO is bounded by how data reaches the DR Region, so verify the data path before you pick a strategy.
- Backup copies. RPO is at least the backup interval. A daily AWS Backup rule means up to 24 hours of data loss, plus the time the cross-Region copy takes to finish.
- Continuous replication. Aurora Global Database, DynamoDB global tables, and S3 replication copy changes continuously. Lag is usually seconds, but it is not zero and it grows under heavy write load or network trouble. Watch the replication-lag metrics and alarm on them.
- S3 replication. Standard cross-Region replication has no time guarantee. S3 Replication Time Control adds a 15-minute service level agreement for most objects.
If the data service cannot meet the RPO, no compute strategy fixes it. A warm standby on top of a nightly snapshot still loses a day of data.
Step 4: Add up the recovery time
RTO is the sum of everything that happens between the failure and a working service. Write the steps down and give each a measured time:
- Detect the failure.
- Decide to fail over, including who is allowed to decide.
- Scale or start compute.
- Promote the database in the DR Region.
- Shift traffic.
- Validate that the application works.
A pilot light example might total 5 + 10 + 15 + 5 + 2 + 10 = 47 minutes. That fits a 60-minute RTO, but with little margin. Warm standby removes most of step 3, so the same workload might finish in about 30 minutes. If the margin is thin, move up one strategy or automate the slow steps.
Step 5 depends on your traffic mechanism. DNS failover with a 60-second TTL still waits on resolvers that cache longer than the TTL. Global Accelerator moves traffic without waiting for DNS caches, which helps when the RTO is a few minutes.
The decision as a flow
Worked example
A retailer runs three workloads and applies the steps to each.
| Workload | RTO / RPO target | Data path | Choice |
|---|---|---|---|
| Reporting dashboard | 24 h / 24 h | Daily AWS Backup copy | Backup and restore |
| Order API | 60 min / 5 min | Aurora Global Database, lag under 1 s | Pilot light, upgraded to warm standby if the test exceeds 60 minutes |
| Payment service | 15 min / 1 min | Aurora Global Database and replicated queues | Warm standby |
None of them needs active/active. The payment service would get it only if the business could not accept any outage window. At that point the extra cost and the data conflict handling would be part of the decision.
Edge cases and common errors
- Choosing by name. "We use warm standby" is not a target. Only a measured RTO and RPO count.
- Forgetting dependencies. A recovered application still fails if the DR Region lacks the AMIs, the KMS keys, the secrets, the IAM roles, or the service quotas it needs. Copy or replicate these ahead of time. Use multi-Region KMS keys where keys must work in both Regions.
- Assuming capacity exists. Pilot light and backup and restore both ask for a lot of compute at once. During a Regional event many customers do the same. On-Demand Capacity Reservations in the DR Region protect that capacity, at a cost.
- Relying on control-plane changes during an outage. A runbook step that edits Route 53 records may run when the console and API are under stress. Prefer health-check-driven failover records that need no manual change.
- Ignoring failback. Plan the return path and the data written in the DR Region, or you will run on the DR Region for weeks.
Step 5: Prove it
Run a failover test against the strategy you picked. Record the time of each step from the RTO sum, and measure the data gap. If the result misses the target, change something: automate a slow step, raise the standby capacity, or move up a rung. Retest after major changes, and at least yearly. An untested strategy is a guess.
Exercise
A workload has an RTO of 30 minutes and an RPO of 1 hour. The data is in an Aurora Global Database. Your measured pilot light recovery takes 50 minutes. What are two reasonable next steps?
Show answer
Move the workload to warm standby, which keeps a scaled-down stack running and removes most of the scale-up time. Alternatively, automate or pre-stage the slowest steps of the pilot light, such as scaling compute and validation, and retest. The RPO is already met because replication lag is seconds, so only the recovery time needs work.
Exercise
A team picks active/active for a database-backed service and removes its nightly backups to save money. Why is this a mistake?
Show answer
Active/active replicates every write, including accidental deletes, corrupt data, and bad deployments, to all Regions. Without point-in-time recovery or isolated backups, the team has no clean copy to restore from. Replication protects against Region loss, and backups protect against data loss.