All jobs / DevOps / SRE / cloud / Security
DevOps / SRE / cloud interview question · 1–3 years
You have never rotated the database password in production. What do you do before you need to?
The strongest answer
A drill: dual-write or a short dual-accept, a runbook, and a time we actually rotate — I do not wait for a leak to learn the order
Why it works
Exactly. Practice the order. Wiki-only is folklore. Never-rotate is a leak waiting.
What a good answer covers
- Run a drill.
- Dual-accept if you can.
- Write the order.
- Do not wait for the leak.
Answers that fall short
- Close, but not the strongest: Write “rotate quarterly” on a wiki and stop
A sentence is not a drill. - Weak: Rotate it live on Friday with no dual-accept
Friday-without-a-net is how you get a real outage. - Red flag: Never rotate; rotation is how you cause outages
Rotation is how a leak dies; you just have to stage it.
Who gets asked this
More Security questions
- How do you know the image in prod is the image CI built?
- You have 200 services and a human still pastes secrets at provision time. What do you build?
- A squad needs to ship without being able to destroy another squad’s data. What is the shape?
- Engineers still have long-lived cloud keys on laptops. What is the programme?
- What does a good IAM review look like that a good app review does not?
- Security wants a gate that takes 40 minutes on every PR. What do you negotiate?
- What has to already exist for you to answer “which images, and by when”?
- An engineer wants prod data “to reproduce a bug” on their laptop. What is the bar?