Interview Prep/Networking/NAT, Firewalls & VPN

What is a security group and how does it differ from a network ACL?

BeginnerConceptNAT, Firewalls & VPN
Answer

A security group is a stateful, allow-only firewall attached to an ENI (instance level). A NACL is a stateless firewall on a subnet with numbered allow and deny rules evaluated in order, first match wins.

Security groups can reference other security groups as sources, which is the main tool for tiered architectures. NACLs are best kept as coarse guardrails, for example to deny a known bad CIDR.

All Networking questions Roadmap: Networking for DevOps

More on NAT, Firewalls & VPN