InterviewStack.io LogoInterviewStack.io

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.

HardTechnical
77 practiced

You observe rising p99 latency on your load balancer while backends show stable p95 latency and healthy CPU. Walk through a troubleshooting checklist covering the network, the LB proxies themselves, TLS handshakes, accept/queue backlogs, kernel limits, and client behavior. What instrumentation would you add to pinpoint the root cause?

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.

EasyTechnical
48 practiced

Implement a thread-safe round-robin load balancer class. It must support add_backend(backend_id), remove_backend(backend_id), and get_next_backend(), where get_next_backend() runs in O(1) and is safe for concurrent callers. Explain your locking or atomic strategy and its trade-offs.

EasyTechnical
48 practiced

Explain active versus passive health checks used by load balancers and service discovery. For each, describe typical probe frequency, example probes for HTTP, gRPC, and TCP, and how each affects failover decisions. What's a good strategy for combining them in production to reduce false positives?

EasyTechnical
51 practiced

Compare the common load balancing algorithms: round robin, weighted round robin, least connections, and consistent hashing. For each, explain how it behaves under variable request latencies, long-lived connections such as WebSockets, and heterogeneous backend capacity, and give one production use case and one drawback. When would health checks and session affinity change which algorithm you pick?

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.