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.
Estimate monthly inter-region replication and egress costs for a service with the following user distribution: Region A 30%, Region B 50%, Region C 20%. Average monthly per-user egress is 5GB. Propose a replication and CDN strategy to optimize cost and latency, and show the math for cross-region transfers.
You need to capacity plan a streaming pipeline (Kafka or Pub/Sub) that ingests 2 TB/hour and retains data for 7 days, with multiple downstream consumers that process at different throughputs. Calculate storage, partitioning, network, and CPU guidance, and explain how you'd provision for peak vs average load and DR.
You manage a stateful service requiring a single leader per shard (leader election). Design a horizontal scaling strategy that allows adding/removing nodes without causing split-brain or violating leader guarantees. Include coordination mechanism (consensus), rolling upgrade steps, and how the load balancer should route during transitions.
Walk me through how an autoscaling group or managed instance group works: what desired, minimum, and maximum capacity control, how a scaling policy decides when to add or remove instances, and why health checks, instance warm-up, and termination policy choices matter for stability. Then sketch a scaling policy you'd use for a CPU-bound web tier, and a different one for a queue-depth-driven background worker fleet.
Design and describe an experiment to validate assumptions in a five-year capacity roadmap when you only have six months of historical telemetry. Explain how you will quantify uncertainty, choose priors, run stress tests, use leading indicators, set guardrails, and iterate the roadmap as more data becomes available.
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.