Interview Prep/AWS/VPC and Network Design

How do you size VPC CIDRs to avoid painting yourself into a corner?

IntermediateProductionVPC and Network Design
Answer

Allocate from IPAM, never overlap with on-prem or other VPCs, and leave room. A /16 per production VPC is common; a /20 or /21 per app subnet per AZ for container workloads. Keep public and data subnets smaller (/24 to /22). If you outgrow, add a secondary CIDR (up to 5 by default) and new subnets, and for EKS pod IPs use a non-routable secondary range like 100.64.0.0/16 with CNI custom networking.

aws All AWS questions Roadmap: AWS core services

More on VPC and Network Design