Test failure domains and recovery objectives
Work from downtime and data-loss limits to capacity, replication, failover and a measured recovery exercise.
Task 2.2 · Test failure domains and recovery objectives
Translate business limits
RPO is the maximum tolerable loss measured in time. RTO is the longest acceptable interval from disruption to recovery. Measure detection, provisioning, data recovery, traffic changes and client reconnection. A backup every hour leaves up to an hour of loss when restores work. Surviving an instance or AZ failure with multi-AZ resources and surviving an entire Region are different design decisions.
Remove shared points of failure
Spread stateless application targets and their load balancer across AZs. Provide enough remaining capacity after a zone failure, externalize sessions and use a highly available database deployment. An RDS Multi-AZ DB instance uses a synchronous standby for failover. Read replicas serve different access patterns and may lag. RDS Proxy can pool connections and improve recovery behavior for supported engines. Use timeouts and bounded retries with backoff. Quota headroom, DNS TTLs, secret and key access, network routes and downstream dependencies matter in the recovery location.
Select a regional strategy
Backup and restore rebuilds from recovery points, pilot light keeps core services or data running, warm standby keeps a smaller functional stack running, and active-active serves traffic in multiple Regions during normal operation. Shorter recovery usually brings extra standing cost and data consistency decisions. Recreate infrastructure from versioned templates and known images. Monitor customer success rates and latency, correlate traces with X-Ray, and exercise both failover and failback. Managed services can remove dependencies such as maintaining custom speech-processing hosts.
Define the system's behavior during a partition
Active-active routing does not decide whether two Regions may sell the last seat at the same time. Assign a writer for each inventory partition, or choose a datastore and protocol that enforce the required consistency. Specify what happens if the owner cannot be reached. Deferrable work such as generating a spoken confirmation may be queued after a durable booking. Measure the availability of the booking and the delay of its optional confirmation separately.
Recover a regional appointment system
The business accepts 10 minutes of lost bookings and 35 minutes offline. A quarterly test recorded 4 minutes to detect the outage, 38 minutes to build application nodes, 8 minutes for traffic cutover and 3 minutes for health checks. Replication lag peaked at 4 minutes.
Which budget did the exercise miss and what should change before the next drill?
Compare your design with the worked answer
The measured recovery time was 53 minutes. Lag was within the 10-minute data-loss budget during this drill. Predeploy a functional warm standby, reserve standby quotas and rehearse scaling and cutover within the remaining 20 minutes after detection, routing and health checks. Verify booking consistency from the client path.
If an unchanged legacy server cannot be rebuilt from source, rehearse restoring its image or use supported continuous block replication. Check its application dependencies and boot order in the isolated recovery network.
Apply the video example
Translate the backup walkthrough into an incident exercise. Label the plan, the selected resources, the vault and the identity restoring from it. Start the recovery clock at incident detection and stop it only after the application reads a known record from the restored system.
freeCodeCamp at 22:55:18 · Disaster recovery strategies
AWS exam guide for this domain · Return to the objective map
Test failure domains and recovery objectives quiz
Answer 5 questions. Check each answer for an explanation.