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.

HardTechnical
90 practiced

You're tasked with reducing the inference cost of a large transformer model by 80% while keeping p95 latency within 2x of the current SLO. Walk through how you would approach this: what levers would you evaluate, how would you estimate each one's expected cost reduction and implementation complexity, and what would you prioritize first?

MediumSystem Design
88 practiced

Design a capacity and cost estimation plan for a periodic training job: the dataset is 50TB, you retrain weekly, the wall-clock budget is 24 hours, and the current baseline is an 8-node A100 GPU cluster. Walk through how you'd right-size compute, storage IO, and network egress for this job, and what changes you'd consider to bring the cost down without blowing the 24-hour window.

HardTechnical
103 practiced

Case study: your baseline model takes 100 GPU-hours to reach target accuracy, and you're asked to cut that to 20 GPU-hours (a 5x reduction) while keeping at least 99% of baseline accuracy. Walk through the plan you would propose: what you would try first, what categories of change you would consider (algorithmic, model architecture, data, and tooling), and how you would estimate the expected compute savings and risk of each before committing engineering time to it.

MediumTechnical
83 practiced

Your product uses a large language model for customer support, and inference cost per request is high because contexts are long and the model generates many tokens per response. Walk through how you would bring that cost down: what levers you'd pull, how you'd prioritize them by likely ROI, and how you'd validate that each change actually saved money without hurting response quality.

MediumTechnical
76 practiced

Compare the cost trade-offs between training large models and serving them for inference. For a model used in production with periodic retraining, describe when compute should be invested in more training to reduce inference complexity (distillation), versus optimizing serving cost (quantization, batching). Include examples of amortization over requests.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.