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
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.

EasyTechnical
139 practiced

Define what a 'cold start' means for model-serving systems, including serverless and container-based deployments. What practical mitigations would you use to reduce cold-start latency, and what cost and operational trade-offs does each one carry?

HardTechnical
96 practiced

Production network egress costs spiked because embedding lookups were being made across regions. Propose the architectural changes you would make to fix this, and quantify the latency-versus-cost trade-offs of the approach you choose.

HardTechnical
73 practiced

You have three model variants: small (latency 30ms, accuracy 80%, cost $0.01/inference), medium (60ms, 85%, $0.03), large (120ms, 90%, $0.08). Design an online routing strategy that dynamically selects model variant per request to meet a global accuracy SLA of 86% while minimizing cost and keeping p95 latency under 100ms. Consider input confidence, user value, and expected traffic mix.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.