A financial services firm hosts a reporting database on Amazon EC2 instances in a private subnet. A cloud practitioner needs to configure network security controls to protect the database. They must implement both a security group and a network access control list (network ACL). Which of the following statements correctly describe the behavior of these security controls? (Select TWO.)
- The security group automatically allows outbound response traffic if the inbound request is allowed on port , because security groups are stateful.Answer
- The network ACL requires an outbound rule to allow response traffic even if the inbound request on port is allowed, because network ACLs are stateless.Answer
- CThe security group operates at the subnet boundary to protect all resources, whereas the network ACL operates at the individual instance network interface layer.
- DThe network ACL automatically allows outbound response traffic once the inbound traffic is allowed on port , because network ACLs are stateful by default.
- EThe configuration of security group and network ACL rules is the sole responsibility of AWS under the infrastructure security portion of the AWS Shared Responsibility Model.
Answer
The correct answers are the statements describing that security groups automatically allow return traffic because they are stateful, and that network ACLs require an outbound rule to allow return traffic because they are stateless.
Security groups are stateful, which means they automatically allow return traffic for any established connection. Network ACLs are stateless, meaning they evaluate traffic going in and out of the subnet independently. Therefore, to support a database connection, a network ACL requires explicit rules for both inbound database request traffic and outbound return traffic, whereas a security group only requires an inbound rule.
Step-by-Step Solution
Key Concept
Stateful vs. Stateless Network Security Controls (Security Groups and Network ACLs)
Estimated Time:1m 30s