Disaster Recovery Strategies

Topics Covered

Recovery Objectives and Disaster Scenarios

Recovery point objective and recovery time objective

Types of disaster

High availability compared with disaster recovery

Business impact analysis and tiers

Regions as the unit of disaster recovery

Measuring achieved objectives

Failover and failback

Recovery level objective and other measures

Data loss in practice

Worked example

Quick check

Recovery objectives in contracts

Disaster recovery planning prepares for events larger than the failures high availability handles: the loss of a whole Region, widespread data corruption, a ransomware attack or an operator deleting production resources. The exam tests whether you can translate a business's recovery objectives into the cheapest strategy that meets them, and which AWS features implement each strategy. Multi-Region and Disaster Recovery in the AWS in Practice course covers the hands on side.

Recovery point objective and recovery time objective

Two numbers frame every disaster recovery question. The recovery point objective, RPO, is the maximum acceptable amount of data loss measured in time: an RPO of one hour means the business can tolerate losing up to an hour of changes, so a copy of data at most an hour old must always exist somewhere safe. The recovery time objective, RTO, is the maximum acceptable time between the disaster and the restoration of service: an RTO of four hours means the application must be serving again within four hours.

RPO is how much data you can lose; RTO is how long you can be down.

Lower values for both cost more. An RPO near zero requires continuous replication rather than periodic backups. An RTO of minutes requires infrastructure already running in the recovery location rather than built after the event. Business stakeholders set the objectives based on the cost of downtime and data loss, and architects pick the strategy that meets them at the lowest cost. Exam questions usually state the objectives directly, for example an RPO of 15 minutes and an RTO of one hour, and expect you to choose the strategy and services that meet them and no more.

Types of disaster

Disasters fall into a few categories, and each needs a different defence. Natural and infrastructure disasters, such as floods, fires or a large scale power failure, can take out a data centre or, rarely, a whole Region; protection requires copies of data and the ability to run in another Region. Technical failures, such as a bad deployment, a software bug that corrupts data or an expired certificate, often affect every Region at once because the same change is deployed everywhere; protection requires backups taken before the corruption and the ability to roll back. Human actions, such as an administrator deleting a database or an attacker encrypting data for ransom, also replicate to every copy; protection requires immutable, isolated backups in a separate account.

This last point is tested often. Replication protects against losing a location, not against bad data, because a deletion or corruption is replicated immediately. A complete DR plan combines replication for location failures with point in time backups for logical failures, and keeps at least one copy where an attacker with access to production cannot delete it.

High availability compared with disaster recovery

High availability, covered in the previous lesson, keeps a workload running through common failures such as an instance or zone loss, usually automatically and with no data loss. Disaster recovery restores a workload after a rare, large event, often with a deliberate decision to fail over and some accepted data loss. A Multi-AZ database is a high availability feature; a cross-Region read replica or backup copy is a disaster recovery feature. Many questions offer Multi-AZ as an answer to a Regional disaster requirement, which is wrong, because all zones are in the same Region.

Business impact analysis and tiers

Organisations rarely give every application the same objectives. A business impact analysis classifies workloads into tiers: a tier one payment system might need an RPO of seconds and an RTO of minutes, a tier two internal portal an RPO of an hour and RTO of a few hours, and a tier three reporting system an RPO of a day and RTO of a day or more. Each tier maps to a strategy. Questions that describe several applications with different objectives expect different strategies for each rather than the most expensive strategy for all.

Regions as the unit of disaster recovery

AWS Regions are isolated from each other, so a recovery Region is unlikely to be affected by the same event. The choice of recovery Region considers distance, data residency laws that may restrict where data can be stored, the availability of required services and instance types, and latency for users after failover. Some organisations use a second Region in the same country to meet residency rules. Service quotas and capacity in the recovery Region must be checked in advance, because a failover that cannot launch enough instances does not meet its RTO.

Measuring achieved objectives

The RPO achieved depends on the replication lag or backup frequency at the moment of the disaster, not on the design document. Monitoring replication lag for databases, replication metrics for S3 and the age of the latest backup shows whether the objective is actually being met. The RTO achieved depends on how long the recovery steps take in practice, which is only known by testing. A DR plan that has never been tested should be assumed not to meet its RTO.

Failover and failback

Failover moves the workload to the recovery Region. Failback returns it to the primary once the problem is resolved, which requires replicating changes made in the recovery Region back to the primary and switching traffic again. Failback is often forgotten in plans, and it can take longer than failover because data has diverged. Designs that support replication in both directions, such as DynamoDB global tables or Aurora Global Database switchover, make failback simpler.

Recovery level objective and other measures

Some plans add further measures. The recovery consistency objective describes how consistent data must be across systems after recovery, for example that orders and payments restored from different stores must match. The maximum tolerable downtime is the point beyond which the business suffers serious harm, which should be longer than the RTO to leave a margin. Work recovery time is the time after systems return before staff and processes are fully productive again. The exam focuses on RPO and RTO, but these ideas explain why recovery plans include data reconciliation and operational steps, not just infrastructure.

Data loss in practice

An RPO is not met just by having replication turned on. If replication lag rises to twenty minutes during a busy period, a disaster at that moment loses twenty minutes of data. If backups fail silently for a week, the real RPO is a week. Alarms on replication lag, on backup job failures and on the age of the newest recovery point make sure the achieved RPO stays within the target. AWS Backup publishes job status events to EventBridge, which can notify an operations team when a backup fails.

Worked example

A retailer runs its online store in one Region with RDS Multi-AZ and EC2 instances in three zones. Leadership asks whether the store is protected against a Regional outage with an RPO of one hour and an RTO of four hours. It is not: Multi-AZ protects only within the Region, and there are no copies elsewhere. Adding AWS Backup cross-Region copies every hour, copying AMIs to the recovery Region and keeping CloudFormation templates there meets the objectives at low cost through backup and restore, as long as a test confirms the restore finishes within four hours.

Quick check

For each workload, write down the RPO, the RTO, the failures it must survive, where its data is copied, how often and what must exist in the recovery Region before failover can start.

Recovery objectives in contracts

Customers often see availability and recovery commitments in service level agreements. An SLA promising 99.95 percent availability per month allows about 22 minutes of downtime, which rules out recovery strategies with an RTO of hours for a Regional event. Internal objectives should be stricter than external commitments, leaving a margin for detection and decision time before the recovery clock even starts.

Multi-AZ is not disaster recovery

All Availability Zones are in one Region. For a Regional disaster, you need copies of data and the ability to run in another Region: cross-Region backups, replicas or a standby.