A feature flag change took down production even though no code was deployed. How do you handle it and prevent it?
IntermediateScenarioDeployments and releases
Answer
Situation read → A flag flip is a production change. If it bypasses review, monitoring and rollout steps, it's an unreviewed deploy.
What I'd do →
- Revert the flag immediately; that's the fastest rollback you'll ever have.
- Check the flag service audit log for who changed what and when.
- Find why the code path was broken: never tested with the flag on, or tested only on a small cohort.
- Prevent: require approval for prod flag changes, roll flags out by percentage (1% → 10% → 50%), and send flag changes to the same channel and Grafana annotations as deploys.
- Clean up stale flags; old flags are untested code paths waiting to bite.
Why → Most "nothing changed" incidents are config or flag changes that weren't tracked as changes.
Interview tip → Say "every change is a deploy, including config and flags".
More on Deployments and releases
A deploy went out and p99 latency doubled. Walk me through it.IntermediateYou deployed a new version and half the pods are in CrashLoopBackOff. What do you do?BeginnerA release passed every test in staging but broke in production. How do you investigate?IntermediateHow would you design a zero-downtime deployment for a stateless API on Kubernetes?BeginnerEvery deploy causes a short spike of 502 errors from the ALB. Why, and how do you fix it?IntermediateHow would you set up a canary release, and what decides whether it gets promoted?Intermediate