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.
Design a benchmarking and cost-model framework to evaluate whether adding a CDN or edge caching will reduce both latency and network egress cost for a global API. Specify metrics to capture, traffic sampling methods, geographies to test, and how to calculate expected egress savings.
You're designing the autoscaling policy for a multi-tenant backend. p95 latency has to stay under 150ms, but the cloud bill also needs to come down. Walk through how you would design the policy end to end, including what could go wrong (thrashing, one tenant starving another) and how you would guard against it.
Design a quantitative estimation model that predicts cost versus latency trade-offs for serving large media assets using a mix of storage tiers and CDN strategies. Describe required inputs, sampling plan, modeling approach (percentile latency curves and cost functions), and a validation strategy using production telemetry.
Case study: your service's monthly cloud bill is $120k. You find the top contributors are (1) 40% compute, (2) 25% storage, (3) 20% managed DB, (4) 10% egress, (5) 5% logging. Propose the top five cost optimization actions (technical and process) that would likely save >20% of costs, and estimate rough savings for each.
A performance regression in production quietly drove up your cloud bill for several days before anyone noticed. Walk through how you'd handle it end to end: how you'd catch it sooner next time, how you'd contain the damage, find the root cause, quantify what it actually cost the company, and what you'd change so it can't happen again.
Unlock Full Question Bank
Get access to all 23 Performance Cost Optimization & Resource Efficiency interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.