All jobs / DevOps / SRE / cloud / CI/CD
DevOps / SRE / cloud interview question · 3–5 years
Blue/green is easy for stateless pods. What do you say about the database?
The strongest answer
The data plane is shared or carefully expanded — two writers is a different product, and I will not draw two databases and call it blue/green without a story
Why it works
Exactly. Stateless switch ≠ two data worlds. Say the shared-store story.
What a good answer covers
- Name the data plane.
- Prefer expand/contract on one store.
- Do not dual-write casually.
- Do not failover the DB to match a colour.
Answers that fall short
- Close, but not the strongest: We always duplicate the database and two-way sync for every deploy
Two-way sync every deploy is a research project. - Weak: We ignore state; green will pick it up
Ignoring state is how you split-brain. - Red flag: We fail over the DB on every app deploy so colours stay honest
DB failover-as-deploy is an outage habit.
Who gets asked this
More CI/CD questions
- A canary looks “fine” on CPU. Users on the canary cannot check out. What was wrong?
- Who aborts a canary, and on what?
- Squads go around your CI templates. What is the diagnosis?
- CI is a queue of 90-minute jobs. What do you change at company scale?
- When is a deploy freeze a grown-up tool, not folklore?
- Backend engineers will keep owning their services. What do you still own as platform?
- When do you say no to continuous deploy for a given path?
- When is GitOps the production door, and when is it theatre?