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.

MediumTechnical
91 practiced

You are asked to right-size a GPU cluster to meet SLOs for inference while minimizing cost. Given historical traffic: peak concurrency 200 reqs, average inference time 80ms on an A10 GPU (batching not used), expected p95 multiplier 3x average, and a requirement to tolerate 30% traffic spike, describe how you'd compute required GPUs, whether to use reserved vs spot instances, and how to provision warm pools.

HardTechnical
95 practiced

A data transfer job between regions is consuming more network bandwidth than expected and driving up your cloud egress bill. Walk through how you would profile the job end-to-end to find where the bytes and cost are actually going, and what changes you would make to cut the transfer volume and cost without breaking the job's correctness.

EasyTechnical
91 practiced

Describe a basic right-sizing methodology for virtual machines and instances during a cloud migration: what would you measure and for how long under representative workload, and how would you decide which instance family and size to choose? Include how you would handle headroom for peaks and bursty traffic.

HardTechnical
72 practiced

Traffic is forecast to double every 6 months for the next two years. Propose a capacity planning and cost strategy for this growth curve: what mix of purchasing commitments would you use and when would you buy them, how would you model the decision, how would you hedge against forecast uncertainty, and how would you minimize downside if the forecast turns out wrong?

MediumTechnical
105 practiced

Your team's monitoring bill for metrics and traces has been growing faster than traffic for the past two quarters. Walk through how you would cut that spend without losing the ability to catch real regressions, and what governance you would put in place so the problem does not come back.

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.