A company is deploying a secure internal microservice on a fleet of Amazon EC2 instances managed by an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The microservice is configured to listen on port . The target group is configured to route HTTPS traffic to port with the health check port set to 'traffic-port'. The EC2 instances are launched in private subnets, while the ALB resides in public subnets. The private subnets are associated with a custom Network ACL (NACL) that permits inbound traffic on port from the public subnets and outbound traffic on port to the public subnets. The EC2 security group allows inbound traffic on port from the ALB security group, and has the default outbound rule allowing all traffic. However, the ALB marks all EC2 instances as unhealthy, and clients receive HTTP Bad Gateway errors. Which of the following actions should the solutions architect take to resolve the health check issue and restore normal operation?
- AModify the security group associated with the EC2 instances to allow outbound traffic to the ALB security group on port , as security groups are stateless and require explicit rules for return traffic.
- BModify the target group's health check configuration to query port instead of the default 'traffic-port', because Application Load Balancer health checks require standard TLS ports.
- Update the custom Network ACL rules on the private subnets to allow outbound traffic on ephemeral ports (-) to the public subnets.Answer
- DConfigure an Amazon Route latency routing policy pointing directly to the private IP addresses of the EC2 instances, bypassing the Application Load Balancer to ensure high availability.