What is disaster recovery, and what do RTO and RPO mean?
IntermediateConceptReliability, monitoring & incidents
Answer
In one line: Disaster recovery (DR) is the plan and setup to restore systems and data after a major failure; RTO is how quickly you must be back up, and RPO is how much data you can afford to lose.
RTO — Recovery Time Objective
- The maximum acceptable time the service can be down after a disaster.
- Example: RTO = 1 hour → the system must be running again within 1 hour.
RPO — Recovery Point Objective
- The maximum acceptable amount of data loss, measured in time.
- Example: RPO = 15 minutes → you may lose at most the last 15 minutes of data, so you need backups or replication at least every 15 minutes.
last backup disaster service restored
|<---- RPO ---->|<-------- RTO -------->|
DR strategies (from cheapest/slowest to most expensive/fastest):
| Strategy | How it works | Typical RTO / RPO |
|---|---|---|
| Backup and restore | Regular backups to another region; rebuild everything after a disaster | Hours / hours |
| Pilot light | Core pieces (like a replicated database) always running in the DR region; scale up the rest when needed | Tens of minutes / minutes |
| Warm standby | A smaller but fully working copy runs in the DR region; scale up and switch traffic | Minutes / seconds-minutes |
| Multi-site active-active | Full capacity in two or more regions serving traffic all the time | Near zero / near zero |
What a DR plan needs:
- Backups that are encrypted, stored in another region/account, and protected from deletion (immutable backups protect against ransomware).
- Infrastructure as Code, so you can rebuild environments quickly.
- Database replication where RPO is tight.
- DNS/traffic failover (Route 53, Azure Front Door, Traffic Manager).
- A written runbook with roles and steps.
- Regular DR drills — an untested backup is not a backup.
Example: an e-commerce company sets RTO = 1 hour and RPO = 5 minutes. They use a warm standby in a second region, cross-region database replication, Terraform for infrastructure and Route 53 failover — and run a failover drill every quarter.
Tip for interviews: define RTO and RPO clearly, match them to a DR strategy, and say that backups must be tested regularly.
More on Reliability, monitoring & incidents
What are SLAs, SLOs and SLIs?BeginnerWhat is an error budget, and how is it used?IntermediateWhat are the four golden signals of monitoring?BeginnerWhat is the difference between metrics, logs and traces?BeginnerWhat makes a good alert? How do you avoid alert fatigue?BeginnerWhat is an incident, and what is incident management?Beginner