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.
Describe connection draining and graceful termination for services behind load balancers. Explain how to implement this with cloud load balancers, NGINX, and Kubernetes (preStop hook, pod terminationGracePeriod), and how draining should interact with autoscaling events and rolling deployments.
Perform a rigorous postmortem for an incident where autoscaling caused simultaneous scale-in across regions during a lull, eliminating needed headroom; when traffic returned the system experienced packet drops and partial outage. Identify probable root causes, immediate mitigations you would have applied, and propose architectural and process changes to prevent similar incidents in the future.
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.
Describe how SNMP polling and NetFlow/IPFIX streaming provide different visibility for capacity planning. For each telemetry method, explain the kinds of capacity questions it answers, trade-offs in collection frequency and retention, and when you would prefer to rely on one or both in a hybrid cloud/on-prem monitoring strategy.
Given uncertain and highly variable business growth projections, design procurement and contract strategies for WAN capacity (committed vs on-demand) to minimize cost while providing sufficient headroom for bursts. Explain financial trade-offs, risk exposure, and propose monitoring triggers and contractual clauses that can be used to scale capacity with measured demand.
Unlock Full Question Bank
Get access to all 46 Infrastructure Scaling, Capacity Planning, and High Availability interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.