Network ACLs (NACLs)
Allows or denies inbound and outbound traffic at the subnet level, statelessly.
Official AWS Reference https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html ↗// DECISION LOGIC MATRIX
When to Choose
You must explicitly deny an IP or CIDR for a whole subnet.
When to Avoid
You want return traffic allowed automatically. Use a security group.
// EXAM TRAPS & SIGNAL KEYWORDS
// OFFICIAL AWS REFERENCE
"A network ACL allows or denies specific inbound or outbound traffic at the subnet level."
- Rules are numbered 1 to 32766 and evaluated lowest first. The first match applies and evaluation stops.
- NACLs are stateless. Responses need matching outbound ephemeral-port rules.
- Every subnet maps to exactly one NACL, defaulting to the VPC default NACL. No charge.
// NETWORK ACLS (NACLS) TAKEAWAYS
Role: Allows or denies inbound and outbound traffic at the subnet level, statelessly.
Choose: You must explicitly deny an IP or CIDR for a whole subnet.
Avoid: You want return traffic allowed automatically. Use a security group.
Trap: Watch for exam signals like stateful, instance-level, automatic return traffic.
Fact: Rules are numbered 1 to 32766 and evaluated lowest first. The first match applies and evaluation stops.
Fact: NACLs are stateless. Responses need matching outbound ephemeral-port rules.
Fact: Every subnet maps to exactly one NACL, defaulting to the VPC default NACL. No charge.