DevOps Interview DropExpert TierScenario+100 XP on read
How do you safely rotate IAM credentials or database secrets without downtime?
#Security#Operations#Database#AWS
Core Summary
The safe pattern is the "dual write" or "overlapping validity" approach: create the new secret, update your services to read both old and new, validate that it works, then stop writing to the old one. The timeline is usually: create new secret (instantly), deploy code that knows both (15 min), monitor (5 min), retire old secret (instantly). If you try to rotate instantly, the first request with the new secret will fail if it is not deployed yet.
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