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.
Design a globally-distributed active-active architecture across three regions to serve a web application with p95 latency <100ms for users worldwide and seamless failover if a region becomes unavailable. Cover how you would implement global load balancing (DNS, global LB, CDN), data partitioning/replication models, cache invalidation strategies, consistency trade-offs, and how to route writes to minimize conflicts.
Leadership wants a number: what is the probability that provisioned capacity breaches SLA next month, and how big a buffer should you add on top of your point forecast to hold that risk to something like a 0.1% chance of breach per month? Describe how you would build a Monte Carlo simulation (or propose an alternative quantitative method) to compute that probability, including what distributions you would choose for uncertain inputs like growth rate, incident frequency, and provisioning lead time, how many samples you would run, and how the results would feed into your headroom recommendation.
Design an autoscaling policy for a stateful queue-processing service that scales horizontally based on messages per consumer and must guarantee at-least-once processing with no message loss during scale-in. Walk through exactly what happens to a consumer from the moment it's marked for removal to the moment it exits, and explain how your cooldowns and thresholds would differ from a stateless service's.
A relational database under a write-heavy workload shows rising write latency and increasing lock contention. Walk through how you'd diagnose this using monitoring and database internals: what you'd check, what root causes you'd rule in or out, what you'd mitigate immediately, and what longer-term architecture changes you'd consider to scale writes.
You manage a Kubernetes cluster running mixed workloads: latency-sensitive web services, nightly ETL batch jobs, and periodic ML training. Walk through how you would place and isolate these workloads so batch and training jobs cannot impact production SLOs, while still letting them use spare capacity when it is available. What Kubernetes-native mechanisms would you reach for, and how would you configure them?
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.