Your deployment pipeline is green through dev and staging, and fails every time on the production stage. Same commit, same image. How do you debug that?
What they are really testing: They want to see whether you can systematically hunt the difference between environments instead of blaming production, and whether you protect the release train while you do it.
A real interview question
Your deployment pipeline is green through dev and staging, and fails every time on the production stage. Same commit, same image. How do you debug that?
What most people say
drag me
“Production is just different, so I would retry the pipeline a few times and if that fails I would deploy manually from my laptop to get it out.”
Retrying is not a hypothesis, and hand deploying from a laptop destroys the audit trail and hides the very difference you were supposed to find.
The follow-ups they ask next
How would you make staging trustworthy without paying for a full production clone?
Talk about parity on the axes that actually break deploys, identity, network path and secrets shape, rather than parity on size and traffic.
The business wants this shipped tonight. Do you deploy by hand?
Hold the line politely: offer a time box for the real fix, and if you must ship, say you would do it through the pipeline with an override so it stays logged and repeatable.
What the interviewer is listening for
- Confirms production is healthy before diving into the pipeline
- Reasons that identical artefact means the difference is environmental
- Tests one difference at a time from the production runner
- Closes the loop by making staging fail first next time
What sinks the answer
- Retries the job repeatedly with no hypothesis
- Deploys manually from a laptop and loses the audit trail
- Blames production being special and stops there
- Changes several config values at once to see what sticks
If you genuinely do not know
Say this instead of freezing. Reasoning out loud from what you do know beats silence every single time, and a good interviewer is listening for exactly that.
“I have not debugged this exact pipeline, but the reasoning I would use is: same commit and same image means the artefact is fine, so I would list every way production differs and test them one at a time.”
Keep going with troubleshooting
Junior
You get paged at 2am. Checkout latency has gone from 200ms to 4 seconds and it started right after the 11pm deploy. Walk me through what you do.
Junior
It is 3am and you get paged: the primary application server is at 100% disk usage and the app is throwing write errors. You are the only one online. Walk me through exactly what you do.
Junior
You push a new version of a service and within two minutes the pods are all showing CrashLoopBackOff. The team is watching you share your screen. Walk me through exactly what you do.
Junior
A developer pings you: the checkout service cannot reach the payments service, the calls just hang and time out. You have never worked on either service. Walk me through what you do.
Junior
A developer messages you: 'My app suddenly gets Access Denied writing to the S3 bucket. Nothing changed.' It worked yesterday. Walk me through what you do.
Mid
Your load balancer shows 5xx errors jumping from 0.1 percent to 12 percent of requests over ten minutes. There was no deploy. What do you do?
Knowing the answer is not the same as recalling it under pressure
Sign in to send the questions you fumble to spaced recall, so they come back right before you would forget them, and learn the concepts behind them with hands-on labs.
Start free