Interview Prep/AWS/VPC and Networking

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 →

  1. Identify with Cost Explorer usage type DataTransfer-Regional-Bytes and flow logs
  2. Prefer zone-aware routing: Kubernetes topology-aware routing or ALB zonal affinity
  3. Keep caches and replicas per AZ
  4. Accept cross-AZ for HA-critical paths such as DB replication
  5. 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.

aws All AWS questions Roadmap: AWS core services

More on VPC and Networking