Skill 1.2.1

Designing VPC architectures with security components (for example, security groups, route tables, network ACLs, NAT gateways)

Key Concepts

Route tables decide where traffic goes. A subnet is public when its route table sends 0.0.0.0/0 to an internet gateway; private subnets route internet-bound traffic to a NAT gateway (outbound only) or have no internet route at all. NAT gateways are managed, scale automatically and live in one AZ.

Security groups are stateful firewalls on network interfaces with allow rules only; return traffic is automatically allowed. Reference security groups instead of IP ranges to build tiers (web SG allows 443 from the ALB SG; DB SG allows 3306 from the app SG). Network ACLs are stateless, subnet-wide, support allow and deny rules evaluated lowest number first, and need explicit rules for return traffic on ephemeral ports (1024-65535).

Other components: VPC endpoints to reach AWS services privately, VPC Flow Logs for traffic visibility, AWS Network Firewall for stateful inspection and domain filtering, and Systems Manager Session Manager or EC2 Instance Connect Endpoint to administer private instances without bastion hosts or open SSH ports.