MidTroubleshooting

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

All 336 cloud engineer questions

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