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.

MediumSystem Design
98 practiced

Design an autoscaling policy for a Kubernetes-hosted web service with strong diurnal traffic that needs to minimize infrastructure cost while still meeting a p95 latency SLO. Walk through which autoscaling mechanism you would reach for and why, what metrics would actually drive the scaling decision, and how you would tune it to avoid thrashing during traffic bursts.

HardTechnical
127 practiced

You ran an A/B test where variant A reduces P95 latency by 30% but increases monthly infrastructure cost by 40%. Design a decision framework to determine whether to roll out variant A globally, including which business metrics you would correlate with performance, how you would calculate the incremental cost per conversion, what statistical significance and power considerations matter, and what non-functional costs you would weigh beyond the dollar figure.

HardTechnical
89 practiced

A downstream managed database charges you per read and per GB stored, and that line item is one of your biggest costs. You need to bring it down without making writes any slower. Walk through where you'd look for savings and how you'd prove the changes actually moved the bill.

HardSystem Design
106 practiced

Cross-region replication of frequently read content has driven up network egress costs for a global service. Design an architecture that reduces cross-region egress while preserving read latency guarantees for regional users, and explain the consistency trade-offs your design introduces.

HardTechnical
82 practiced

A performance regression in production quietly drove up your cloud bill for several days before anyone noticed. Walk through how you'd handle it end to end: how you'd catch it sooner next time, how you'd contain the damage, find the root cause, quantify what it actually cost the company, and what you'd change so it can't happen again.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.