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
85 practiced
You’ve received an alert: a three-tier web app (frontend, API, DB) is experiencing spikes in request latency and some 5xx errors during peak traffic. Outline a prioritized triage checklist (15–20 actionable steps) to identify the root cause, including which logs, metrics, and distributed traces to inspect and what temporary mitigations you might apply.
HardTechnical
56 practiced
You manage a storage system containing petabytes of data across multiple tiers. Design a cost model and tiering strategy that includes lifecycle policies, expected monthly costs, backup/restore strategies, and RTO/RPO targets. Explain how you would validate your cost estimates and ensure disaster recovery readiness.
HardTechnical
55 practiced
You're the systems engineering lead. Create a 12-month roadmap that balances performance improvements and cost savings for the core backend platform. Prioritize initiatives, define measurable KPIs (e.g., p95 latency reduction, cost-per-transaction), resource estimates, and how you'd communicate trade-offs to product and finance stakeholders.
HardTechnical
92 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.
EasyTechnical
45 practiced
Discuss the performance trade-offs between sending many small messages vs batching messages for a backend service. Include effects on latency, throughput, memory, and error handling. Provide a simple guideline for choosing a batch size.

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.