Scalability & Capacity Planning Questions
Analyzing how a system's resource needs change as demand grows, and deciding what scaling strategy and headroom to plan for ahead of that growth. Covers translating a stated growth trajectory, for example doubling in six months, a 10x seasonal spike, or a step-change in active users, into a headroom and saturation forecast: how much spare capacity exists today, when it runs out, and what safety margin to hold under forecast uncertainty. Covers the horizontal-versus-vertical scaling decision, including why horizontal scaling itself has diminishing returns as coordination overhead grows with node count, and identifying which resource becomes the binding constraint first as demand increases. Also covers weighing that plan against cost and communicating the trade-off to non-technical stakeholders such as finance or product. This is forward-looking planning, not execution: it does not cover provisioning or autoscaling mechanics, live incident triage, profiling an already-slow code path for hotspots, tail-latency measurement and tracing, or caching and concurrency design patterns, each its own discipline.
Describe your approach to capacity planning for a stateful service with predictable growth and seasonal spikes. Include the data sources you'd pull from, the forecasting methods you'd use, how you'd set a headroom policy, the cost trade-offs involved, and how you'd test that your capacity assumptions actually hold before the next peak period.
Explain what Amdahl's Law says about the limits of scaling out a workload, and walk through a concrete example where adding more machines gives rapidly diminishing returns because of a serial or coordination bottleneck. What would you look for in a system's design to tell whether it's actually a good candidate for horizontal scaling in the first place?
Your service just had an outage caused by running out of capacity. Walk through how you would build a capacity planning practice to prevent this from happening again: how you'd estimate headroom, which metrics you'd monitor to catch the trend early, how you'd set safety margins, and how you'd communicate capacity risk to product teams before it becomes an incident.
Application servers and the primary database sit on the same network, and during peak traffic the link between them saturates, driving up query latency. Walk through how you'd confirm the network really is the binding constraint (and not something else), what you'd try first to buy headroom quickly, and what longer-term architectural change you'd make so this doesn't keep recurring as traffic grows.
Database write throughput has become your bottleneck. Walk through how you'd decide between scaling vertically, scaling out horizontally, or changing the write pattern itself (batching, going async, or moving to a different storage engine), what you'd want to know about the workload before choosing, and what could go wrong with whichever approach you pick.
Unlock Full Question Bank
Get access to all 7 Scalability & Capacity Planning interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.