All lessons in Software Engineering: Programs, Systems, and Maintainable Software
Debugging Interview: Investigate a Regression
Investigate a failing lending report and present a minimal repair with a regression test.
45 minutes · Members lesson · preview
What you will learn
- Investigate a regression by separating stored-data and query hypotheses.
- Produce a minimal repair and a regression test under a time limit.
- Communicate causal evidence without overstating the scope of the fix.
The interviewer gives you a lending report that counts one active loan as three. The team recently added title categories, but no one knows whether the problem is in insertion, return handling, or reporting. Your task is to investigate, repair, and explain the defect in a forty-five-minute practice session.
Do not immediately rewrite the query. First establish the expected output and inspect a fixture small enough to reason about. A debugging interview assesses how you reduce uncertainty as well as whether you recognize a familiar SQL mistake.