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.
More on VPC & Network Architecture
How would you design a production VPC for a three-tier web application?IntermediateWhat makes a subnet public versus private?BeginnerHow do you avoid NAT gateway single points of failure and cross-AZ charges?IntermediateWhen should you use VPC endpoints?IntermediateHow do you design connectivity for 50+ VPCs across accounts and regions?AdvancedWhat is PrivateLink and when is it better than peering?Advanced