A company hosts a high-traffic web application on Amazon EC2 instances inside a private subnet. The instances are managed by an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). After the security team updated the network access control list (Network ACL) of the private subnet to restrict inbound traffic to only port 80, the ALB target group health checks began failing, marking all EC2 instances as unhealthy and resulting in HTTP 502 Bad Gateway errors. The security groups associated with the EC2 instances allow all inbound traffic from the ALB. Which configuration change will resolve this issue and restore application availability?
- Add an outbound rule to the private subnet Network ACL allowing TCP traffic to the ALB subnet on ephemeral ports .Cevap
- BAdd an outbound rule to the security group associated with the EC2 instances allowing TCP traffic to the ALB on ephemeral ports .
- CUpdate the target group health check configuration port from port 80 to use a dynamic ephemeral port in the range .
- DConfigure a Route 53 Latency routing policy to route client requests directly to the EC2 instances' private IP addresses, bypassing the ALB.
Cevap
Add an outbound rule to the private subnet Network ACL allowing TCP traffic to the ALB subnet on ephemeral ports .
The correct option is correct because Network ACLs are stateless, meaning that outbound return traffic must be explicitly allowed. When the ALB sends a health check request to the EC2 instances on port 80, the return traffic from the instances back to the ALB is sent on an ephemeral port (). Because the Network ACL only has an inbound rule for port 80 and no outbound rule for ephemeral ports, the return traffic is blocked, causing the health checks to fail. Adding an outbound rule for the ephemeral ports resolves the issue.
Adım Adım Çözüm
Anahtar Kavram
Stateless Network ACLs require explicit configuration of outbound return traffic paths, which utilize ephemeral ports.
Tahmini Süre:2m 0s