A company hosts its core transactional platform on Amazon EC2 instances behind an Application Load Balancer (ALB) in us-east-1 as the primary region. The company maintains a fully functional but scaled-down warm standby environment behind an ALB in us-west-2 as the secondary region. The database layer is replicated across both regions. A solutions architect must design a DNS routing strategy using Amazon Route 53 to automatically redirect user traffic from the primary region to the secondary region if the primary region's ALB or backend instances fail. Which configuration should the solutions architect implement to meet these requirements?
- Create Route 53 Failover Alias records for the application's domain. Point the primary record to the us-east-1 ALB and the secondary record to the us-west-2 ALB, with 'Evaluate Target Health' set to Yes for both records.Answer
- BCreate Route 53 Latency routing records pointing to the primary and secondary ALBs, relying on Route 53 to naturally steer traffic to the secondary region when the primary region's latency increases during an outage.
- CCreate Route 53 Failover records where the primary record points to the us-east-1 ALB, and the secondary record points directly to the Amazon RDS Read Replica endpoint in us-west-2 to automatically promote it and accept write traffic.
- DCreate Route 53 Failover records where the secondary record points to a shut-down pilot light EC2 environment, relying on the Route 53 health check failure to automatically start the EC2 instances in us-west-2 without administrative intervention.
Answer
Create Route 53 Failover Alias records for the application's domain. Point the primary record to the us-east-1 ALB and the secondary record to the us-west-2 ALB, with 'Evaluate Target Health' set to Yes for both records.
The correct configuration is to create Route 53 Failover Alias records pointing to the primary and secondary Application Load Balancers (ALBs) and to enable 'Evaluate Target Health'. Route 53 Failover routing is designed specifically for active-passive disaster recovery setups. By using Alias records and enabling 'Evaluate Target Health', Route 53 utilizes the health check configuration of the ALBs. If the primary ALB or all backend EC2 instances registered to it fail their health checks, Route 53 automatically detects this and redirects traffic to the secondary ALB in the warm standby region.
Step-by-Step Solution
Key Concept
Route 53 Routing Policies and DNS Failover Strategies