29 November 2026
Security groups vs NACLs (network ACLs) in AWS: the full comparison, real rules and exam traps
Security groups are stateful, allow-only and sit on each resource; network ACLs are stateless, allow and deny, and guard a whole subnet. The full comparison table, ephemeral ports, what the defaults allow, rules for a three-tier app, AWS CLI commands, quotas and the Cloud Practitioner exam traps.