InterviewStack.io LogoInterviewStack.io

Performance Troubleshooting & Incident Response Questions

Diagnosing and resolving performance problems in production, often under time pressure. Covers latency and slowdown investigation, reproducing and narrowing performance regressions, operational readiness for performance incidents, and restoring healthy behavior while preserving reliability. Emphasizes systematic debugging of live systems over offline experimentation.

HardTechnical
55 practiced

You suspect subtle lock contention in a high-performance C++ service that causes p99 latency spikes at high concurrency. Propose a detailed methodology using perf, lock profiling tools, and code instrumentation to pinpoint the contention. Explain how you'd validate the root cause and evaluate fixes such as lock sharding, lock-free queues, or redesigning hot paths.

MediumTechnical
57 practiced

You are given the following sampled outputs taken at the same time:

iostat -x 1 2 (relevant line):
Device r/s w/s rkB/s wkB/s avgrq-sz await svctm %util
sda 50.0 200.0 1024.0 8192.0 45.0 25.0 2.50 62.5

vmstat 1 2:
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa st
4 0 0 50000 20000 100000 0 0 200 150 1000 2000 40 10 10 40 0

Based on these snippets, which resource is currently the most likely bottleneck and why? What immediate action would you take and what additional metrics or commands would you collect to confirm your diagnosis?

MediumTechnical
91 practiced

Design an alert for CPU saturation that minimizes noise during scheduled batch jobs. Specify the alert rule, threshold logic (including aggregation and percentiles), maintenance window handling, and techniques to reduce false positives (e.g., anomaly detection, dependency-aware suppression). Also describe how you'd document the alert for on-call engineers.

EasyTechnical
55 practiced

You observe steady memory growth in a long-running backend service. Describe a practical triage workflow for identifying whether this is a memory leak in a managed runtime (e.g., Java) versus native memory growth (e.g., C/C++). Include commands/tools, what to capture (heap dump, core, pmap), and one immediate mitigation you could apply in production with minimal disruption.

MediumTechnical
66 practiced

Describe how you would track down a performance regression introduced by a code change. Explain how you'd use CI artifacts, benchmark suites, canary deployments, and git bisection to identify the offending change, and how you'd ensure your fix is validated before full rollout.

Unlock Full Question Bank

Get access to all 35 Performance Troubleshooting & Incident Response interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.