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

Serverless functions in production suffer occasional cold starts that violate a 100ms P95 latency SLO. Walk through the mitigation techniques you would consider, the cost and operational trade-offs of each, and an experimental plan to measure whether each approach meets the SLO while minimizing incremental cost.

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.

HardSystem Design
151 practiced

Design an observability and A/B performance experimentation platform that allows safe testing of cost-saving optimizations. Describe how you would capture metrics, create cohorts, run statistical tests on latency and error metrics, and attribute cost changes to experiments.

HardSystem Design
75 practiced

You must migrate 1 PB of archival data from S3 Standard to Glacier Deep Archive with unknown retrieval patterns but a compliance requirement for rare emergency access. Design a migration plan that minimizes monthly cost while preserving the ability to retrieve subsets quickly if needed. Include testing, cold-start retrieval simulation, and cost modeling.

MediumTechnical
74 practiced

You have a microservice that sends events to a downstream system at high QPS. Network egress costs are growing quickly. Propose three engineering approaches to reduce egress costs and explain the cost versus latency trade-off for each.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.