DevOps Interview DropIntermediate TierScenario+25 XP on read

A bad feature was merged into production. How would you undo it?

Core Summary

Roll back the running deployment first, that's faster than any Git fix, then fix Git properly. Reverting a merge needs git revert -m 1 <merge-commit>, and the catch nobody mentions upfront is that you have to revert the revert later or the feature will never merge back in.

Hints

Hint 1: Users first: rolling back the deploy is faster than a Git fix

Hint 2: A merge commit has two parents, so revert needs to know which to keep

Hint 3: Re-landing reverted work needs one extra step

Reported in interviews at Amazon, Shopify