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.

MediumSystem Design
76 practiced

You must validate cluster sizing for Spark jobs that process 10 TB of daily data and should complete within 2 hours. Design a load-testing and benchmarking plan: representative job variants to test, a dataset sampling strategy, which executor/core/memory and shuffle/partition configs to vary, and what you'd measure to catch bottlenecks. Explain how you would convert the test results into a production cluster sizing and scheduling plan that supports concurrency.

MediumTechnical
53 practiced

A relational database is showing high read latency during peak hours. How would you address it? Walk through the approaches you'd consider, and for each, discuss the capacity implications, cost, and operational complexity.

HardTechnical
53 practiced

Outline the design of a simplified capacity simulator that, given a time series of arrival rates, a service time distribution, an initial number of servers, and a simple scaling policy (add or remove servers based on average utilization), models how queue lengths and latency evolve over time. What design choices would you make (discrete-time steps vs event-driven simulation, data structures), and what are the limitations of this kind of simulator?

HardTechnical
60 practiced

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.

MediumSystem Design
69 practiced

Design a storage strategy for an application that will scale to petabytes of data with mixed access patterns: hot (recent logs), warm (last 90 days), and cold (older than 90 days). Discuss tiering, autoscaling storage nodes, throughput considerations, and how storage choices affect compute autoscaling.

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.