Your public API is hosted in two regions. You want Route 53 to automatically send traffic to the secondary region when the primary region’s endpoint fails. The primary API health check is returning failure codes, but clients still reach the primary region for several minutes. Which Route 53 configuration most directly addresses this behavior?
Trap 1: Use a single Alias A record with simple routing and a short TTL so…
A single Alias A record with simple routing always returns the same endpoint regardless of its health; Route 53 does not evaluate health checks for simple routing policies. A short TTL only reduces the DNS cache duration, so clients will eventually retry, but they will keep getting the same IP address until it is manually changed. There is no automatic switch to another region, so this configuration cannot provide failover.
Trap 2: Use weighted routing to send a small percentage of traffic to the…
Weighted routing distributes traffic by assigned weights, but it does not consider endpoint health; Route 53 will continue sending requests to the primary even if its health check fails unless you manually modify the weights. Manual adjustment is slow, relies on DNS TTL expirations, and introduces human error, making it unsuitable for automated disaster recovery. Failover routing, by contrast, changes answers automatically when the associated health check fails.
Trap 3: Use latency routing only, letting Route 53 choose the…
Latency routing selects the region that offers the lowest latency for each client, but it makes this choice purely on network performance, not on whether the endpoint is actually healthy. If the primary region is down but still responds to DNS queries with the same IP, latency routing will keep directing users there because no health check is involved. It therefore lacks the deterministic health-check-based failover behavior required for active/passive disaster recovery.
- A
Use a single Alias A record with simple routing and a short TTL so Route 53 quickly changes the IP address.
Why it fails: A single Alias A record with simple routing always returns the same endpoint regardless of its health; Route 53 does not evaluate health checks for simple routing policies. A short TTL only reduces the DNS cache duration, so clients will eventually retry, but they will keep getting the same IP address until it is manually changed. There is no automatic switch to another region, so this configuration cannot provide failover.
- B
Use Route 53 failover routing with a primary record and a secondary record, each associated with its own health check, so Route 53 answers with the healthy region.
Failover routing is designed for this: Route 53 evaluates health checks and returns the primary record while it is healthy. When the primary health check fails, Route 53 automatically returns the secondary record. Note that clients may still see traffic for a few minutes due to DNS caching, but failover routing is the configuration that enables automatic region switching.
- C
Use weighted routing to send a small percentage of traffic to the secondary region, increasing it manually when the primary fails.
Why it fails: Weighted routing distributes traffic by assigned weights, but it does not consider endpoint health; Route 53 will continue sending requests to the primary even if its health check fails unless you manually modify the weights. Manual adjustment is slow, relies on DNS TTL expirations, and introduces human error, making it unsuitable for automated disaster recovery. Failover routing, by contrast, changes answers automatically when the associated health check fails.
- D
Use latency routing only, letting Route 53 choose the lowest-latency region at query time, without health checks.
Why it fails: Latency routing selects the region that offers the lowest latency for each client, but it makes this choice purely on network performance, not on whether the endpoint is actually healthy. If the primary region is down but still responds to DNS queries with the same IP, latency routing will keep directing users there because no health check is involved. It therefore lacks the deterministic health-check-based failover behavior required for active/passive disaster recovery.