A retail company hosts its core ordering application on Amazon EC2 instances in an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The application runs on a custom port 8085. The ALB listener is configured to accept HTTPS traffic on port 443 and forward it to a target group containing the EC2 instances on port 8085. To meet strict security requirements, the EC2 security group is restricted to allow inbound TCP traffic on port 8085 only from the ALB security group. However, after a new deployment, the target group health checks fail, and the ASG repeatedly terminates and replaces the instances.
Which action should the Solutions Architect take to resolve the issue and ensure the instances pass health checks while maintaining the current security posture?
- Update the target group health check configuration to use the traffic-port (port 8085) for health checks.Answer
- BModify the target group health check to query HTTP port 80, and add an inbound rule to the EC2 instances' security group allowing TCP port 80 from the ALB security group.
- CAdd a stateless inbound rule to the subnet's network ACL (NACL) allowing TCP port 80 traffic from the ALB subnets to pass health check packets.
- DCreate an Amazon Route 53 latency routing policy pointing to the individual EC2 instances, and associate a Route 53 HTTP health check to manage instance routing directly.