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 an autoscaling policy for a microservice to minimize cost while meeting a 200ms p95 latency SLO. Specify metrics to drive scaling (e.g., latency, CPU, request queue depth), scale-up/down thresholds and cooldowns, predictive vs reactive scaling options, and how to handle sudden spikes or noisy neighbors.
EasyBehavioral
59 practiced
Tell me about a time you, as a Cloud Architect or senior engineer, identified and executed performance improvements that significantly reduced cloud spend without degrading user experience. Use STAR: describe the situation, the specific actions you took, the measurement-driven approach, the results (quantified), and the trade-offs or risks you managed.
EasyTechnical
52 practiced
Define 'tail latency' and explain why p99 and p999 percentiles matter for user experience. As a Cloud Architect, list three architectural strategies to reduce tail latency across distributed services and briefly explain their cost implications.
HardTechnical
52 practiced
How would you design a global database for a social feed that must serve reads under 100ms for 99% of users worldwide while keeping storage and egress costs reasonable? Discuss consistency model options, replication strategies (multi-master vs read-replicas), caching layers, and fanout-on-write vs fanout-on-read trade-offs.
MediumSystem Design
92 practiced
Design a benchmarking plan for a stateful microservice you plan to migrate to the cloud. Cover objectives, representative workloads to simulate, required metrics (latency percentiles, throughput, CPU, memory, network, IOPS), test harness design, warm-up strategy, and how you will use results to size instances and set SLOs.

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.