Skip to interview prep
Apexed

47. A deploy caused errors in production. Do you roll back or fix forward?

MediumDebugging & production

Technical
Show model answer

Default to rolling back (or disabling the feature flag) when it is quick and safe, because restoring service matters more than the fix. Fix forward when rollback is impossible or riskier, for example after an irreversible data migration, and the fix is small and well understood.

Design for this ahead of time: backward-compatible migrations (expand, migrate, contract), feature flags, and small frequent deploys.

A deploy caused errors in production. Do you roll back or fix forward — Software engineering interview question — Apexed