Backend Developer Interview Question

How do you roll out a risky backend change safely?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

Decouple deploy from release with a feature flag, then ramp: internal users, a small percentage, then wider, watching error rate and latency against the control group at each step. Keep the old path intact so rollback is flipping a flag rather than redeploying, make the change backward compatible at the data layer, and set explicit criteria in advance for what makes you stop. Remove the flag once the rollout is complete.

Why interviewers ask this

The interviewer wants evidence you ship changes without drama. They are listening for the deploy versus release distinction, a concrete ramp with metrics as gates, and awareness that database changes need their own expand and contract dance. Mentioning flag cleanup shows you have lived with the mess that accumulates when every rollout leaves a permanent branch in the code.

How to structure your answer

  • Separate deploying code from releasing behavior.
  • Give the ramp stages and the metrics you gate on.
  • Explain backward compatible data changes and instant rollback.
  • Include the cleanup step so flags do not accumulate.

Example answer

Spoken example, first person

The main idea is that deploying and releasing are different events. The code ships dark behind a flag, so the deploy itself is boring, then I turn it on for internal accounts first, then one percent, then ten, then the rest, pausing at each step long enough for the metrics to mean something. What I watch is error rate, latency and the business metric the change touches, compared against the users still on the old path, since a global graph can hide a regression that only affects the treated group. Any schema change follows expand and contract, so both code paths work against the same tables at every moment and I can flip back instantly, which is the entire point: rollback should be a flag change, not a redeploy under pressure. I write down beforehand what would make me stop, because at two in the morning nobody makes that call well. And the flag has an owner and a removal ticket, since a codebase with dozens of stale flags becomes impossible to reason about.

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 works

Follow-up questions to expect

  • How do you handle a flag that changes behavior mid request for a user?
  • What is expand and contract for a column rename?
  • How do you decide the percentage steps and how long to wait?

Related backend 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

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot