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

You need to move 20 TB of archival user data from hot block storage to a cheaper infrequent-access tier. Design a storage-tiering and migration strategy that minimizes egress charges and user-visible latency for occasional reads. Include lifecycle rules, testing, and rollback plans.

HardTechnical
159 practiced

You operate a streaming ETL pipeline with 2-second end-to-end latency SLAs. Propose a migration plan to move parts of the pipeline to micro-batching to reduce compute cost while keeping latency below 2 seconds for 90% of events. Include batching windows, checkpointing, state consistency, and a rollback plan.

HardTechnical
80 practiced

Compare provisioned instances (reserved/spot) vs serverless/FaaS for an unpredictable workload where 20% of requests arrive in short spikes. Provide a cost model that includes: base cost of always-on capacity, scaling latency, request-unit pricing, and illustrate with numeric examples how you would decide between the two approaches.

HardTechnical
95 practiced

A data transfer job between regions is consuming more network bandwidth than expected and driving up your cloud egress bill. Walk through how you would profile the job end-to-end to find where the bytes and cost are actually going, and what changes you would make to cut the transfer volume and cost without breaking the job's correctness.

MediumTechnical
90 practiced

A nightly batch job processing 10 TB of logs must finish within 2 hours. Describe how you would estimate necessary compute resources, shard the work, and validate that your estimate was correct before committing to a cost plan. Mention tools or metrics you'd use to extrapolate.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.