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.

MediumSystem Design
47 practiced
Design a canary deployment strategy for a latency-sensitive service where tail latency matters. Explain traffic weights, metrics for success (including p99), warmup behaviors, and automated rollback triggers. How would you avoid false positives due to natural traffic variability?
EasyTechnical
63 practiced
Define a latency budget in the context of an API and explain how it differs from throughput targets. Given a microservice with 200 req/s average and burst to 5k req/s, describe a simple approach to allocate a latency budget across frontend, middleware, and database layers.
EasyTechnical
44 practiced
Explain 'right-sizing' compute instances for a containerized service. Describe a measurement-driven process to determine right sizes for VMs or container resource requests/limits for a service with diurnal traffic and 99.9% availability SLO.
HardTechnical
47 practiced
Tail latency is hurting 0.5% of users due to queuing and head-of-line blocking in a downstream service. Propose system-level changes to reduce p99: hedged requests, priority queues, admission control, timeouts, and client-side fallbacks. For each change, explain expected impact on latency, throughput, and cost.
MediumTechnical
61 practiced
You have a service that averages 500 requests/s and needs to ensure p95 latency < 200ms with 99.9% availability. Each pod can handle 50 concurrent requests with comfortable CPU/memory. Calculate the minimum number of pods needed to meet target under normal load and with a 2x burst, and explain how much headroom you'd keep for autoscaling and node failures.

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.