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
58 practiced

You forecast a 3x increase in traffic after a feature launch. Before provisioning full capacity, how would you design experiments and measurements to validate that assumption, and what would make you confident enough to decide whether additional capacity is actually needed?

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.

HardTechnical
71 practiced

Design a capacity and cost estimate for an e-commerce checkout API that expects a flash-sale peak of 5,000 concurrent users for 10 minutes. Users make on average 4 requests per checkout session within 2 minutes. Size the stateless application tier, caching layer, and suggest a DB approach. State all assumptions and show calculations.

MediumTechnical
75 practiced

Your public endpoints suddenly get hit with a huge spike in traffic that looks like it could be a DoS attack, or could just be unexpected viral growth. Walk me through how you'd respond in the moment, how you'd tell the two apart, and what you'd do afterward.

HardTechnical
72 practiced

Estimate Redis memory size and throughput required to support an 80% cache hit ratio for a dataset containing 100M keys where each key+value averages 1KB. Assume a 30% 'hot set' that is accessed frequently. Provide cluster sizing and cost assumptions for a managed Redis offering.

Unlock Full Question Bank

Get access to all 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.