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.

HardSystem Design
46 practiced

Design a global per-user rate limiter that enforces limits across multiple datacenters and load balancers with low latency. Compare a centralized token-bucket store, distributed counters, and probabilistic sketches for correctness under network partitions, and explain how you would shard user keys and gracefully degrade if the rate-limiting store becomes unavailable.

MediumTechnical
37 practiced

Implement a consistent hashing utility that supports add_node(node_id), remove_node(node_id), and get_node_for_key(key), using virtual nodes to improve distribution across the ring. Explain the data structures you used for ring lookup and their time complexity.

MediumTechnical
51 practiced

A backend instance recovers after being marked unhealthy, and a flood of clients reconnect immediately and overwhelm it (thundering herd). What mitigations would you apply at the load balancer and application level to prevent this?

EasyTechnical
37 practiced

Describe DNS-based load balancing strategies: round-robin DNS, weighted DNS, and GeoDNS. What are their pros and cons for global traffic distribution, and how do DNS TTL and resolver caching affect failover speed and consistency? How would you design TTLs for fast failover without overloading your authoritative nameservers?

EasyTechnical
46 practiced

Explain the technical differences between Layer 4 (transport) and Layer 7 (application) load balancing. For each, describe what packet or request metadata the balancer can inspect, its typical capabilities (for example TCP passthrough versus header-based routing), and the performance and latency implications. Give an example use case where you would pick one over the other.

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.