Measure before guessing. Establish whether it is slow for everyone or one account, then read a trace to see where the time actually sits: application code, database, or an outbound call. Most often it is the database, so pull the slow query log and run EXPLAIN ANALYZE on the suspect query. In parallel, check what changed, since a deploy, a data volume threshold, or a cache that stopped hitting explains most regressions.
Why interviewers ask this
This is a debugging process question, not a trivia question. The interviewer wants to watch you narrow a search space methodically instead of jumping to a fix, and they want to see whether you ask what changed early. They are also checking whether you can talk about production safely: reproducing, blast radius, and whether you would mitigate first and diagnose after when users are affected.
How to structure your answer
- Start by scoping who and what is affected.
- Use a trace or timings to locate the slow layer.
- Ask what changed: deploy, data growth, dependency.
- Say how you would mitigate while you keep digging.
Example answer
First I want the shape of the problem. Is it every request or the ninety ninth percentile, one tenant or all of them, and when exactly did it start. That timestamp usually solves half the case on its own, because it lines up with a deploy, a migration, or a config change. Then I pull a trace for a slow request and look at the waterfall, since guessing which layer is slow wastes the most time. If it is database, I check the slow query log and run EXPLAIN ANALYZE, and the common answers are a plan flip after the table grew, a missing index on a newly filtered column, or an N plus one that only hurts now that accounts have more rows. If it is an outbound call, I check whether that dependency is degraded and whether we have a timeout at all, because a missing timeout turns their bad day into ours. Meanwhile, if users are hurting, I mitigate first: roll back, add a short cache, or shed the expensive path, then finish the diagnosis without the pressure.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- What if the traces show the time is inside your own application code?
- How would you tell a plan regression from a data growth problem?
- What would you add so this is faster to diagnose next time?
Related full stack developer questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions