Interview Prep/AWS/Route 53, CloudFront, API Gateway and Messaging

The primary Region is down, but Route 53 failover records still send traffic to it.

IntermediateTroubleshootingRoute 53, CloudFront, API Gateway and Messaging
Answer

Likely causes → The primary record has no health check associated, or EvaluateTargetHealth is false on the alias. The health check tests something that is still up (for example, the ALB answers / even though the app is broken). Or clients cache DNS beyond the TTL.

Diagnose →

aws route53 list-resource-record-sets --hosted-zone-id Z0123ABC \
  --query "ResourceRecordSets[?Failover!=null].[Name,Failover,HealthCheckId,AliasTarget.EvaluateTargetHealth]"
aws route53 get-health-check-status --health-check-id <id>

Fix →

  1. Attach a health check that tests a deep /healthz endpoint (checking the app and its dependencies) to the PRIMARY record
  2. Set EvaluateTargetHealth: true on alias records
  3. Use a 60s TTL

Prevent → Run regular game days that fail the primary, and consider Route 53 ARC routing controls for manual, deterministic failover.

aws All AWS questions Roadmap: AWS core services

More on Route 53, CloudFront, API Gateway and Messaging