Solve a hard technical problem
The first sections are free. The sample answer, follow-up questions and quiz are part of Pro.
Episode10 min2 parts
Two hosts talk this question through
One host leads. The other asks what you would ask.
Live practice
Practice this question out loud
Your interviewer asks this question and follows up on the choices you made, the way the real round goes. You answer out loud, in your own words. The 45 minute round ends with a scored report.
- Spoken answers
- Follow-up questions
- Scored report
- 5 or 45 min
Your first one is a free 5-minute drill with feedback.
After it, Pro lets you choose 5 or 45 minutes.
On this page
The question this guide answers
What it tests
How you reason when you don't yet know the answer. The question asks for one problem, what made it hard, and the path from symptom to cause to a fix that held. The interviewer isn't ranking the difficulty of the bug itself; what they can judge from your account is the reasoning: which explanations you formed, how you tested them, which ones you dropped and why, and how you knew you were done. Google's re:Work guide to structured interviewing describes behavioral questions as asking for past achievements that match what the job needs, and notes that interviewers may care less about a correct answer than about the analytical process used to explore and define the problem. Amazon's published Dive Deep principle describes leaders who stay close to the details and grow skeptical when metrics and anecdote disagree, and a debugging story is a natural place to show that habit. Our advice: pick a problem where your first explanation turned out to be wrong. The moment you gave up a theory because the evidence didn't fit is where judgment is visible.
What the interviewer listens for
| What | Why it matters |
|---|---|
Situation | What was broken, who it affected, and the constraints you were under: a production outage with customers waiting is a different story from a flaky test. Without this, the interviewer has no way to tell whether your approach matched the size of the problem. |
Task | Why it landed on you: you were on call, you owned the component, or you were pulled in after others had tried. This also sets up the ownership check, because it says what your responsibility was before anyone else's. |
Action | The diagnosis, told in order. Which explanation you tried first, what you measured or read to test it, what ruled it out, and what you tried next. This is the longest part of the answer, and it's the part a lucky search can't supply. |
Ownership | Hard problems are often solved by several people. Amazon's own interview guide asks candidates to use "I" statements when describing shared work so interviewers can see the candidate's part. Say which hypothesis was yours, which experiment you ran, and what a teammate contributed. |
Decision | At least one real choice: the fix you chose over another, or the decision to keep digging rather than ship a workaround. Say what you knew at the time and why that made the choice reasonable. |
Trade-off | What the chosen fix cost. A root-cause fix usually takes longer than a restart or a pin to an old version; a workaround leaves risk behind. Naming what you gave up shows you saw the alternative instead of taking the first exit. |
Result | Two things: the problem stopped, and you can say how you know. A bug that "seemed to go away" is not a result; a reproduction that failed before the fix and passed after it is. |
Learning | What you'd do sooner next time, or what you changed so the problem is less likely to return: an alert, a test, a note in a runbook. Tech Interview Handbook suggests closing a story with a reflection, and says it reads as a sign of seniority. |
Specifics | One real problem with its real symptoms, tools and dead ends. "I'm good at debugging" is a claim about yourself; a story with a wrong first theory is evidence. |
Numbers | Optional, but useful where a number was part of the diagnosis: how often the failure happened, how long it took, what the error rate was before and after. Don't reach for a figure if the real result was that a problem stopped. |
How to structure the answer
| Part | What to say |
|---|---|
The problem, in plain words | What was broken and who it hurt, in language someone outside your team would follow. Then why it was hard: it couldn't be reproduced, the obvious fixes had failed, the logs were missing, or the pressure was high. One or two sentences; the interviewer needs this to judge everything after it. |
Your job | Why it was yours: on call, the owner of the component, or the person asked to take over after others had tried. One sentence. |
Narrowing it down | The center of the answer. Your first theory and what you did to test it. What ruled it out. The next theory, and the next. Say what evidence turned you, and say plainly where you were wrong. If someone else supplied a clue, say so and then say what you did with it. |
The decision | The fix you chose and the alternative you rejected: a quick workaround against a root-cause fix, pinning an old version against reconfiguring the new one. Say what you gave up and why that was acceptable. |
Proof and prevention | How you confirmed the fix: a reproduction that now passes, a metric that returned to normal and stayed there. Then what you changed so it's less likely to come back, or is caught sooner if it does. |
What you'd do sooner | One lesson you still use: a question you now ask first, a measurement you now take before forming a theory. Keep it to a sentence or two. |
Pitfalls
| Pitfall | Why it hurts |
|---|---|
Picking a problem that sounds hard but was solved by one lucky search. | The question is about your reasoning, and a story whose turning point is a search result or a forum post has none to show. If a search did help, the story still needs the work before it (how you narrowed down what to search for) and the work after it (how you confirmed the answer applied to your case). |
Jumping from symptom to solution without the diagnosis in between. | "The service was timing out, so I fixed the connection pool" skips the part being judged. The interviewer wants to hear how you got from the symptom to the pool: what you measured, what else you suspected, and why the pool won. Without that middle, there's no way to tell your reasoning from a guess that happened to work. |
Burying the story in jargon the interviewer cannot follow. | Your interviewer may not know your stack, and a story they can't follow can't be scored well. Name the components by what they do ("the service that checks inventory") and save precise terms for where they matter. Being able to explain the problem simply is itself a sign you understood it. |
Describing the team's work without saying what you did. | A hard problem often had several people on it, and "we" throughout leaves your own part unknown. Say which theory was yours, which test you ran, and what a teammate found, so the interviewer can credit you for your part without guessing. |
Ending at "and it worked." | Intermittent problems go quiet on their own. Say how you proved the fix: a reproduction that failed before and passes after, or a metric that stayed normal for long enough to matter. That's what separates a fix from a coincidence. |
Spending the time on the fix instead of the search for the cause. | The code change at the end of a hard bug is often small. If most of your answer describes the patch, the interviewer hears about implementation and misses the reasoning that found it. |
Choosing the problem that took longest rather than the one that shows the most reasoning. | A six-month project with many moving parts is hard to tell in a few minutes and hard to judge. A three-day bug with a wrong first theory, a test that disproved it, and a fix you could verify gives the interviewer more to work with. |
The rest of this guide
- A sample answer outlineAn invented answer, part by part, to see the shape.
- Weak against strongThe same moment answered weakly and strongly, and why.
- Follow-up questionsWhat interviewers ask next, and why.
- What changes by levelWhat changes in the answer at each level.
- The 30-second versionThe whole answer said in 30 seconds.
- QuizShort questions to check what stuck.