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.
You must decide whether to use CPU or GPU instances for online inference of a transformer-based model. Given that a single example inference takes 120ms on CPU and 30ms on GPU when batch size=1, but GPUs are 6x more expensive per hour, describe how you would choose the compute platform to minimize cost while meeting a 100ms p95 latency SLO. Include considerations of batching, autoscaling, instance startup time, and utilization.
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?
Evaluate pros and cons of investing in proprietary inference hardware (on-prem or co-located) versus relying on cloud-managed inference platforms (serverless or managed GPUs) for a company with steady growth. Consider upfront capital, utilization, time-to-market, maintenance, auto-scaling, and long-term TCO.
Behavioral: Tell me about a time when you recommended a change that reduced operating cost but risked worsening user experience. How did you structure your analysis, what stakeholders did you involve, what metrics guided your decision, and what was the final outcome?
Design a scalable model-serving architecture to serve 1,000 requests per second with a 50ms p95 inference SLO and a strict monthly cost cap. Walk through the high-level architecture you would propose, where you would apply batching, whether you would use spot instances or GPU multiplexing to control cost, and how you would measure that both the cost cap and the SLO are being met.
Unlock Full Question Bank
Get access to all 45 Performance Cost Optimization & Resource Efficiency interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.