Resilient architectures · 13 min
RPO, RTO and disaster recovery strategies
In this lesson you will learn what RPO and RTO measure, what is running in the recovery Region in each of the four AWS strategies and how to choose the cheapest one that meets both objectives.
Disaster recovery (DR) is the part of the design that deals with large events, such as losing an entire Region, that a Multi-AZ architecture doesn't cover. A Multi-AZ architecture, which has each piece in two or more Availability Zones of the same Region, withstands the failure of a zone. However, when the concern is losing the Region, or when a regulation requires another location, you need a recovery plan, which says how to get back up and running somewhere else. For example, an online store that runs in two zones of us-east-1 keeps selling if a zone goes down, but if the whole Region goes down it needs a plan to reopen in another one.
The "Disaster Recovery of Workloads on AWS" whitepaper measures that plan with two objectives, RPO and RTO, and organizes it into four strategies that meet those objectives at different costs.
What are RPO and RTO?
RPO and RTO measure the two things that are lost in a disaster: data and time. For example, if the store's database, where it keeps the orders, is backed up every 24 hours and the Region is lost, up to 24 hours of orders can be lost. If on top of that the servers have to be built by hand in another Region, the store can be down for hours.

Both objectives are counted from the moment of the disaster:
- RPO (Recovery Point Objective), which is counted backward and is the maximum acceptable time since the last recovery point, that is, how much data you can lose. A recovery point is the last moment you have a copy of the data from.
- RTO (Recovery Time Objective), which is counted forward and is the maximum acceptable delay between the interruption of the service and its restoration, that is, how long you can be down.
Each objective is lowered in a different way. RPO is lowered by backing up more often or replicating continuously, that is, copying each change to another place as soon as it happens, so with a backup every 24 hours the RPO is 24 hours. RTO, on the other hand, is lowered by having the infrastructure ready, or defined as code so you don't build it by hand during the disaster. For example, the store lowers its RPO by copying each order to another Region the moment it happens, and lowers its RTO by writing its whole configuration in a file that AWS can create all at once.
Who defines RPO and RTO?
Both objectives are defined by the organization. The whitepaper explains that the DR plan is part of the business continuity plan, the overall plan for a company to keep operating through a serious problem. In that plan, a business impact analysis measures what happens if the workload, the application with everything it needs, isn't available. For example, the store calculates how much it stops selling for each hour it is down and uses that to decide how much time it can accept.
That impact can change with timing, as in AWS's example of payroll, the system that pays salaries, which matters a lot right before payday and very little right after. That is why, for workloads that aren't very critical, AWS says that having no DR can be a valid decision.
RPO or RTO?
0 of 4Tap the objective that each decision changes.
Going from a daily backup to continuous replication to another Region.
Having the infrastructure in an AWS CloudFormation template ready to deploy.
Leaving a scaled-down copy of the application running in the other Region.
Taking snapshots every hour instead of every day.
What are the recovery strategies?
AWS organizes disaster recovery into four strategies, which differ in what is running in the recovery Region before the disaster. The more things are running, the lower the RPO and the RTO, and the higher the cost. The first three strategies are active/passive, because one Region serves the users while the other one waits. For example, in the first three, the store's customers buy only in us-east-1 while the other Region stays ready just in case.

Backup and restore
Backup and restore has an RPO and an RTO of hours, because the recovery Region only holds copies, such as snapshots, AMIs and replicated objects (files copied to another Region), and everything else is created after the disaster. AWS asks you to also back up the code, the configuration and the AMIs, and to deploy with infrastructure as code (AWS CloudFormation or AWS CDK), which means describing the infrastructure in files so AWS creates it on its own. Without that, restoring in another Region is slow and prone to errors. This strategy also has to include testing the backups. For example, every night the store saves a copy of its database and its AMIs in another Region, and if it loses us-east-1, it creates everything from scratch there in a few hours.
Pilot light
Pilot light lowers the RPO and the RTO to tens of minutes. In this strategy, data is replicated continuously and the database in the other Region is running, while the application servers are "switched off". AWS says the best practice is not to deploy those servers and to have ready the way to deploy them. For example, in the other Region the store has a copy of its database that receives every order, but no server showing the website until one is needed.

