What is the difference between a security group and a NACL?

AdvancedConceptNetworking
Answer

A security group is stateful, attached to an ENI or instance, and has allow rules only. A NACL is stateless, applies at the subnet level, has allow and deny rules evaluated in number order, and needs return traffic (ephemeral ports) allowed explicitly.

All Real-World Interview questions Roadmap: Interview readiness

More on Networking