An enterprise runs a critical API workload on Amazon EC2 instances managed by an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The ALB is configured with an HTTPS listener forwarding traffic to a target group on port . The application on the EC2 instances processes user traffic on port . However, the application's internal health status is exposed only via a lightweight management server running on port on the same instances. Currently, the EC2 security group allows inbound TCP traffic on port from the ALB security group. The target group health check is set to its default configuration, and the instances are consistently marked as unhealthy by the ALB, causing the ASG to terminate and relaunch them. Which configuration change should a solutions architect implement to resolve the health check failures while maintaining the principle of least privilege?
- Modify the target group health check configuration to override the port to 8080, and add a rule to the EC2 security group allowing inbound TCP traffic on port 8080 from the ALB security group.Answer
- BUpdate the target group health check path to point to http://localhost:8080/health while keeping the health check port set to the default traffic-port setting.
- CUpdate the target group health check port to 8080, and modify the subnet Network ACL (NACL) to allow inbound TCP traffic on port 8080 from the ALB subnets.
- DChange the Route 53 DNS record to use a Latency routing policy targeting the individual public IP addresses of the EC2 instances, bypassing the ALB.