An enterprise is deploying an active-passive disaster recovery (DR) architecture for a stateful web application. The primary environment is in us-west-2 with an Application Load Balancer (ALB) and an Amazon Aurora PostgreSQL database. The secondary environment in us-east-1 is a warm standby with a scaled-down Amazon EC2 fleet behind another ALB, and an Aurora read replica. The DR plan requires Route 53 to automatically shift DNS traffic to us-east-1 only if the primary ALB has no healthy EC2 targets, or if the primary application cannot connect to its database (determined by the absence of the string 'DB_OK' on the '/healthz' status page). The database promotion to primary will be handled by a separate automated script. Which Route 53 DNS failover configuration meets these requirements with the shortest recovery time?
- AConfigure a primary Failover CNAME record pointing to the us-west-2 ALB DNS name, associate it with a Route 53 HTTP health check that queries the /healthz endpoint for the DB_OK string, and enable Evaluate Target Health. Configure a secondary Failover CNAME record pointing to the us-east-1 ALB.
- BConfigure Latency Alias records for both regions pointing to their respective ALBs, set Evaluate Target Health to Yes, and associate each record with a Route 53 HTTP health check that queries the respective /healthz endpoint for the DB_OK string.
- Configure a Route 53 HTTP health check that queries the us-west-2 ALB DNS name at /healthz and checks for the string DB_OK. Create a primary Failover Alias record pointing to the us-west-2 ALB, set Evaluate Target Health to Yes, and associate it with the Route 53 health check. Create a secondary Failover Alias record pointing to the us-east-1 ALB with Evaluate Target Health set to Yes.Answer
- DConfigure a primary Failover Alias record pointing to the us-west-2 ALB with Evaluate Target Health set to No. Associate it with a Route 53 health check that monitors database replication lag, and configure Route 53 to automatically promote the us-east-1 Aurora read replica to primary when failover occurs.