Load Balancing and Traffic Management Questions

Distributing requests across capacity: load-balancing algorithms (round-robin, least-connections, consistent hashing), L4 versus L7 balancing, health checks, and traffic shaping. Covers sticky sessions, canary and blue-green routing, rate limiting, and graceful draining. The traffic-distribution layer that keeps a scaled system balanced and available.

MediumTechnical
44 practiced

You need to roll out an update to a service behind an L7 load balancer that still uses sticky sessions. Compare blue-green, canary, and rolling-update approaches: for each, explain how you would drain connections, how you would migrate or preserve session state, and how you would validate success before committing.

MediumTechnical
48 practiced

Describe how you would coordinate load balancer connection draining with autoscaling group scale-in so instances finish in-flight work before termination. Cover cooldowns, warm-up periods, and how the load balancer's health-check readiness state should gate when a new instance starts receiving traffic.

EasyTechnical
43 practiced

Explain consistent hashing in the context of traffic distribution and distributed caches. Describe the hash ring, why virtual nodes are used, and how it minimizes remapping compared to plain modulo hashing when a node is added or removed. Walk through a small example.

EasyTechnical
39 practiced

Why are load balancers used in distributed systems? Describe at least four distinct problems they solve, and how they contribute to horizontal scaling, availability, and fault isolation. Where would you typically place load balancers in a three-tier architecture (edge, internal service, service-to-service)?

HardSystem Design
48 practiced

Design a Layer 4 load balancing architecture that supports hundreds of millions of concurrent connections with minimal disruption on failure. Cover state-distribution approaches (stateful proxies with replication, stateless consistent hashing, flow-director hardware), session affinity, and how connections rehome after an instance fails. Work through a rough capacity model: given per-instance connection and bandwidth limits and a target RPS, how many load balancer instances would you provision, and how much headroom would you reserve for autoscaling lag?

Unlock Full Question Bank

Get access to all Load Balancing and Traffic Management interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.