Performance Debugging and Latency Investigation Questions
Finding the root cause of latency spikes: checking CPU/memory/disk/network utilization, profiling applications, querying slow logs, and identifying bottlenecks. Understanding the difference between resource exhaustion and an algorithmic problem. Using monitoring and tracing tools to narrow down where time is spent.
EasyTechnical
55 practiced
For diagnosing CPU, memory, disk I/O and network issues, explain how you would use top/htop, iostat, vmstat, sar and ss. For each tool specify the columns or fields you check (e.g., %idle, iowait, context switches) and list two threshold patterns or signs that would indicate a problem for that resource.
MediumTechnical
98 practiced
You are given a single distributed trace for a user request that shows the total end-to-end latency is 1.2s. Spans (parent->child) with durations:- A (frontend): total 1.2s, calls B- A->B network: 0.1s- B (service): total 0.8s, internal CPU work 0.5s, B->C network 0.05s, waiting for DB 0.25s- C (downstream): total 0.1sBased on these spans, where is the largest portion of time spent and what initial remediation steps would you take to reduce p99 latency for this flow?
EasyTechnical
54 practiced
Compare the use-cases for strace and perf top when diagnosing latency issues on Linux. For each tool give one class of problem it helps reveal (e.g., blocking syscalls vs CPU hotspots) and describe a short workflow for using it safely on a production node.
EasyTechnical
67 practiced
Explain the difference between metrics, logs and traces for performance debugging. For a service experiencing intermittent latency spikes, give one concrete example of the kind of information you expect to find in each signal and describe how you would correlate them to find a root cause.
MediumTechnical
72 practiced
Explain hedged (backup) requests as a technique for reducing tail latency. Describe how to implement hedging in a client library (timers, cancellation, idempotency concerns), and discuss three trade-offs of using hedged requests in a high-scale service.
Unlock Full Question Bank
Get access to hundreds of Performance Debugging and Latency Investigation interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.