DevOps Interview DropExpert TierScenario+100 XP on read
How do you safely rotate IAM credentials or database secrets without downtime?
Core Summary
The safe pattern is overlapping validity. Create the new secret while the old one still works, get code that accepts either one deployed everywhere, confirm the new one is actually being used, then revoke the old one. Rotating in a single step guarantees a window where something is still holding a credential that no longer works.
Hints
Hint 1: Dual write: create new, make code accept both, remove old
Hint 2: Never rotate instantly; always overlap validity
Hint 3: Blue-green or canary deploy reduces risk
Reported in interviews at Amazon, Google, AWS Security Workshops