A VPC is your private network in AWS, split into subnets across Availability Zones.
Each subnet lives in exactly one AZ and gets a CIDR block carved from the VPC's CIDR.
AWS reserves 5 IP addresses in every subnet: network address, VPC router, DNS, future use, and broadcast address - so a /28 only gives you 11 usable IPs.
A subnet is 'public' only if it has a route to an Internet Gateway (IGW) in its route table AND instances have public IPs.
Private subnets route outbound traffic via a NAT Gateway (in a public subnet) - NAT Gateways are AZ-scoped, so put one per AZ for high availability.
VPC Peering links two VPCs 1:1 but is NOT transitive - A peered to B and B peered to C does not let A talk to C.
Transit Gateway solves that: a hub-and-spoke that connects many VPCs and on-prem networks, and does support transitive routing.
Site-to-Site VPN goes over the public internet (encrypted); Direct Connect is a dedicated private line - faster, more consistent, but takes weeks to provision.
VPC Endpoints let you reach AWS services privately without going over the internet: Gateway endpoints are free and cover only S3 and DynamoDB; Interface endpoints (powered by PrivateLink) cost money and cover most other services.
Security Groups are stateful (return traffic auto-allowed) and only support ALLOW rules - they act at the instance/ENI level.
NACLs are stateless (you must allow both inbound and outbound explicitly) and act at the subnet level, supporting both ALLOW and DENY rules - useful for blocking a specific malicious IP.
NACL rules are evaluated in order by rule number, lowest first, and the first match wins.
Supports routing policies: Simple, Weighted (percentage split), Latency-based, Failover, Geolocation, Geoproximity, and Multivalue answer.
Health checks combined with Failover routing give automatic DR failover to a standby endpoint.
Alias records are Route 53's free, AWS-only extension of CNAME - they can point at the zone apex (naked domain) and target ELBs, CloudFront, or S3 website endpoints for free.
CloudFront is AWS's CDN: caches content at edge locations close to users, cutting latency and load on the origin.
Origins can be S3 (use Origin Access Control, OAC, to keep the bucket private and force traffic through CloudFront only), an ALB, or any custom HTTP origin.
Signed URLs/Cookies restrict access to private content; Field-Level Encryption adds extra protection for sensitive fields like card numbers, encrypted end-to-end.
Use Cache Behaviors to route different path patterns to different origins or TTL settings within one distribution.
Confusing NACL (stateless, subnet) with Security Group (stateful, instance).
Forgetting NAT Gateways are per-AZ, not automatically HA across AZs.
Assuming VPC Peering is transitive - it is not, use Transit Gateway.
Using Gateway endpoints when the service isn't S3 or DynamoDB - need Interface endpoints instead.