Data-Driven Debugging
Tell debugging stories that follow evidence: stop the damage, measure, form a hypothesis, prove the cause, and leave better monitoring behind.
Overview
Debugging questions test whether you find causes with evidence or with guesses. Almost everyone has fixed a hard bug. What the interviewer scores is the path: did you look at data before changing things, did you test an idea before trusting it, and did you prove the cause rather than stop at the first thing that looked plausible?
A useful model is the one Google's SRE book describes for troubleshooting. You observe the system, form a hypothesis about the cause, and test it; if the test fails, you form the next one. The same book puts one step first: stop the bleeding. Users come before root cause.
Good stories also use the right data. Modern systems give you three main signals: metrics (numbers measured over time, such as error rate or latency), logs (a record of one event) and traces (the path of one request through many services). Naming which one told you what is a strong signal of real experience.
The example stories on this page are fiction. They show the shape of a strong answer; use your own incident.
Evidence-driven debugging
Put together, the method is a loop. Each hypothesis is tested against data, and a failed test sends you back with one fewer suspect.
- An alert or a user report tells you something is wrong.
- Stop the bleeding first: roll back, fail over or limit the damage.
- Examine the metrics, logs and traces.
- Form a hypothesis about the cause.
- Test it. If the test rules it out, go back to step 4 with the next hypothesis.
- When a test confirms it, fix the cause and verify the fix with the same metric that showed the problem.
- Add an alert, a test or a runbook so it is caught sooner next time.
Interview questions
- Walk me through how you debugged a difficult production issue.
- What observability data do you rely on, and when?
- Tell me about a time the root cause was not what everyone expected.
- What do you do after the bug is fixed?
Sign up free to read the full topic
More Behavioral topics
- Building Psychological Safety
- Building Something from Scratch
- Building Trust with Skeptics
- Conflict Resolution
- Cross-Team Collaboration
- Customer Obsession
- Debugging Distributed Systems
- Decisions with Incomplete Information
- Delivering Under Tight Deadlines
- Disagree and Commit
- Disagreeing with Senior Engineers
- Disagreement with Your Manager
Start free on Cariara · Coding problems · System design studio