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
53 practiced
Design a caching strategy for a read-heavy API that requires eventual consistency for user profile data. Describe where you'd place caches (client, CDN, edge, app-level, DB), cache invalidation or TTL strategies, and how you'd measure cache hit ratio and its impact on latency and cost.
EasyTechnical
43 practiced
Describe common asynchronous processing patterns (e.g., worker queues, event-driven, publish/subscribe) for decoupling services. For each pattern, note when it's appropriate, how it affects latency and cost, and how you'd ensure resiliency and idempotency.
EasyTechnical
51 practiced
Explain the primary drivers of network egress cost in public clouds. For a multi-region application with cross-region reads and writes, list three strategies to reduce egress cost while keeping user-facing latency reasonable.
HardTechnical
60 practiced
Production occasionally shows intermittent latency regressions that you cannot reproduce locally. Describe a plan to instrument and capture sufficient evidence to find the root cause without overwhelming production (sampling, adaptive tracing, flamegraphs, flamegraphs for native code), and how you'd correlate traces with system-level metrics.
MediumTechnical
58 practiced
A production service sometimes experiences high tail latency (p99) during traffic bursts. Design an experiment to benchmark and reproduce tail behavior. Describe workload characteristics to simulate, the metrics to capture, and how you would isolate whether the bottleneck is CPU, IO, locks, GC, or network.

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.