A bug you wrote is in production. What are your next steps?
Tests ownership, communication, and process under pressure. A great answer prioritizes triage and clear communication with the team/PO before jumping to a fix, then follows up with a retro.
What's really being asked
This isn't a test of your debugging skills. It's a test of your maturity as a senior engineer. The interviewer is evaluating your sense of ownership, your communication discipline under pressure, and your ability to navigate a team process for incident response. They want to see if you can balance the technical urgency of a fix with the business need for clear information and prioritization.
The full answer
A great answer follows a clear, logical sequence. First, acknowledge and own the issue without defensiveness. Second, immediately triage the bug: reproduce it, check logs and metrics to quantify the blast radius (e.g., 1% of users, only on mobile) and severity (e.g., cosmetic UI vs. data loss). Third, communicate your initial findings clearly and concisely in the designated team channel, tagging the Product Owner and team lead. Propose a severity level. Fourth, collaborate with the PO and team on the right course of action—a hotfix, a rollback, or a scheduled fix. Fifth, execute the plan, ensuring the fix is reviewed and verified in production. Finally, ensure the issue is discussed in a blameless retro to identify process or testing improvements.
The mistakes people make
The most common red flag is the 'Lone Hero' who says, "I'd immediately start coding a fix." This response completely bypasses triage, communication, and team collaboration, creating information blackouts. Another major red flag is defensiveness or blame, such as, "The spec was ambiguous," or "QA should have caught this." Also, watch out for process extremes: the 'Process Robot' who just creates a low-priority ticket and moves on, or the 'Panicker' who declares an all-hands emergency for a minor visual bug.
What usually comes next
Expect questions that test your prioritization skills, such as, "What if the Product Owner disagrees with your severity assessment?" or "How does your response change if it's a critical data corruption bug versus a minor UI glitch?" Another common follow-up is, "What specific steps would you take to prevent this entire class of bug from happening again?" which tests your commitment to long-term solutions over short-term fixes.
A concrete example
"If a bug in my code was causing a 5% checkout failure rate, my first step is to confirm the impact in our monitoring tools. I'd then post in our #prod-incidents channel: 'Investigating checkout failures, initial impact ~5% of users, P2 severity. Will update in 15 mins.' I'd tag the PO and my EM. With the PO, I'd confirm priority. Given the revenue impact, this is likely a hotfix. I'd aim to have a fix deployed and verified within 1-2 hours, keeping the channel updated at key milestones: fix identified, PR up, deploying, and verified."
Interview question
When you discover a production bug in code you wrote, what is the most appropriate immediate next step?
- a.Immediately revert the last deployment to minimize user impact.
- b.Notify your manager and the QA team, then create a detailed bug report.
- c.Start debugging and implement a fix to deploy urgently.
- d.Assess the bug's impact and communicate initial findings to the team and Product Owner.Correct
Why? this is the answer
The card emphasizes that the immediate priority is to triage the bug's impact and communicate findings to stakeholders before attempting a fix or taking drastic action. Starting to code a fix (C) is a 'Lone Hero' anti-pattern that bypasses critical communication and impact assessment, which are essential for effective incident response.
Just read this? Test yourself on what you have been reading.
- #agile
- #incident response
- #communication
- #ownership
- #scrum
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on agile — each one lists the topics its interview covers.
See open roles