An intermittent latency problem only shows up in production under load, spans several services, and you can't reproduce it. How would you use your observability tooling to find the root cause, and what does this incident tell you about gaps in that tooling?

system-design · Staff-principal level · software-engineering

What the interviewer is really asking

Probes whether the candidate can drive a real cross-service debugging session with telemetry — starting from SLO/metric symptoms, using distributed traces to localize the slow hop, drilling into logs, distinguishing high-percentile tail latency from the mean — and reflect on observability gaps (the difference between monitoring known unknowns and being able to ask new questions).

What to say

What to avoid

Example answers

Strong: First I'd look at the right statistic: an intermittent problem lives in the tail, so I'd examine p99/p99.9 latency and error rate over time — the mean barely moves on a tail spike — and correlate those spikes with load, recent deploys, and downstream health to bound the window. Then distributed traces localize it: I pull traces from the slow tail (which is exactly why tail-based sampling keeps slow traces), diff a slow trace's span breakdown against a fast one to find the responsible hop — a downstream call, lock contention, GC pause, queue wait — and drill into that service's logs joined by trace ID.

Weak: I'd add more logging around the slow area and deploy it, then watch the logs until I catch it happening and see what's slow.

Want questions matched to your role? Paste a job title, job description, or CV and get a personalized set, or go Pro to unlock the full bank.