Interview Prep/AWS/VPC and Networking

You are asked to design a VPC for a three-tier web app. What does the layout look like?

BeginnerScenarioVPC and Networking
Answer

Situation read → Public only for what must face the internet; everything else private across at least two AZs.

What I'd do →

  1. Pick a /16 such as 10.20.0.0/16 and carve /20 or /24 subnets per tier per AZ
  2. Public subnets hold ALB and NAT gateways, private app subnets hold compute, isolated data subnets hold RDS with no internet route
  3. Route tables: public to IGW, private to NAT, data with local only
  4. Security groups chained: ALB to app to DB by SG reference

Why → Tier isolation and SG referencing limit lateral movement and keep rules readable.

Interview tip → Leave spare CIDR space; resizing a VPC later hurts.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking