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.
Describe how batching reduces compute and network cost for event ingestion. Compare 1 million single-event HTTP requests against 10,000 batched requests of 100 events each: estimate the difference in request overhead and CPU cost, and discuss the latency impact for end users.
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.
Estimate the monthly cost-benefit of introducing a CDN in front of an API currently serving 20 TB/month of origin egress with average response size 100 KB and 2M requests/day, where you estimate 60% of requests are cacheable. Outline assumptions, compute origin bytes saved, add CDN bandwidth and per-request costs, and show a break-even calculation.
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.
The product team suggests moving infrequently accessed data to a cheaper cold storage tier. Describe how you would quantify the cost savings versus the increased retrieval latency and potential user impact. What access thresholds, SLA changes, and instrumentation would you require before executing such a migration?
Unlock Full Question Bank
Get access to all 35 Performance Cost Optimization & Resource Efficiency interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.