A financial services firm is deploying a web application on Amazon EC2 instances in a new Virtual Private Cloud (VPC). The network security team wants to configure a firewall control that operates at the instance level. They require that any inbound traffic allowed into the instance is automatically permitted to flow outbound, without needing to create a corresponding outbound rule. Which AWS resource meets these requirements?
- AA network access control list (NACL), because it is stateful and evaluates traffic at the subnet level.
- BAWS physical firewalls, because AWS is responsible for configuring all instance-level traffic rules under the Shared Responsibility Model.
- A security group, because it is stateful and evaluates traffic at the instance level.Answer
- DA security group, because it is stateless and evaluates traffic at the subnet level.
Answer
A security group, because it is stateful and evaluates traffic at the instance level.
The correct answer states that a security group is stateful and operates at the instance level. In AWS, security groups act as virtual firewalls for EC2 instances. Because they are stateful, connection tracking automatically permits response traffic to flow back to the client even if no outbound rules allow it.
Step-by-Step Solution
Key Concept
AWS Security Groups are stateful firewalls that operate at the instance level, whereas Network ACLs are stateless firewalls that operate at the subnet level.