The failover, the switch to the recovery Region, has four steps in pilot light: promote the database, deploy the servers, scale and move the traffic. Promoting means turning the copy of the database into the main database, the one that accepts changes. Promoting an RDS replica takes a few minutes and includes a reboot, while with Amazon Aurora Global Database, according to AWS, a secondary Region can be promoted in less than a minute. For example, if us-east-1 goes down, the store promotes its database in the other Region, creates its servers from the template, adds the ones it needs and sends customers to the new Region.
Warm standby
Warm standby lowers the RPO and the RTO to minutes, because a complete, smaller copy of the workload runs in the other Region and can serve traffic immediately with less capacity. In the failover you only have to scale that copy, that is, add servers to it until it can handle all the users. For example, the store has two servers running in the other Region with the website working, and if the main Region goes down it raises them to as many as it needs.
cloud path tip: before you choose warm standby, check that the service quotas in the recovery Region are enough for production capacity.
Multi-site active/active
Multi-site active/active recovers in real time, because all the Regions serve users at the same time. It is the most complex and most expensive strategy, and with the right decisions it brings the recovery time close to zero. For example, the store sells from two Regions at the same time, and if one goes down, customers keep buying in the other one almost without noticing.
Match each strategy with what is in the recovery Region
0 of 4 pairsTap a strategy and then its description.
0 of 4 pairs.
Pilot light or warm standby?
The whitepaper acknowledges that pilot light and warm standby get confused, and it separates them with a single question: whether the recovery Region can serve requests before anyone does anything. Pilot light can't serve them until someone switches on, deploys or scales, while warm standby can, although with less capacity. For example, if a customer reaches the store's recovery Region before the failover, with warm standby they see the website and with pilot light they see nothing, because there are no servers.
Which one meets it at the lowest cost?
The business accepts losing up to 15 minutes of data and being out of service for up to 1 hour if the Region is lost. It doesn't need to serve users in the recovery Region as long as there is no disaster. Which strategy meets it at the lowest cost?
Why do all the strategies include backups?
Continuous replication gives the lowest RPO, but the whitepaper warns that it may not protect against corruption, which is when the data ends up damaged or with wrong values, or against data deletion, because the mistake is replicated too. That is why point-in-time backups appear in all four strategies, even in active/active, where the recovery point for a corruption is never zero. For example, if a bug in the store changes every price to zero, the copy in the other Region also ends up with prices at zero, and only a backup from before the bug has the right prices.
On the exam
Recovery questions usually give an RPO, an RTO and the phrase "MOST cost-effective" or "at the lowest cost". In that case, the answer is the cheapest strategy that still meets both objectives. If the question says that the workload "must serve immediately, even with less capacity", the answer is warm standby and not pilot light, and if it talks about "users in several Regions", the answer is active/active. For example, if the business accepts hours of lost data and hours of downtime, the answer is backup and restore, because it is the cheapest and it meets the objectives.
cloud path tip: if the scenario mentions data corruption or deletion, the answer includes point-in-time backups, even if there is already replication.
Review question
A company has its application in us-east-1 with Amazon RDS for MySQL. It is asked for a DR plan in another Region with an RTO of one hour and an RPO of 10 minutes, at the lowest possible cost. Today it has nothing outside us-east-1. What does the architect propose?
Full account and new experience account
Cross-Region strategies can only be practiced in a full account. In the new experience account, the simplified way to open an AWS account, no service supports cross-Region features, so there are no RDS replicas in another Region and no AWS Backup copies to another Region there. Also, AWS Elastic Disaster Recovery and AWS Resilience Hub only appear in that account's paid plan.
However, the whitepaper explains that the four strategies can also be applied with Availability Zones instead of Regions, for example when data residency, the requirement that data stay in a country or a Region, forces you to stay in one Region. That version of the strategies can be built within us-east-2 in the new experience account. For example, you can practice pilot light with the database running in one zone of us-east-2 and the servers ready to be deployed in another zone.
Next
- Disaster recovery options in the cloud, the section of the AWS DR whitepaper with the four strategies.
- Take a Solutions Architect practice exam at /examenes and review your result in the resilient architectures domain.