InterviewStack.io LogoInterviewStack.io

Load Balancing and Horizontal Scaling Questions

Covers principles and mechanisms for distributing traffic and scaling services horizontally. Includes load balancing algorithms such as round robin, least connections, and consistent hashing; health checks, connection draining, and sticky sessions; and session management strategies for stateless and stateful services. Explains when to scale horizontally versus vertically, capacity planning, and trade offs of each approach. Also includes infrastructure level autoscaling concepts such as auto scaling groups, launch templates, target tracking and step scaling policies, and how load balancers and autoscaling interact to absorb traffic spikes. Reviews different load balancer types and selection criteria, integration with service discovery, and operational concerns for maintaining availability and performance at scale.

MediumTechnical
69 practiced
Describe, step-by-step, how a typical cloud load balancer and autoscaling group interact during a sudden traffic spike that increases requests/sec by 5x in one minute. Explain registration/deregistration, health checks, scale-out latency, connection queueing, and short-term mitigation options to avoid degraded user experience.
HardTechnical
63 practiced
Your organization wants to reduce cost of load balancing and autoscaling while keeping SLOs. Propose three concrete strategies (e.g., using spot instances, right-sizing instances, using fewer larger instances, request batching, API gateway caching). For each strategy, list risks and mitigations.
MediumTechnical
64 practiced
Design an ingress/load balancing architecture for a Kubernetes cluster that must support 100k RPS and long-lived WebSocket connections. Include components (external LB type, ingress controller, service type, node sizing), connection draining strategy for rolling nodes, and how you would test at scale.
HardTechnical
64 practiced
You led an incident where autoscaling didn’t trigger and the load balancer overloaded healthy backends, causing a multi-hour outage. You are asked to prepare and lead the post-incident review and follow-up. Describe the structure of your postmortem, stakeholders to involve, actionable remediation items (with owners and deadlines), and how to prevent recurrence while communicating with customers.
MediumTechnical
70 practiced
Explain the benefits and drawbacks of cross-zone (or cross-availability-zone) load balancing. How does it affect latency, cost, and capacity utilization? When might you disable cross-zone balancing and what alternative would you implement to preserve availability?

Unlock Full Question Bank

Get access to hundreds of Load Balancing and Horizontal Scaling interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.