InterviewStack.io LogoInterviewStack.io

Performance Engineering and Cost Optimization Questions

Engineering practices and trade offs for meeting performance objectives while controlling operational cost. Topics include setting latency and throughput targets and latency budgets; benchmarking profiling and tuning across application database and infrastructure layers; memory compute serialization and batching optimizations; asynchronous processing and workload shaping; capacity estimation and right sizing for compute and storage to reduce cost; understanding cost drivers in cloud environments including network egress and storage tiering; trade offs between real time and batch processing; and monitoring to detect and prevent performance regressions. Candidates should describe measurement driven approaches to optimization and be able to justify trade offs between cost complexity and user experience.

MediumTechnical
74 practiced
A mobile client tolerates some staleness. Propose a design to deliver a news feed that balances freshness and cost. Include caching, background refresh, prefetching, and how you would measure the marginal UX improvement vs incremental cost.
HardTechnical
48 practiced
Design storage layout for a time-series metrics system ingesting 5k series at 1k samples/sec each, retention 2 years, and requirement that queries for last 24 hours return under 1 second. Discuss compression, downsampling, partitioning, and expected storage cost trade-offs.
HardSystem Design
58 practiced
Design a workload-shaping system to gracefully handle a 100x traffic surge from an API while preserving high-value traffic. Include admission control, priority queues, token-bucket limits, backpressure mechanisms, and how you would surface degraded behavior to customers.
MediumTechnical
54 practiced
For a read-heavy relational database workload, outline optimization strategies including indexing, read replicas, materialized views, partitioning, and denormalization. Provide criteria for choosing among these options.
HardSystem Design
87 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.

Unlock Full Question Bank

Get access to hundreds of Performance Engineering and Cost Optimization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.