Both are firewalls in your VPC, and the architect exam loves making you pick. The trick is two things: what level each works at, and whether it’s stateful.
The two differences that matter
A security group wraps an instance and is stateful — allow traffic out and the reply is automatically allowed back. A network ACL wraps a subnet and is stateless — you allow both directions yourself. Security groups only allow; NACLs can also explicitly deny.
Test yourself
You need to block one specific malicious IP address from reaching an entire subnet. Which tool?
- A security group deny rule
- A network ACL deny rule
- An IAM policy
- A route table entry
👉 Click to reveal the answer & explanation
Correct answer: B. Network ACLs support explicit deny rules and operate at the subnet level. Security groups (A) only allow (no deny) and work per instance; IAM (C) governs API permissions, not network traffic; route tables (D) direct traffic, they don’t block IPs.
Related topics
Amazon VPC · AWS IAM · Elastic Load Balancing
Build confidence for AWS Solutions Architect Associate
Move beyond memorizing facts. Practice with original, scenario-based questions and clear explanations that help you understand why each answer is right or wrong.
Original practice questions. No dumps. No shortcuts.