Interview practice question
Rotating database credentials without downtime
Backend Engineering · Auth and Security · Intermediate
How would you rotate a database password used by a running service without downtime?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Support two valid credentials during rotation.
- Create new user/password.
- Update secret in manager; app reloads.
- Verify, then revoke old.
- Automate (Secrets Manager rotation, Vault dynamic creds).
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.