Open cardosec

Case ABF57C · Cloud · L1 Foundations

Security Groups vs Network ACLs

Practise as: Explain it · InterviewLevel: L1 Foundations

Interview questionWhat is the difference between a security group and a network ACL in AWS?

  1. 01 What is it?
  2. 02 How is it abused?
  3. 03 How do you stop it?
What a strong answer covers

Try it out loud first. Then check yourself:

  1. Security groups attach to network interfaces (instances) and are stateful: allow a request in and the reply is allowed out.
  2. Security groups only have allow rules; anything not allowed is denied.
  3. Network ACLs cover a whole subnet, are stateless (replies need their own rule), have allow and deny, and run in order.
  4. Use security groups as the main control, referencing other groups instead of IP ranges; use NACLs as a coarse extra layer.

If the interviewer pushes back

  • Why is a security group that allows SSH from 0.0.0.0/0 still common, and what is the better way to reach the instance?

Go deeper

More Cloud cards

All Cloud cards →

cardosec draws a security topic and gives you a clock: explain it out loud with no notes, then see what you covered and what you missed. Free during early access.

Reviewed 2026-10-09