Infrastructure Scaling, Capacity Planning, and High Availability Questions

How to make running infrastructure scale and stay available: the operational and architectural mechanics of doing it, not the growth-modeling math behind it. Covers autoscaling policy design and Kubernetes cluster scaling (target-tracking, step, scheduled, and predictive triggers, cooldowns, warm pools, HPA, VPA, Cluster Autoscaler, GPU/node scheduling, bin-packing), load balancing algorithms and architecture (round-robin, least-connections, consistent hashing, L4 vs L7, health checks, connection draining, session affinity), horizontal versus vertical scaling choices, and high-availability and redundancy design (multi-AZ and multi-region failover, active-active vs active-passive, split-brain and leader election). Also covers turning a given demand or growth figure into concrete provisioning: headroom and safety-margin sizing, back-of-envelope instance, IOPS, and replica-count math, right-sizing, and multi-year procurement planning; validating a sizing or scaling change through load, stress, soak, and chaos testing; scaling stateful tiers such as databases, caches, and message queues; cost-aware trade-offs including reserved versus spot capacity and managed versus self-hosted infrastructure; and the observability needed to catch capacity saturation before it breaches an SLO.

MediumTechnical
59 practiced

Design approaches to handle long-lived sessions and session affinity while allowing autoscaling. Compare sticky sessions, centralized session stores (Redis), token-based stateless sessions (JWT), and database-backed sessions. For each approach describe implications for scale-in, failover, latency, and operational complexity.

MediumSystem Design
59 practiced

Design session management for a shopping-cart web app that needs strong session affinity for cart updates, while still supporting horizontal autoscaling and high availability. What approach would you take, and how would you weigh the trade-offs around consistency, latency, failover, operational complexity, and cost?

EasyTechnical
64 practiced

Explain the difference between vertical scaling (scaling up: moving to a bigger machine) and horizontal scaling (scaling out: adding more machines) for a service or system. Define scale-up, scale-down, scale-out, and scale-in, and give concrete examples of each, such as resizing a VM instance versus adding more replicas behind a load balancer. Compare the two approaches on cost, fault tolerance and failure domains, operational complexity, downtime windows, and single-node limits, and describe what it takes to migrate a service from one approach to the other.

EasyTechnical
69 practiced

What does it mean for a service to be stateless versus stateful, and why does statelessness make load balancing and autoscaling so much easier? Now say you have a component that genuinely has to hold state: how would you scale it horizontally, and what trade-offs come with the approach you'd pick?

EasyTechnical
73 practiced

Explain the key differences between round-robin, least-connections, and consistent-hashing load balancing algorithms. For each algorithm, describe the scenarios where it performs well and where it performs poorly (consider stateless vs stateful services, highly variable request cost, cache locality and rebalancing cost). Give one concrete example service for each algorithm choice.

Unlock Full Question Bank

Get access to all 11 Infrastructure Scaling, Capacity Planning, and High Availability interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.