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
99 practiced

Your service uses a managed queue that charges per message, and at your traffic volume that per-message cost is adding up fast. Propose an architectural change that reduces this cost, and explain how you'd preserve at-least-once delivery and idempotency, plus what the change does to latency and throughput.

HardTechnical
99 practiced

You onboarded a third-party library that increases memory churn in a high-throughput service. Explain how you would quantify the impact on performance and cost, decide whether to fix the library upstream, mitigate the churn at the service level, or replace the library outright, and how you would present your recommendation to engineering management.

MediumTechnical
81 practiced

Design a benchmarking and cost-model framework to evaluate whether adding a CDN or edge caching will reduce both latency and network egress cost for a global API. Specify metrics to capture, traffic sampling methods, geographies to test, and how to calculate expected egress savings.

HardTechnical
103 practiced

You built a heavy CPU-bound feature that improves product metrics slightly but increases infrastructure cost by 40%. How would you evaluate whether to keep it, optimize it, or sunset it? Describe how you would quantify what is driving the cost increase, the experiments and financial metrics you would use, and the stakeholder conversations you would lead.

MediumSystem Design
101 practiced

You need to move cold data off primary disk onto cheaper archival storage while still allowing occasional reads within a few seconds. Design a retrieval path that minimizes cost without adding excessive implementation complexity, and describe how you'd keep the experience reasonable for a user who requests an archived object.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.