A company runs a high-availability customer portal on Amazon EC2 instances managed by an Auto Scaling Group (ASG) behind an Application Load Balancer (ALB). The ALB target group is configured with ELB health checks targeting a deep health check endpoint (`/healthcheck`) that queries the backend Amazon RDS database. During a scheduled database maintenance window, the database becomes temporarily unresponsive. Consequently, all EC2 instances fail the target group health check. Since the ASG health check type is set to ELB, it begins terminating and recreating all instances in a continuous loop, causing prolonged downtime and high operational costs. Which architectural modification should a Solutions Architect implement to prevent this loop of instance terminations during database outages?
- AChange the target group health check port to port 80 while keeping the application listening on its custom port, to isolate the health checks from the application port.
- BUpdate the subnet Network ACLs to stateless inbound rules that allow database traffic, omitting the corresponding outbound rules under the assumption that Network ACLs are stateful.
- Configure the ALB health check to query a shallow endpoint that only verifies the web server status, and handle database connectivity issues gracefully within the application code.Answer
- DConfigure an Amazon Route 53 Latency routing policy to automatically route client requests to a backup static page, without configuring Route 53 health checks.