Study guide
Technical reference and lesson notes
Purpose of This Lesson
Recovery Point Objective (RPO), Recovery Time Objective (RTO), and disaster recovery (DR) strategy selection are fundamental architecture decisions. AWS exam scenarios commonly require matching business requirements such as acceptable data loss, recovery speed, workload criticality, and budget to an appropriate design.
This guide explains how RPO and RTO are measured, which technologies support different recovery targets, and how the four common DR strategies compare.
Key Concepts
Recovery Point Objective (RPO)
RPO is the maximum acceptable amount of data loss measured backward from the point of a disruption. It is usually expressed in seconds, minutes, or hours.
For example, an RPO of two hours means the organization accepts losing up to two hours of transactions or changes if a disaster occurs. The architecture must create recovery points frequently enough, or replicate changes quickly enough, to meet that requirement.
RPO is primarily determined by how data is copied or replicated:
- Synchronous replication: Data is committed only after it is written to multiple locations. This can support very low RPOs but is sensitive to latency and distance.
- Asynchronous replication: Changes are sent to another location without making the primary transaction wait for confirmation. This supports longer distances and generally better performance, but replication lag can result in some data loss.
- Snapshots and backups: Periodic snapshots typically produce RPOs measured in minutes to hours, depending on their frequency and completion time.
- Offline or tape-based backups: These may result in RPOs measured in hours or days.
An RPO is not automatically equal to the backup schedule. Backup frequency, replication lag, backup completion time, and the recoverability of the backup all affect the actual achievable RPO.
Recovery Time Objective (RTO)
RTO is the maximum acceptable time required to restore service after a disruption. It includes the time needed to activate infrastructure, restore or promote data, configure dependencies, validate the environment, and make the application available to users.
Examples:
- A workload with a four-hour RTO must be operational within four hours of the disaster event.
- A workload with a minutes-level RTO generally cannot depend on manually rebuilding servers and restoring large datasets.
- A near-zero RTO requires capacity and data already available in a standby or active environment, together with highly automated traffic redirection.
RTO is primarily determined by the recovery mechanism:
- Fault tolerance: Redundant components continue operating with little or no interruption.
- High availability: Load balancing, multiple Availability Zones, and automatic replacement or scaling provide rapid recovery.
- Automated cross-site recovery: A secondary environment is activated and traffic is redirected through automation.
- Manual recovery: Operators provision infrastructure, restore data, and perform validation steps, resulting in longer recovery times.
RPO and RTO Are Different
RPO answers: How much data can be lost?
RTO answers: How long can the service be unavailable?
A design can have a low RPO but a poor RTO—for example, continuously replicating data to a secondary Region while having no running application infrastructure there. Conversely, a warm application environment may recover quickly but still have data loss if replication is delayed.
For a disaster occurring at time T:
- The time since the most recent valid recovery point influences data loss and therefore RPO.
- The time from
Tuntil the application is serving traffic influences RTO.
AWS Availability Zones Versus Regions
Multi-AZ designs address failures within an AWS Region and are usually the default approach for high availability. Multi-Region designs address Regional failures and provide stronger geographic isolation, but they introduce additional cost and operational complexity.
AWS DR strategy diagrams often use multi-Region examples because the goal is to protect against a Regional outage. A multi-AZ architecture should not automatically be described as a multi-Region disaster recovery design.
Disaster Recovery Strategies
The strategies below progress from lower cost and slower recovery to higher cost and faster recovery.
Backup and Restore
With backup and restore, the secondary environment is not continuously running. After a failure, the organization provisions or configures infrastructure and restores data from backups or snapshots.
Common AWS building blocks include:
- Amazon EBS snapshots
- Amazon RDS snapshots and backups
- Amazon S3 for backup storage
- Amazon Machine Images (AMIs)
- AWS Backup
- Infrastructure as code for repeatable environment creation
- Amazon Route 53 for directing traffic after recovery
Backups and snapshots can be copied to another Region for Regional protection. The recovery process may still be lengthy because compute capacity, networking, application services, and data must be restored or recreated.
This strategy is generally appropriate for lower-priority workloads where the business can tolerate longer downtime and more data loss.
Pilot Light
A pilot light environment keeps the minimum required foundation running in a secondary location while most application compute capacity remains inactive.
The secondary environment may contain:
- Replicated databases or file systems
- Core networking and security configuration
- Identity and authentication dependencies
- DNS or certificate services where required by the design
- Templates or Auto Scaling configurations ready to launch application capacity
After a disaster, the organization activates or scales the application tier and redirects traffic to the secondary Region. Because data replication and core services already exist, recovery is faster than rebuilding everything from backups, but compute initialization still takes time.
Warm Standby
Warm standby is similar to pilot light, but a reduced version of the application environment is already running in the secondary location. This may include load balancers and a small number of application instances.
When a disaster occurs, the environment can begin serving traffic quickly and then scale out to the required capacity. Warm standby costs more than pilot light because compute resources remain active, but it generally provides a shorter RTO.
Multi-Site Active/Active
In a multi-site active/active design, production traffic is served by application environments in multiple Regions at the same time. Amazon Route 53 can distribute traffic to both Regional endpoints using an appropriate routing policy.
This approach provides the fastest failover because the secondary environment is already serving requests. It also has the highest cost and operational complexity. Applications must be designed for cross-Region operation, including data consistency, user sessions, deployments, observability, and failure handling.
Amazon DynamoDB global tables support multi-Region, multi-active writes with asynchronous replication. This can be suitable for active/active applications that require writes in multiple Regions, provided the application can handle replication behavior and conflict considerations.
Amazon RDS databases generally do not provide unrestricted active/active writes across Regions. A cross-Region replica may need to be promoted after a disaster. Aurora capabilities such as write forwarding do not make independent writable database primaries in multiple Regions, so they should not be treated as equivalent to DynamoDB global tables for multi-master active/active writes.
Architecture Decision Guide
| Requirement | Likely strategy | Typical characteristics | Main tradeoff |
|---|---|---|---|
| Lowest cost; long outage acceptable | Backup and restore | Backups or snapshots; infrastructure restored after failure | Longest RTO and potentially largest RPO |
| Data layer ready; application can be launched during recovery | Pilot light | Replicated data and minimal services in the secondary location | Lower cost than standby, but slower recovery |
| Faster recovery with limited secondary capacity | Warm standby | Reduced application stack continuously running | Higher cost than pilot light; scale-out still required |
| Near-zero downtime and high criticality | Multi-site active/active | Multiple Regions actively serve traffic | Highest cost and greatest application complexity |
| Very low RPO over short distances | Synchronous replication | Commit depends on multiple copies | Latency, distance, and service-specific limitations |
| Low RPO across long distances | Asynchronous replication | Changes copied without blocking the primary transaction | Replication lag and possible data loss |
| Minutes-to-hours recovery | Snapshots, backups, automated restore | Recover from EBS, RDS, or other backup artifacts | Restore and validation time remain significant |
Choose the strategy from business requirements rather than from a preferred AWS service. First establish acceptable data loss and downtime, then select the replication, recovery, and traffic-routing mechanisms that satisfy those limits.
Exam-Relevant Takeaways
- RPO measures data loss; RTO measures downtime. Do not reverse them.
- Lower RPO usually requires more frequent backups, continuous replication, or synchronous replication—and therefore more cost or complexity.
- Lower RTO requires pre-provisioned capacity, automation, fault tolerance, or an already-active environment.
- Backup and restore is the least expensive of the four broad DR strategies but normally has the slowest recovery.
- Pilot light keeps the data layer and essential dependencies available while most application compute is inactive.
- Warm standby keeps a reduced application environment running in the recovery location.
- Multi-site active/active runs application capacity in multiple Regions and serves traffic from more than one location.
- Route 53 can redirect traffic between Regional endpoints, but DNS-based failover does not instantly terminate existing client connections and must be combined with health checks and suitable TTLs.
- Multi-AZ high availability is not the same as multi-Region disaster recovery.
- DynamoDB global tables are designed for multi-Region, multi-active data replication. Standard RDS cross-Region replication is generally a primary-and-replica model requiring promotion for Regional failover.
- A DR plan is incomplete without testing. Recovery procedures, permissions, dependencies, DNS behavior, backup integrity, and application validation must be exercised regularly.
Common Exam Traps
- Confusing RPO with RTO: “Can lose no more than 15 minutes of data” describes RPO. “Must be online within 15 minutes” describes RTO.
- Assuming replication means zero data loss: Asynchronous replication can have lag. The achievable RPO depends on the lag and failure point.
- Treating snapshots as instantaneous recovery: Snapshots reduce data restoration effort but do not eliminate infrastructure startup, restore, configuration, and testing time.
- Calling a stopped EC2 environment warm standby: Warm standby requires a reduced but running application environment. A mostly inactive environment is closer to pilot light.
- Using backup and restore for strict RTO requirements: If the workload must recover in minutes, manually rebuilding the environment is unlikely to satisfy the requirement.
- Assuming multi-AZ protects against every disaster: Multi-AZ improves Regional availability but does not protect against a full Regional outage, Regional configuration error, or certain account-level failures.
- Assuming RDS supports active/active multi-Region writes: Cross-Region RDS replicas are not equivalent to multi-master databases. Promotion and application failover are typically required.
- Assuming Route 53 alone provides application recovery: DNS routing must point to a healthy, functioning environment. The secondary stack, data, permissions, and dependencies must already be recoverable.
- Selecting the most resilient option without considering cost: Active/active may exceed the business requirement. A lower-cost pilot light or backup design may be appropriate for noncritical workloads.
Real-World Engineer Notes
- Define RPO and RTO per workload, not only per account or application portfolio. A customer-facing ordering system may require very different targets from an internal reporting system.
- Include data dependencies in recovery testing. Restoring compute without restoring databases, queues, object storage, secrets, certificates, identity, or network connectivity does not produce a working application.
- Automate recovery with infrastructure as code, AWS Backup policies, Systems Manager automation, deployment pipelines, and tested runbooks where appropriate.
- Track actual replication lag and recovery duration. A nominal target is not useful if monitoring cannot show whether the architecture is currently meeting it.
- Test both planned and unplanned failover. A design that works only when an operator follows an ideal sequence may fail during a real incident.
- Plan for failback. Returning to the original Region can create data synchronization, capacity, DNS, and consistency challenges.
- Consider the effect of DNS caching and long-lived connections when using Route 53 failover. Traffic may not move instantly for every client.
- Active/active systems require application-level decisions about session state, idempotency, conflict handling, data locality, and deployment coordination—not just duplicated infrastructure.
Quick Reference Summary
- RPO: Maximum acceptable data loss; determined by recovery-point creation and replication.
- RTO: Maximum acceptable recovery time; determined by how quickly infrastructure and services can be restored.
- Synchronous replication: Lower potential data loss, but higher latency and distance constraints.
- Asynchronous replication: Better suited to long-distance replication, with possible lag.
- Backup and restore: Lowest cost, slowest recovery.
- Pilot light: Data and core dependencies ready; application capacity launched during recovery.
- Warm standby: Reduced application environment already running.
- Multi-site active/active: Multiple Regions actively serve traffic; fastest recovery and highest cost.
- DynamoDB global tables: Multi-Region, multi-active writes with asynchronous replication.
- RDS cross-Region recovery: Typically requires promotion of a secondary database rather than simultaneous independent writes.
Flashcards
1. What does RPO measure?
The maximum acceptable amount of data loss, measured backward from a disaster event.
2. What does RTO measure?
The maximum acceptable time required to restore application service after a disaster.
3. Which replication method generally offers the lowest data-loss window?
Synchronous replication, because a transaction is not committed until multiple copies acknowledge it.
4. What is the main disadvantage of synchronous replication across distant locations?
Network latency and distance can reduce performance or make the design impractical.
5. What is the defining characteristic of pilot light?
The recovery location keeps replicated data and essential foundation services ready, while most application compute is inactive.
6. How does warm standby differ from pilot light?
Warm standby keeps a reduced application environment running, allowing it to serve traffic more quickly.
7. Which DR strategy normally has the highest cost?
Multi-site active/active, because complete application capacity operates in multiple locations.
8. Why is backup and restore usually unsuitable for a minutes-level RTO?
Infrastructure and data must be restored or recreated after the event, which may take longer than the target allows.
9. What AWS service can provide multi-Region, multi-active database behavior?
Amazon DynamoDB global tables, using asynchronous replication between Regions.
10. Why does an RDS cross-Region replica not automatically provide active/active writes?
The replica is generally a secondary that must be promoted; it is not an independently writable primary in the second Region.
11. What is the difference between multi-AZ and multi-Region DR?
Multi-AZ protects availability within one Region, while multi-Region DR is designed to recover from a Regional outage.
12. What two questions should be answered before selecting a DR strategy?
How much data can be lost, and how long can the service remain unavailable?
Practice Questions
Question 1
A financial reporting workload can tolerate losing up to 24 hours of data and can remain unavailable for two days. The organization wants the lowest-cost DR solution. Which approach is most appropriate?
A. Multi-site active/active across two Regions
B. Warm standby with continuously running application servers
C. Pilot light with replicated databases
D. Backup and restore using scheduled backups and infrastructure templates
Correct answer: D
Explanation: The workload has a permissive RPO and RTO, so backup and restore provides the lowest-cost option. Active/active, warm standby, and pilot light maintain more resources than the stated requirements justify.
Question 2
An application must lose no more than a few minutes of data if its primary Region fails. The recovery Region should not run the full application stack continuously, but the database and essential services must already be available. Which strategy best fits?
A. Backup and restore
B. Pilot light
C. Warm standby
D. Multi-site active/active
Correct answer: B
Explanation: Pilot light maintains replicated data and the minimum required recovery foundation while leaving most application compute inactive. This can provide a low data-loss window with less cost than a continuously running full environment.
Question 3
A critical customer-facing service must continue operating if an AWS Region becomes unavailable. The business requires near-zero downtime and wants traffic served from both Regions during normal operation. Which architecture is most appropriate?
A. Cross-Region snapshots restored after failure
B. Pilot light with a stopped Auto Scaling group
C. Warm standby with one small instance in the secondary Region
D. Multi-site active/active with Regional traffic routing
Correct answer: D
Explanation: Multi-site active/active keeps application capacity operating in multiple Regions and serves traffic from both. It provides the fastest failover, although it has the highest cost and requires careful handling of data consistency and application state.
Question 4
A company uses an Amazon RDS database in Region A and an asynchronous cross-Region read replica in Region B. During a Regional disaster, which action is generally required before the application can write in Region B?
A. Enable Route 53 latency routing only
B. Promote the replica in Region B
C. Convert the RDS replica into a DynamoDB global table
D. Create an EBS snapshot of the primary database
Correct answer: B
Explanation: An RDS cross-Region replica is normally a secondary database. It must be promoted before it becomes the writable primary for the recovery environment. DNS routing alone does not make the replica writable.
Question 5
A design replicates database changes asynchronously to a secondary Region. The business states that it can tolerate up to 10 minutes of lost transactions but requires the application to be available within 30 minutes. Which statement is correct?
A. The design addresses RTO but not RPO.
B. The design addresses RPO but not necessarily RTO.
C. RPO and RTO are identical because both are measured in minutes.
D. Asynchronous replication always provides zero data loss.
Correct answer: B
Explanation: Asynchronous replication can meet the data-loss requirement if replication lag remains within 10 minutes, so it addresses the RPO. However, the application environment, database promotion, traffic routing, and validation must also complete within 30 minutes; replication alone does not guarantee the RTO.