Exam Room · Advanced Security Specialist

Flash Card: Security Groups and NACLs

October 13, 2027 · 2 min read

Cloud Security · part of The Exam Room

Flash card

Security groups versus network ACLs: instance-level stateful filtering against subnet-level stateless filtering.

  1. Security groups are stateful: allow a request in and the response goes out regardless of outbound rules. NACLs are stateless, so return traffic needs its own rule, typically on the ephemeral port range.
  2. Security groups attach to elastic network interfaces; NACLs attach to subnets and apply to everything in them.
  3. Security groups have allow rules only. NACLs have both allow and deny, which is what makes them able to block a specific address.
  4. NACL rules are evaluated in number order and the first match wins. Security group rules have no order; all are evaluated and any match permits.
  5. A security group can reference another security group as its source, which is how tiers are expressed without hardcoding addresses.

Pick it when

Pick a NACL when the requirement is to deny specific traffic, such as blocking one address range, because a security group cannot express a deny. Pick a security group for everything else, especially rules describing which tier may reach which.

It's the wrong answer when

A NACL is the wrong answer for per-instance rules, since it applies to the whole subnet. A security group is the wrong answer for blocking a known-bad address, and its statefulness makes a common distractor: any option adding an outbound rule so responses can return is describing a problem security groups do not have.

These posts are LLM-aided. Backbone, original writing, and structure by Craig. Research and editing by Craig + LLM. Proof-reading by Craig.