InterviewStack.io LogoInterviewStack.io

Capacity Planning and Resource Optimization Questions

Covers forecasting, provisioning, and operating compute, memory, storage, and network resources efficiently to meet demand and service level objectives. Key skills include monitoring resource utilization metrics such as central processing unit usage, memory consumption, storage input and output and network throughput; analyzing historical trends and workload patterns to predict future demand; and planning capacity additions, safety margins, and buffer sizing. Candidates should understand vertical versus horizontal scaling, autoscaling policy design and cooldowns, right sizing instances or containers, workload placement and isolation, load balancing algorithms, and use of spot or preemptible capacity for interruptible workloads. Practical topics include storage planning and archival strategies, database memory tuning and buffer sizing, batching and off peak processing, model compression and inference optimization for machine learning workloads, alerts and dashboards, stress and validation testing of planned changes, and methods to measure that capacity decisions meet both performance and cost objectives.

EasyTechnical
24 practiced
Describe best practices for setting resource requests and limits for CPU and memory in Kubernetes. Explain how requests and limits affect scheduler decisions, QoS classes, and OOM kill behavior. Provide a practical step-by-step approach to determine initial request/limit values for a new microservice in production.
EasySystem Design
21 practiced
Design a minimal set of dashboards and alerts for capacity planning of a stateless web service that must meet latency and availability SLOs. List the key metrics (including percentiles and trend indicators), suggested threshold rules tied to SLOs or capacity buffers, and how you would surface these dashboards to on-call teams to support operational decisions.
MediumTechnical
30 practiced
Explain how to translate SLOs into concrete capacity targets. Given a requirement of 99.95% availability and p95 latency under 100ms, explain how you'd set CPU/memory headroom, instance counts, redundancy levels (N+1/N+2), and load balancing choices to meet SLOs including failure scenarios such as instance or AZ loss.
HardSystem Design
23 practiced
Design capacity and scaling for services constrained by strict data-locality regulations: some user data must remain in region X while traffic originates globally. Explain how to place compute and storage, what replication patterns are allowed, how to handle global traffic routing, capacity duplication costs, and how to provision buffer capacity in region X to meet SLOs while complying with regulations.
MediumSystem Design
21 practiced
Outline a plan to stress-test a service before executing a planned capacity reduction of 30% fewer instances. Which test scenarios (spike, soak, step), what metrics to collect (latency percentiles, error rates, queue length, CPU steal), success criteria, and automated rollback steps would you include? Discuss trade-offs between testing in staging vs production.

Unlock Full Question Bank

Get access to hundreds of Capacity Planning and Resource Optimization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.