An enterprise operates a multi-region application across two AWS accounts to support disaster recovery. Account A hosts the primary application infrastructure in the us-east-1 Region, including a public Application Load Balancer (ALB) and an Auto Scaling group of Amazon EC2 instances inside a VPC. Account B hosts the standby infrastructure in the us-west-2 Region with a similar configuration. A Route 53 public hosted zone, managed in a separate shared services account, routes external traffic to the ALBs using failover routing. Internal microservices in the primary VPC query a shared service using an internal domain name registered in a Route 53 Private Hosted Zone (PHZ) internal.corp hosted in Account A. During a disaster recovery simulation, the primary region was degraded due to backend database replication lag and EC2 instance failures, but the public ALB in us-east-1 remained operational. The simulation revealed two issues: 1. The public Route 53 failover record did not route traffic to the standby ALB in us-west-2 because the health check was configured to monitor the ALB's endpoint, which returned a 200 OK status from a static welcome page on the ALB itself. 2. The EC2 instances launched in Account B's VPC in us-west-2 were unable to resolve the internal domain names hosted in Account A's PHZ. Which combination of steps will resolve these issues and ensure a reliable, automated failover process?
- AShare the Route 53 Private Hosted Zone internal.corp from Account A to Account B using AWS Resource Access Manager (RAM). Configure the Route 53 public hosted zone to use latency-based routing, and disable 'Evaluate Target Health' on the alias records to prevent intermittent failovers caused by temporary database replication lag.
- BEstablish a VPC Peering connection between Account A's VPC and Account B's VPC to automatically extend private DNS resolution of internal.corp across the accounts. Configure Route 53 Application Recovery Controller (ARC) routing controls for the public ALBs, but set up the routing controls without Route 53 health checks to prevent automated failover from occurring without manual operator confirmation.
- Create a VPC association authorization in Account A for the Private Hosted Zone internal.corp targeting the VPC in Account B, and then associate the VPC in Account B with the hosted zone. Configure a custom health check endpoint (such as /health) on the ALB target group that validates backend application and database connectivity, and enable 'Evaluate Target Health' on the Route 53 public alias failover records.Cevap
- DAttach a cross-account IAM role to Account B's EC2 instances that grants Route 53 read-only permissions to query the Private Hosted Zone in Account A. Configure the public Route 53 hosted zone to route traffic using a weighted routing policy, and deploy an AWS Lambda function triggered by Amazon CloudWatch alarms to manually swap DNS weights from Account A to Account B when an outage is detected.