Performance Cost Optimization & Resource Efficiency Questions

Optimizing for the money and resources a given level of performance consumes, not just raw speed. Covers cost-per-request, training-cost and cost-per-inference reasoning, right-sizing and cost-driven autoscaling of compute, memory and storage, choosing between on-demand, reserved and spot capacity, storage tiering and egress-cost reduction, cloud-bill diagnosis and reduction plans, and cost allocation or chargeback across teams and tenants. A question belongs here when the primary deliverable is a cost or resource-consumption calculation, decision or reduction plan, not when cost is one line among several unrelated technical considerations. Distinct from defining or measuring latency, percentiles, SLOs and latency budgets on their own, from profiling and bottleneck diagnosis such as flame graphs, hotspots and query tuning, from production incident and on-call triage, from general multi-axis trade-off frameworks where cost is incidental to a decision about latency, freshness or complexity, from concurrency, batching and thread-safety mechanics, and from garbage-collection and memory-leak tuning: those are covered by dedicated sibling topics.

HardSystem Design
79 practiced

You operate services composed of stateful components (caches, databases) and stateless API servers. Describe a capacity planning approach that right-sizes both types, accounts for replica and failover overhead, minimizes cost, and preserves availability. Include example calculations for compute and storage headroom.

HardSystem Design
104 practiced

Explain how you would design monitoring and alerting to detect not just performance regressions but also cost regressions (e.g., sudden increase in egress or storage costs). What SLI-style metrics, dashboards, and anomaly detection approaches would you use, and how would you tie them to engineering ownership and automated actions?

EasyTechnical
77 practiced

Your backend service's monthly cloud bill has crept up about 30% over the last two quarters even though user traffic has stayed roughly flat. Walk through where you would look to find what is actually driving the spend, and for the categories you would expect to be the usual suspects, give a realistic example of how each one unexpectedly spikes, a one-line mitigation, and a metric you would monitor going forward to catch a similar regression early.

MediumTechnical
100 practiced

Describe a simple method to right-size compute instances for a web service: given requests-per-second (RPS), average CPU and memory per request, desired SLO headroom, and instance types/price, estimate instance size and count. Explain trade-offs between fewer larger instances and many smaller instances with respect to cost, fault domain, and operational complexity.

MediumSystem Design
106 practiced

You need to move 20 TB of archival user data from hot block storage to a cheaper infrequent-access tier. Design a storage-tiering and migration strategy that minimizes egress charges and user-visible latency for occasional reads. Include lifecycle rules, testing, and rollback plans.

Unlock Full Question Bank

Get access to all Performance Cost Optimization & Resource Efficiency interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.