An organization hosts a multi-tier web application where Amazon EC2 instances in a private subnet receive traffic from a public-facing Application Load Balancer (ALB). The security team configures the EC2 instances' Security Group to allow inbound HTTP traffic on port 80 only from the ALB's Security Group, and allowed all outbound traffic. At the subnet level, the Network ACL (NACL) is modified to allow inbound HTTP traffic on port 80 from the ALB's private IP range, and allow outbound HTTP traffic on port 80 to the ALB's private IP range, with all other traffic blocked by default rules. Users report receiving 502 Bad Gateway errors from the ALB. Which configuration change is required to resolve this issue and allow successful traffic flow?
- Modify the subnet's outbound Network ACL rules to allow traffic to the ALB's private IP range on ephemeral ports (1024-65535).Cevap
- BAdd an outbound rule to the EC2 instances' Security Group to explicitly allow return traffic to the ALB's IP range on ephemeral ports.
- CSubmit a request to AWS Support to configure the Network ACL to operate statefully, as subnet-level configurations are managed by AWS.
- DUse Amazon Inspector to analyze the EC2 network interfaces and automatically resolve the routing failure.