A solutions architect is configuring network security for Amazon EC2 instances in a VPC. The instances must receive inbound HTTPS traffic from the internet and be able to send outbound requests to download updates. Which two statements correctly describe the behavior of security groups and network access control lists (network ACLs) for this traffic? (Select TWO.)
- A security group is stateful, which means allowing inbound HTTPS traffic automatically allows the return outbound traffic.Answer
- A network ACL is stateless, which means allowing inbound HTTPS traffic requires an outbound rule to allow return traffic on ephemeral ports.Answer
- CA security group is stateless, so an outbound rule must be configured to allow return traffic for the inbound HTTPS connections.
- DA network ACL is stateful, which means allowing inbound HTTPS traffic automatically allows the return outbound traffic.
- ESecurity groups operate at the subnet level to protect all instances, while network ACLs operate at the individual network interface level.
Answer
Security groups are stateful (allowing inbound traffic automatically allows the return outbound traffic) and network ACLs are stateless (allowing inbound traffic requires an outbound rule to allow return traffic on ephemeral ports).
Security groups are stateful firewalls. When you allow inbound HTTPS traffic, the security group tracks the connection state and automatically permits return traffic outbound. Conversely, network ACLs are stateless and do not track connection states. Therefore, allowing inbound traffic requires an explicit outbound rule to permit return traffic, which typically utilizes ephemeral ports.
Step-by-Step Solution
Key Concept
Stateful security groups vs stateless network ACLs