Interview Prep/AWS/VPC and Network Design

How do you avoid cross-AZ data transfer charges in a chatty architecture?

AdvancedProductionVPC and Network Design
Answer

Cross-AZ traffic is charged in both directions. Mitigations: keep NAT per AZ; enable topology-aware routing in Kubernetes (service.kubernetes.io/topology-mode: Auto) or traffic distribution PreferClose; consider disabling cross-zone load balancing on NLBs when targets are balanced per AZ; read from replicas in the same AZ; and colocate tightly coupled services. Do not sacrifice multi-AZ resilience for it; measure with Cost Explorer usage type DataTransfer-Regional-Bytes first.

aws All AWS questions Roadmap: AWS core services

More on VPC and Network Design