Route 53 routing policies and health-based failover
Exam alignment: DOP-C02 Domain 3 — highly available, scalable, and automatically recoverable solutions.
Learning objective
Design, implement, and troubleshoot failover, weighted, latency, alias health, TTL, and application health checks from measurable availability, scaling, and recovery requirements.
Professional scenario
The DNS health check monitors a shallow endpoint and misses checkout failure.
Core concepts
- This lesson focuses on failover, weighted, latency, alias health, TTL, and application health checks.
- Start with business impact and measurable availability, RTO, and RPO.
- Map infrastructure, data, identity, quota, network, deployment, and human dependencies.
- Remove accidental single points of failure and limit blast radius.
- Define health signals, failure detection, failover, rollback, and failback.
- Measure actual capacity, replication lag, and recovery duration.
- Treat testing and operational readiness as part of the architecture.
Architecture walkthrough
- Translate the business requirement into availability, RTO, RPO, capacity, and failure-domain needs.
- Draw every dependency and identify shared control paths.
- Select Multi-AZ, cross-Region, decoupling, replication, or backup patterns.
- Define technical and business health signals.
- Automate recovery with scoped permissions and known quotas.
- Run a tabletop, restore test, or controlled fault experiment.
- Compare actual results with objectives and improve the system.
Decision guide
| Requirement | Preferred direction | Why |
|---|---|---|
| Continue during one AZ failure | Multi-AZ targets and surviving capacity | Removes the AZ as a single point of failure |
| Regional disaster recovery | A defined cross-Region strategy | Matches RTO, RPO, and cost |
| Burst or dependency failure | Asynchronous decoupling and backpressure | Prevents cascading synchronous failure |
| Logical data corruption | Protected backup and point-in-time recovery | Replication can copy bad changes |
| Production confidence | Game days and controlled fault injection | Architecture diagrams are not evidence |
Failure modes and troubleshooting
- A standby exists but lacks current data, secrets, certificates, quotas, or capacity.
- Traffic moves before the recovery environment is ready.
- Retries amplify overload or duplicate non-idempotent work.
- A health check is shallow and does not represent the business function.
- Replication is enabled but lag and failed replication are not monitored.
Security and operational considerations
- Keep recovery access independent from the failed or compromised environment.
- Protect backup vaults, KMS keys, DNS changes, replication roles, and experiment controls.
- Use least-privilege automation roles and audit failover actions.
- Do not expose customer data in experiments, metrics, logs, or game-day evidence.
Hands-on lab
Goal: Design and validate one controlled resilience scenario.
Tasks
- Write measurable availability, RTO, and RPO requirements.
- Draw dependencies and failure domains.
- Choose the architecture and rejected alternatives.
- Define health, failover, rollback, and failback.
- Introduce one controlled fault or tabletop inject.
- Measure recovery and record improvements.
Validation
- The architecture meets the stated objective.
- Recovery does not rely on unavailable access paths.
- Actual results are compared with targets.
Cost control: Use tabletop simulations for expensive multi-Region designs and delete every live test resource.
Cleanup
- Stop experiments and synthetic traffic.
- Delete temporary compute, replicas, alarms, backups, and DNS test records.
- Confirm that production recovery resources remain intact.
Exam traps
- Equating backup, replication, durability, and availability.
- Choosing active/active without considering cost, conflict, and operational complexity.
- Assuming a feature automatically meets RTO or RPO.
- Failing over traffic before data and capacity are ready.
- Treating an untested runbook as a reliable recovery mechanism.
Key takeaways
- Master failover, weighted, latency, alias health, TTL, and application health checks.
- Resilience objectives must be measurable.
- Recovery requires ready data, capacity, routing, permissions, and operations.
- Testing produces the evidence that the design works.
Review questions
- Which business requirement drives this design?
- What is the main failure domain?
- Which hidden dependency can still fail?
- Which health signal initiates recovery?
- What are the RTO and RPO?
- What must be ready before traffic moves?
- How is failback performed?
- How is the design tested?
Answers
- The explicit availability and recovery objective.
- The smallest boundary whose failure affects service.
- A shared resource, credential, quota, control path, or human process.
- A tested technical or business indicator.
- They come from business impact analysis.
- Data, capacity, version, configuration, credentials, routing, and observability.
- Through a separate controlled and tested workflow.
- With restore tests, failover exercises, game days, and fault injection.