Which AWS Tool Acts as a Firewall for a VPC Subnet?
Which AWS service or tool can be used to set up a firewall to control traffic going into and coming out of an Amazon VPC subnet?
Community Insight
The question tests scope mapping (subnet vs. instance vs. web application) against centrally managed policy tools, and the trap is treating the phrase "service or tool" as a hint for AWS Firewall Manager.
Network ACLs are the stateless, subnet-level firewall layer in Amazon VPC that evaluates numbered allow and deny rules for traffic entering and leaving a subnet. This page establishes why a network ACL — not a security group, AWS WAF, or AWS Firewall Manager — is the correct answer here.
Picking AWS Firewall Manager because the stem says "service or tool," or picking security groups, which enforce stateful allow-only rules at the ENI/instance level rather than at the subnet boundary.
Community Discussion (61 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
A network ACL is exactly what AWS documents as the optional security layer that "acts as a firewall for controlling traffic in and out of one or more subnets." It attaches to a subnet, evaluates numbered rules in order, supports both allow and deny statements, and is stateless — which is why return traffic must be explicitly permitted by the outbound and inbound rule sets. The stem's wording, "traffic going into and coming out of an Amazon VPC subnet," is the textbook definition of a network ACL's job, so D is the direct scope match. No other option in the list operates at the subnet boundary with allow/deny evaluation.Why the Other Options Are Wrong
A security group is a virtual firewall for an instance or elastic network interface, is stateful, and only supports allow rules, so it cannot filter an entire subnet. AWS WAF is a Layer 7 web application firewall that inspects HTTP(S) requests in front of CloudFront, Application Load Balancer, API Gateway, or AppSync — it does not govern arbitrary VPC subnet traffic. AWS Firewall Manager is a central administration service that deploys and maintains AWS WAF, Shield Advanced, security group, and Network Firewall policies across accounts in AWS Organizations; it manages firewall configuration, it is not the subnet-level filter being described. The phrase "service or tool" is generic exam boilerplate and does not convert a management console into the enforcement point.Community Comment Notes
pietro167's shorthand — "ACL = subnet, Security Groups = instances" — captures the scope distinction that most voters used to reach D. Penny357 and Travisnica instead read "service or tool" as pointing to Firewall Manager, with Travisnica writing that "to set up the firewall you will use AWS Firewall Manager"; that reasoning conflates a multi-account policy manager with the filter that actually guards the subnet. BShelat backed that dissent by noting a NACL is "a list of rules" rather than a management tool, while Val2344 and nocinfra returned to AWS's own framing of network ACLs as a subnet firewall and linked the VPC security comparison documentation. The discussion is a useful reminder that CLF-C02 often tests scope words rather than product marketing language.Official Reference
Exam Strategy
When a stem names a scope — subnet, instance, or web application — map that scope to the service before you read the options, then eliminate anything whose enforcement point is elsewhere. Treat phrases like "service or tool" as filler rather than as a clue pointing to a management service such as Firewall Manager.
Frequently Asked Questions
Why isn't AWS Firewall Manager the answer if it sets up firewall rules?
Firewall Manager centrally administers WAF, Shield Advanced, security group, and Network Firewall policies across accounts in AWS Organizations; it does not itself enforce subnet-level allow/deny rules the way a network ACL does.
Can a security group control traffic for an entire VPC subnet?
No. Security groups attach to ENIs and instances and are stateful with allow-only rules; subnet-wide filtering with explicit deny rules requires a network ACL associated with that subnet.
Related Analysis
Practice All CLF-C02 Questions
Access 120 questions with complete answers and detailed explanations.
View Full CLF-C02 Practice Test →