Interview Prep/AWS/VPC and Networking

Security group vs network ACL: compare them.

BeginnerConceptVPC and Networking
Answer
Security group Network ACL
Level ENI / instance Subnet
State Stateful Stateless
Rules Allow only Allow and Deny, numbered
Evaluation All rules together Lowest number first
Default Deny in, allow out Default NACL allows all

Security groups are the primary control; NACLs are a coarse backstop, for example to block a bad CIDR subnet-wide.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking