A company hosts a web application on Amazon EC2 instances located in a private subnet. The instances are registered in a target group for an Application Load Balancer (ALB) that is deployed in the public subnets of the same VPC. The target group is configured for HTTP health checks on port 8080.
A SysOps administrator observes that all EC2 instances in the target group are marked as unhealthy. The administrator confirms that the web application is actively listening on TCP port 8080 on the EC2 instances. The security group for the EC2 instances allows inbound TCP traffic on port 8080 from the ALB security group.
The custom Network Access Control List (NACL) for the private subnet has an inbound rule allowing TCP traffic on port 8080 from the public subnets. However, the outbound rules for the private subnet's NACL only allow TCP traffic on ports 80 and 443 to the public subnets.
Which modification should the administrator make to resolve the failing health checks?
- Add an outbound rule to the private subnet's Network ACL that allows TCP traffic on ephemeral ports (-) to the public subnets.Answer
- BAdd an outbound rule to the private subnet's Network ACL that allows TCP traffic on port 8080 to the public subnets.
- CChange the target group's health check configuration port to port 80 so that it matches the outbound NACL rule.
- DCreate an active-passive Route 53 failover routing policy that routes health check traffic directly to the EC2 instances.