A technology company hosts a containerized catalog API on Amazon EC2 instances within a private subnet. The instances are managed by an Auto Scaling group and are registered with an Application Load Balancer (ALB) that resides in a public subnet. The API service runs on port 8080. The target group is configured to perform health checks on port 8080. The security group of the EC2 instances is configured to allow inbound traffic on port 8080 from the ALB's security group. To meet security requirements, a network administrator applied a custom Network ACL to the private subnet, adding an inbound rule that allows traffic on port 8080 from the ALB's subnet. However, the health checks are now failing, and the ALB reports all EC2 instances as unhealthy. Which action should the solutions architect take to resolve the health check failure?
- Add an outbound rule to the private subnet's Network ACL to allow traffic to the ephemeral ports of the Application Load Balancer's subnet.Cevap
- BAdd an outbound rule to the EC2 instances' Security Group to allow return traffic on ephemeral ports, because Security Groups are stateless and require explicit return rules.
- CModify the target group health check configuration to use the default HTTP port 80 instead of port 8080, as Elastic Load Balancing health checks must query port 80 to bypass subnet-level restrictions.
- DConfigure an Amazon Route 53 latency routing policy to route traffic directly to the private IP addresses of the EC2 instances to bypass the subnet's Network ACL.