Two services in different AZs talk constantly and the cross-AZ data transfer charge is rising. What do you do?
IntermediateScenarioVPC and Networking
Answer
Situation read → Cross-AZ traffic costs about a cent per GB each direction, which adds up for chatty tiers.
What I'd do →
- Identify with Cost Explorer usage type
DataTransfer-Regional-Bytesand flow logs - Prefer zone-aware routing: Kubernetes topology-aware routing or ALB zonal affinity
- Keep caches and replicas per AZ
- Accept cross-AZ for HA-critical paths such as DB replication
- Re-measure after the change
Why → Resilience needs multi-AZ, but balancing locality and failover captures savings.
Interview tip → Don't suggest single-AZ for production just to save money.
More on VPC and Networking
What is a VPC and what are the CIDR constraints?BeginnerWhat makes a subnet public or private?BeginnerHow do route tables work, including the local route and longest-prefix match?IntermediateInternet Gateway vs NAT Gateway: what does each do?BeginnerNAT Gateway vs NAT instance?IntermediateSecurity group vs network ACL: compare them.Beginner