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.

EasyTechnical
40 practiced

When designing a load balancer's health checks for a backend service, which check types would you reach for and why? How do check frequency, timeout, and failure threshold influence failover sensitivity and false positives, and how would you adapt the checks for a service with a slow startup?

HardSystem Design
47 practiced

Design a Layer 7 load balancer that provides session affinity using consistent hashing on a session cookie. It must support health checks and rebalance sessions gracefully when nodes are added or removed. Discuss hash ring maintenance, virtual nodes, and how you would drain and migrate sessions without dropping in-flight traffic.

HardSystem Design
43 practiced

Design a header-based routing framework at the edge load balancer that supports rules like 'route requests with header X-Canary=true to the canary pool' and 'route requests with a given X-Tenant-ID to a tenant-specific pool.' Cover rule storage and distribution, evaluation performance at the load balancer, conflict resolution between rules, and safe fallback behavior.

MediumSystem Design
38 practiced

Design a multi-region failover strategy using DNS-based routing for a web service with three active regions and a target RTO of 5 minutes; eventual consistency is acceptable. Cover health checks, DNS configuration and cache TTLs, and what you'd do differently for failback once the failed region recovers. What are the fundamental limitations of DNS-based failover, and how would active-active versus active-passive change your answer?

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.