A systems administrator is troubleshooting a connectivity issue for a web application deployed on Amazon EC2 instances within a custom VPC subnet. The instances are associated with a stateful Security Group that allows inbound HTTP (port 80) traffic from any source, and allows all outbound traffic. At the subnet level, the custom Network Access Control List (Network ACL) is configured with an inbound rule allowing HTTP (port 80) traffic from any source, but its outbound rule set only contains the default deny rule. Users report that they receive connection timeouts when trying to access the web application. Which of the following explains why the connection attempts are timing out?
- AThe Security Group is stateless, meaning the outbound rule allowing all traffic only applies to new connections initiated by the instance, not return traffic.
- BUnder the AWS Shared Responsibility Model, AWS automatically manages all subnet-level outbound security filtering, requiring the customer to only configure instance-level Security Groups.
- The Network ACL is stateless, which means it does not automatically allow return traffic; an outbound rule must be added to allow traffic to the clients' ephemeral ports.Answer
- DAmazon GuardDuty automatically blocks outbound HTTP traffic at the subnet level until Amazon Inspector performs a vulnerability scan on the EC2 instances.
Answer
The Network ACL is stateless, which means it does not automatically allow return traffic; an outbound rule must be added to allow traffic to the clients' ephemeral ports.
The correct answer is correct because Network Access Control Lists (Network ACLs) are stateless. Even though the inbound HTTP traffic is allowed and the instance's Security Group is stateful (allowing return traffic automatically at the instance level), the stateless Network ACL blocks the return traffic because it does not track connection states. Therefore, an outbound rule must be explicitly added to the Network ACL to allow the web server's responses to reach the clients' ephemeral ports (typically 1024-65535).
Step-by-Step Solution
Key Concept
Stateful vs. Stateless network security controls in AWS VPC
Estimated Time:2m 0s