What happens when the cloud provider's data centre goes offline, or a developer accidentally deletes an entire database? This chapter solves that terrifying problem: how to get your applications and data back, fast, even after a major failure. For the DOP-C02 exam, you need to understand the precise technical mechanisms AWS provides to protect your systems and how to choose the right one for different scenarios – because recovery time can make the difference between a minor hiccup and a business bankruptcy.
Jump to a section
A simple way to picture Disaster Recovery and Backup Strategies
A well-kept house has a specific plan for disasters, not just hope. Your house contains everything important: family photos (your application data), the family computer (your server), and your grandmother's recipes (your database). A disaster recovery and backup strategy is your family's formal estate plan for when something goes wrong. It is not just a will – it is a full plan for what happens if the house burns down, is flooded, or is burgled.
A backup is like making photocopies of your grandmother's recipes and storing a copy in your suitcase, a copy in your car, and a copy at your aunt's house across town. A disaster recovery plan, on the other hand, is the step-by-step instruction manual for your family: if the kitchen catches fire, you grab the emergency bag, you call the fire brigade, you stay with the neighbour until the insurance company arranges a temporary rental house with a working oven so you can bake again. Without the plan, you might save the recipes but have nowhere to cook. Without the backups, you might have a safe house but no recipes to bake.
In IT, a company does the same: it copies its data (backup) to different locations and writes a manual (disaster recovery plan) to get its systems running again quickly in a different location if its primary data centre gets hit by a hurricane.
At its simplest, disaster recovery (often shortened to DR) is a set of actions you take to get your IT systems running again after a disaster. A disaster is any event that stops your normal operations – a power outage in the data centre, a fire, a ransomware attack that locks your files, or even a software bug that corrupts a database. A backup, by contrast, is just a copy of your data. You can have a backup without a DR plan, but that is like having a spare tyre in your boot without knowing how to change a wheel.
To understand DR and backup in AWS, you must first grasp a few fundamental ideas. The first is the Recovery Point Objective, or RPO. Imagine you have a backup of your files taken every 24 hours. If a disaster happens at 11pm, you have lost all changes made since the last backup at midnight. The RPO is that 23-hour window of potential data loss. It is the maximum age of the data you are willing to lose. The second is the Recovery Time Objective, or RTO. This is the maximum amount of downtime you can tolerate. If you say your RTO is 4 hours, you need to get your systems fully working again within 4 hours of the disaster starting.
AWS offers several distinct DR strategies, each with different RPO and RTO characteristics. They are often explained using the 'backup and restore' model, the 'pilot light' model, the 'warm standby' model, and the 'multi-site active-active' model. Let us break each down.
Backup and Restore is the simplest and cheapest. You periodically copy your data to an AWS storage service like Amazon S3 (Simple Storage Service). If a disaster occurs, you restore from that backup into a new environment. This has the worst RPO and RTO – you could lose up to a day's worth of data, and restoring a large application could take hours or days. It is like recovering your phone from a last-week backup: you get most things back, but you lose your new contacts and photos.
Pilot Light is cheaper than a full replica. You keep a minimal copy of your core data and critical infrastructure running in another AWS region (a separate geographical location). You do not run the full application there – just the database replication and a few tiny servers (often the smallest EC2 instance type) to keep the data synchronised. When a disaster hits your main region, you 'turn on' the rest of your application infrastructure around that core data. This provides a faster recovery than backup and restore because the database is already current, but you still have to provision and start the application servers.
Warm Standby goes a step further. You run a scaled-down but fully functional version of your entire application in the second region. It handles low traffic or just stays ready. If a disaster strikes the primary region, you scale up this standby environment to full size and redirect traffic to it. The RTO is much shorter – maybe minutes to an hour – because the infrastructure is already there. The cost is higher because you pay for those running resources even when they are idle.
Multi-Site Active-Active is the most expensive and most resilient. You run your full application in multiple regions simultaneously, with traffic being distributed across them using services like Amazon Route 53 (AWS's Domain Name System service) or a global load balancer. If one region fails, the remaining region continues serving traffic without interruption. RPO is often seconds, and RTO can be near zero – but the cost is double (or more) because you are paying for full infrastructure in two places.
Underpinning all these strategies is the concept of replication. AWS offers different ways to copy data between regions. Amazon S3 supports Cross-Region Replication (CRR), where every object uploaded to one bucket is automatically copied to a bucket in another region. Amazon RDS (Relational Database Service) offers Multi-AZ (Availability Zone) deployments for high availability within a region and Cross-Region Read Replicas for DR across regions. AWS also provides a service called AWS Backup, which allows you to centralise and automate backups across multiple AWS services, setting retention policies and creating backup plans from a single console.
Another important concept is the difference between an Availability Zone (AZ) and a Region. An Availability Zone is a single data centre or a small cluster of data centres within a region. A Region is a large geographic area (like US East or Europe West) containing multiple AZs. For DR across regions, you are talking about recovering in a completely different geographic location, which protects against region-wide disasters (like a major earthquake or a power grid failure affecting a whole area). For high availability (HA) within a region, you spread resources across multiple AZs to protect against a single data centre failure.
Finally, you need to understand the concept of data durability and availability. Data durability refers to the likelihood of not losing an object – Amazon S3 Standard storage offers 99.999999999% durability, meaning if you store 10 million objects, you expect to lose one object every 10,000 years on average. Availability is how often you can access your data – S3 Standard offers 99.99% availability, meaning it may be inaccessible for about 53 minutes per year. For DR, you want both high durability and high availability, but you may trade off cost for speed of recovery.
Define Business Requirements (RPO and RTO)
Work with business stakeholders to decide how much data loss is acceptable (RPO) and how fast you need to be back online (RTO). These numbers drive every subsequent decision. For example, if the RPO is 5 minutes, you cannot use daily backups – you need continuous replication.
Choose the Appropriate DR Strategy
Based on your RPO and RTO, select one of the four strategies: Backup and Restore, Pilot Light, Warm Standby, or Multi-Site Active-Active. Each has different cost and complexity trade-offs. For a low RTO/RPO, you need warm standby or active-active. For a tolerant business, backup and restore may suffice.
Set Up Data Replication and Backups
Configure cross-region replication for storage services like S3, set up cross-region read replicas for databases like RDS or Aurora, and schedule automated backups using AWS Backup. This ensures your data is continuously or periodically copied to the DR region.
Create the DR Infrastructure in the Secondary Region
In the DR region, deploy the necessary infrastructure – this could be a minimal set of resources (pilot light) or a scaled-down version of the application (warm standby). Pre-build networking (VPC, subnets, security groups) so you can add compute resources quickly.
Automate the Failover Process
Write automation scripts (e.g., using AWS Lambda) that detect a disaster via CloudWatch alarms and then perform the failover steps: promote read replicas, launch compute instances, update DNS records via Route 53. This reduces recovery time and avoids human error.
Test the Plan Regularly
Conduct scheduled 'game day' tests where you simulate a disaster and execute your failover plan. Measure the actual RTO and RPO, identify gaps, and update the automation and documentation. An untested DR plan is not a plan – it is a hope.
Document and Review
Write a clear disaster recovery runbook that includes contact information, escalation paths, step-by-step procedures, and expected recovery times. Review and update it annually or whenever you make significant architecture changes.
Imagine you work for a medium-sized e-commerce company that sells handmade furniture online. The company's application runs entirely in AWS us-east-1 (North Virginia). Your database is an Amazon RDS PostgreSQL instance, your application runs on Amazon EC2 instances behind a load balancer, and all product images are stored in an Amazon S3 bucket. Your boss comes to you and says, 'We cannot afford a full second region, but we absolutely cannot lose more than 15 minutes of orders. And if the whole us-east-1 region goes down, we need to be selling again within one hour.'
Your job is to design a disaster recovery solution that meets these constraints. You start by evaluating the RPO: 15 minutes of data loss. This rules out backup and restore for the database because restoring from a daily backup would lose hours of orders. You also rule out Multi-Site Active-Active because the cost of running a full application in another region is too high. This leaves Pilot Light or Warm Standby as the viable options.
Let us walk through the Warm Standby implementation step by step. You decide to use us-west-2 (Oregon) as your DR region.
First, you set up cross-region replication for the S3 bucket containing product images. In the AWS Management Console, you enable Cross-Region Replication (CRR) on the source bucket in us-east-1, specifying a destination bucket in us-west-2. You also configure AWS Backup to take daily snapshots of the database and store them in a backup vault in us-west-2.
Second, for the database, you create a cross-region read replica of your RDS instance in us-west-2. This replica is read-only and is constantly synchronised with the primary database. The data lag is typically a few seconds, which safely meets your 15-minute RPO. You keep this replica running on a small instance class to minimise cost.
Third, you build a scaled-down version of your application in us-west-2. You launch a few EC2 instances (say, two t3.micro instances) behind an Application Load Balancer in that region. You also create a small Aurora read replica for any read-heavy queries if needed, but the main data synchronisation is through the RDS read replica. You do not direct any customers to this environment during normal operations – it just exists, powered on and ready.
Fourth, you automate the failover process. You write an AWS Lambda function that is triggered by a CloudWatch alarm (for example, if the health check to your primary application endpoint fails for 5 consecutive minutes). The Lambda function performs several actions in sequence: it promotes the read replica in us-west-2 to become a standalone, writable database; it then launches more EC2 instances in us-west-2 and registers them with the load balancer; it also changes a Route 53 DNS record (using a failover routing policy) to point the company's domain (shop.example.com) to the Application Load Balancer in us-west-2. You also trigger the restoration of the latest S3 backup if needed, though with CRR enabled, the images should already be there.
Finally, you test the failover. Every quarter, you schedule a 'game day' where you deliberately stop the primary database and trigger the Lambda function manually. You and your team watch the clock to confirm the application is serving requests from us-west-2 within the one-hour RTO. You also measure the data loss by comparing the last order timestamp before the failover with the timestamp of the last record in the promoted database. You document every step, identify any bottlenecks, and update the automation to improve the RTO over time.
In summary, the real-world work involves choosing the right AWS services (RDS read replicas, S3 CRR, Route 53, Lambda, CloudWatch), configuring them correctly, automating the recovery process, and then testing it repeatedly to ensure it works when a real disaster hits.
The DOP-C02 exam tests your ability to select the correct disaster recovery strategy based on given RPO and RTO requirements, and to know exactly which AWS services support which parts of a DR plan. You will not be asked to write a Lambda function, but you will need to recognise the correct combination of services for a given scenario.
The exam loves to present scenarios with specific numbers for RPO and RTO. For example: - 'An application running in us-east-1 needs a disaster recovery solution with an RTO of 15 minutes and an RPO of 1 second. The company has the budget for a second region.' The correct answer here is almost certainly Multi-Site Active-Active, because only a fully active second region can provide near-zero RPO and very low RTO. - 'A non-critical application can tolerate up to 24 hours of downtime and can lose a day's worth of data. Budget is very tight.' The answer here is Backup and Restore, because it is cheapest and the requirements are loose. - 'An application requires an RTO of 1 hour and an RPO of 5 minutes. The company can afford moderate additional cost for a DR region but cannot run full infrastructure there.' This points to Warm Standby or Pilot Light. The exam might test your ability to distinguish between these two: if the requirement says 'must have database running in DR region with data in sync', that indicates Pilot Light or Warm Standby. If it says 'must have a small compute environment already running', that leans toward Warm Standby.
Another common trap involves the concept of 'Multi-AZ' versus 'Cross-Region'. Multi-AZ deployments (like Multi-AZ RDS) provide high availability within a single region – they protect against an AZ failure but not against a region failure. The exam will often describe a disaster scenario that requires protection against a region-wide outage, and many beginners select Multi-AZ. That is wrong. Cross-Region replication or a secondary region is required.
Key definitions to memorise:
RPO (Recovery Point Objective): the maximum acceptable age of data that must be recovered from backup storage. This dictates how frequently backups must be taken.
RTO (Recovery Time Objective): the maximum acceptable time to restore systems after a disaster.
Backup and Restore: slowest recovery, cheapest.
Pilot Light: core data running in DR region, application infrastructure started on demand.
Warm Standby: scaled-down full application running in DR region, scaled up on disaster.
Multi-Site Active-Active: full application running in two or more regions simultaneously.
Traps the exam sets:
They might give you a requirement that says 'RTO of 1 hour' and 'RPO of 24 hours' – many candidates assume you need an expensive solution, but actually backup and restore can work if you automate the restore process to complete within an hour, and you are fine with losing 24 hours of data.
They might use 'pilot light' and 'warm standby' interchangeably in the answer choices, but only one is correct given the description of what is running in the DR region. If the scenario describes only database replication and no compute, it is pilot light. If it describes small compute instances plus database replication, it is warm standby.
They might present a false solution that uses 'Amazon EC2 Auto Scaling groups across regions' – Auto Scaling does not automatically handle cross-region traffic routing. You still need Route 53 or a global load balancer.
They might offer 'AWS Backup' as a universal solution for all DR scenarios – AWS Backup is excellent for backup and restore, but it does not provide continuous replication or instant failover. Do not select it if the RPO is very low.
Finally, remember that the exam expects you to know the differences between AWS backup services: AWS Backup for centralised backup management, Amazon S3 Object Lock for immutable backups against ransomware, and AWS Storage Gateway for hybrid cloud backup. You should also be familiar with the concept of a 'disaster recovery plan' – a documented set of procedures – and that AWS does not create this for you; you must design and test it yourself.
Disaster recovery is a process to restore entire applications and infrastructure, while a backup is just a copy of data.
RPO (Recovery Point Objective) defines how much data loss your business can tolerate, and RTO (Recovery Time Objective) defines how quickly you must recover.
The four main DR strategies in order of increasing cost and decreasing recovery time are: Backup and Restore, Pilot Light, Warm Standby, and Multi-Site Active-Active.
Multi-AZ deployments provide high availability within a single region; cross-region replication is required for true disaster recovery across regions.
AWS services like S3 Cross-Region Replication, RDS Cross-Region Read Replicas, and Route 53 failover routing are key building blocks for implementing DR in AWS.
You must test your disaster recovery plan regularly because untested plans often fail when a real disaster occurs.
Automation via AWS Lambda and CloudWatch can significantly reduce your RTO by eliminating manual steps during failover.
Backup and Restore is the cheapest strategy but has the worst RTO and RPO; Multi-Site Active-Active is the most expensive but can achieve near-zero downtime.
These come up on the exam all the time. Here's how to tell them apart.
Multi-AZ Deployment
Protects against a single Availability Zone failure within a region
Data is synchronously replicated within the same region
RTO is typically less than a minute (automatic failover)
Cross-Region Deployment
Protects against a full region outage
Data is asynchronously replicated between regions (some lag)
RTO depends on your DR plan – can be minutes to hours
RPO (Recovery Point Objective)
Measures acceptable data loss (how old the recovered data can be)
Dictates backup frequency or replication speed needed
Example: RPO of 1 hour means you can lose at most 1 hour of data
RTO (Recovery Time Objective)
Measures acceptable downtime (time to restore service)
Dictates how much automation and pre-provisioned infrastructure you need
Example: RTO of 1 hour means application must be back online within 60 minutes
Backup and Restore
No running resources in DR region except backup storage
Restore process can take hours (manual steps often required)
Cheapest option – only pay for backup storage
Pilot Light
Core data (e.g., database) is replicated and running in DR region
Compute resources are stopped or minimal – started on failover
Moderate cost – pay for data replication and minimal compute
Warm Standby
Scaled-down but full application stack is running in DR region
On failover, you scale up the existing resources
Higher cost than pilot light, lower RTO
Multi-Site Active-Active
Full application stack runs at full capacity in two or more regions
No scale-up needed; traffic is simply routed away from failed region
Most expensive, but near-zero RTO and RPO
Amazon S3 Cross-Region Replication (CRR)
Continuously replicates objects as they are uploaded to S3
Provides near-real-time RPO (seconds to minutes)
Only works for S3 data (objects in buckets)
AWS Backup
Schedules periodic backups of multiple AWS services (RDS, EC2, S3)
Provides centralised backup management and retention policies
Restore is typically slower (from snapshot) – higher RPO
Route 53 Simple Routing
Routes all traffic to a single resource (one IP or one load balancer)
No health checks or automatic switching
Suitable for single-region, non-DR configurations
Route 53 Failover Routing
Routes traffic based on health checks – switches to DR region if primary fails
Automatically redirects traffic during a disaster
Essential for automated DR failover
Mistake
A backup and a disaster recovery plan are the same thing.
Correct
A backup is a copy of data, while a disaster recovery plan is a complete process to restore applications and operations, often including infrastructure, networking, and DNS changes, not just data.
The terms are used loosely in conversation, but in the exam they have distinct meanings. Many beginners think simply having a tape backup is enough, ignoring the need to restore the actual servers, load balancers, and DNS records.
Mistake
Multi-AZ deployments protect against region-wide disasters.
Correct
Multi-AZ deployments only protect against a single Availability Zone failure within a region. To protect against a region outage, you need cross-region replication and a second region.
The term 'high availability' is often conflated with 'disaster recovery'. People see 'Multi-AZ' and think it covers all failures, but AWS definitions are precise: AZ is local, region is global.
Mistake
The RTO and RPO are fixed values that AWS guarantees for every service.
Correct
RTO and RPO are business requirements that you define. AWS services provide capabilities (like replication lag, restore speeds), but you must design your architecture to meet your specific RTO/RPO.
Newcomers assume AWS will guarantee recovery times. In reality, you must test your own restore processes to know your actual RTO, and your RPO depends on how often you take backups or how fast replication syncs.
Mistake
You should always choose the cheapest disaster recovery option to save money.
Correct
The correct DR option depends on business tolerance for downtime and data loss. A cheap solution with a 24-hour RTO could lose the business millions in revenue per hour, so cost must be balanced against risk.
Beginners focus on minimising AWS spend, but the exam expects you to match the solution to the requirements. If the requirement says 'RTO of 1 hour', a cheap backup and restore strategy is simply wrong, no matter how little it costs.
Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.
High availability (HA) keeps your application running despite localised failures (like a server crash) within a single region. Disaster recovery (DR) gets your application running again in a different location after a major disaster that takes out the whole region.
Not always, but for region-wide disasters, yes. If your RTO and RPO are very tolerant (e.g., hours of downtime and a day of data loss), you can use backup and restore within the same region. But for strict requirements, you need a second region.
Backup and Restore is the cheapest because you only pay for storage and occasional compute to restore. However, it has the longest recovery time (hours or days) and most data loss potential.
No. AWS Backup is excellent for scheduled backups and restores, but it does not provide continuous replication or near-instant failover. If you need very low RPO (seconds) and RTO (minutes), you need continuous replication services like RDS cross-region replicas or S3 CRR.
You must test it. Schedule regular 'game days' where you simulate a disaster (e.g., stop your primary database) and run your automated failover process. Measure the actual time to recovery and the data loss, then improve your automation.
In pilot light, you only replicate your core data (e.g., database) to the DR region and have minimal compute (often just one tiny server). In warm standby, you run a scaled-down but fully functional version of your entire application in the DR region.
You've finished Disaster Recovery and Backup Strategies. Continue through the DOP-C02 study guide to build a complete picture of the exam.
Done with this chapter?