Interview Prep/Networking/VPC & Network Architecture

How many AZs and subnets should a production VPC use, and why?

BeginnerProductionVPC & Network Architecture
Answer

Three AZs where the region has them, so losing one still leaves two thirds of capacity and quorum systems (etcd, Kafka, Consul) keep a majority. Each tier gets one subnet per AZ. Plan N+1 capacity: with 3 AZs, run each at no more than about 65% so two can absorb the third.

Two AZs is acceptable for cost-sensitive workloads but you then need 100% headroom per AZ to survive a failure.

All Networking questions Roadmap: Networking for DevOps

More on VPC & Network Architecture