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.

HardSystem Design
86 practiced

Design a multi-region telemetry ingestion pipeline handling 1 TB per day of telemetry, with p95 ingestion latency under 5 seconds and a hard cost ceiling of $10k per month. Walk through the architecture end to end and the levers you would pull to hit both targets at once.

MediumSystem Design
87 practiced

Design a storage tiering policy for a multi-tenant SaaS analytics platform where tenants have different retention SLAs. Describe hot/warm/cold tiers, migration workflows, tenant-level cost allocation, metadata tracking for tier placement, and how you'd guarantee performance SLAs per tenant.

HardTechnical
96 practiced

Your team is evaluating a new managed data warehouse as a replacement for your existing solution. Walk through how you would build a thorough cost comparison between the two, covering storage, compute pricing model, data egress, concurrency limits, and ongoing maintenance, then describe how you would structure a migration: piloting it, monitoring cost during the transition, and defining triggers to roll back.

HardTechnical
106 practiced

Given a histogram of request latencies and CPU utilization for the last 90 days, describe an algorithm or step-by-step method to select instance types and autoscaling thresholds that minimize cost while meeting p95 latency SLO. Provide pseudocode or clear decision rules.

MediumTechnical
91 practiced

List and explain the primary cloud cost drivers for analytical workloads in managed data warehouses (BigQuery, Snowflake, Redshift). Give two realistic examples where a seemingly small change (e.g., new column, increased cardinality, or an extra join) could cause a large monthly cost increase.

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.