Interview Prep/Networking/Performance, MTU, Latency & Tools

Why does cross-AZ traffic matter for cost and latency?

IntermediateScenarioPerformance, MTU, Latency & Tools
Answer

Situation read → AZs are separate data centers in a region with small latency and per-GB charges.

What I'd do →

  1. Latency within an AZ is typically under 1 ms, cross-AZ about 1 to 2 ms
  2. AWS charges for data transferred between AZs in both directions
  3. Keep chatty paths (app to cache) in the same AZ with topology-aware routing
  4. In Kubernetes use topology.kubernetes.io/zone and topology aware routing on Services
  5. Check cost with Cost Explorer filtered to DataTransfer-Regional-Bytes

Why → Spreading for availability is right, but chatty cross-AZ calls cost money and latency.

Interview tip → Say you balance availability against locality deliberately.

All Networking questions Roadmap: Networking for DevOps

More on Performance, MTU, Latency & Tools