Interview Prep/Networking/Load Balancing, Proxies & CDN

A cross-zone load balancing question: what changes when you enable it on an NLB?

IntermediateScenarioLoad Balancing, Proxies & CDN
Answer

Situation read → Without cross-zone each LB node only sends traffic to targets in its own AZ.

What I'd do →

  1. Without it an AZ with fewer targets gets the same share of traffic as one with many, causing hot spots
  2. Enable: aws elbv2 modify-load-balancer-attributes --attributes Key=load_balancing.cross_zone.enabled,Value=true
  3. ALB has it on by default, NLB and GWLB off by default
  4. Remember cross-AZ data transfer charges apply on NLB when enabled

Why → Cross-zone evens load but adds inter-AZ cost and a shared failure surface.

Interview tip → Mention that you keep target counts balanced across AZs when it's off.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & CDN