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 how you would design a cost-aware autoscaler that factors in spot instance availability, on-demand fallback, and a monthly budget cap. How would the autoscaler decide between cheaper preemptible capacity and pricer on-demand nodes under varying load?
You need to scale a nightly data preprocessing pipeline that processes thousands of files, and the current single-node job keeps missing its SLA window. Describe strategies to parallelize and scale this pipeline, and discuss the trade-offs among cost, latency, and operational complexity for the approaches you would consider.
Explain buffer sizing and safety margins when reserving host memory and disk for AI workloads. How do you determine how much headroom to leave for OS, drivers, caching, and unexpected spikes? Provide a simple calculation example for memory and disk safety margin.
Design the caching layer for a feature-store that must serve 1M low-latency lookups per second with freshness constraint <= 100ms. Address cache sizing, invalidation strategies, pre-warming, consistency trade-offs (strong vs eventual), and capacity planning for both cache and backing store.
Tell me about a time you had to make a capacity-related trade-off that impacted product features or delivery timelines (for example delaying model training to reduce cost or reducing concurrency to meet SLOs). Describe the situation, the options you considered, the decision you made, how you communicated it, and the outcome.
Unlock Full Question Bank
Get access to all Infrastructure Scaling, Capacity Planning, and High Availability interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.