All jobs / Database administrator / Migrations
Database administrator interview question · 1–3 years
A minor security patch for the database engine is out. How do you roll it out?
The strongest answer
Read the release notes, apply it to a test environment, then patch replicas first and fail over or patch the primary in a window, with a rollback path and monitoring afterwards
Why it works
Exactly — notes, test, replicas first, then the primary with a way back.
What a good answer covers
- Read the notes, test first.
- Replicas before primary.
- Have a rollback path.
- Internal is not safe.
Answers that fall short
- Close, but not the strongest: Apply it directly to production in the maintenance window; minor patches are safe
Minor patches have broken replication and drivers before; test first. - Weak: Wait a year until it is well proven
A year of exposure to a known vulnerability is not caution. - Red flag: Skip it — the database is not exposed to the internet
Attackers inside the network are the common case.
Who gets asked this
More Migrations questions
- A developer sends a schema script to run on production at 17:00 on Friday. Your response?
- How do you prove the data actually arrived intact?
- A migration adds a NOT NULL column with a default to a table with hundreds of millions of rows. Concern?
- You need a new index on a busy table. How do you build it?
- How do you rename a heavily used column without downtime?
- A backfill must touch every row of a large live table. How do you run it?
- How do you plan a major version upgrade of a production database?
- How do you upgrade a major database version across a large fleet with near-zero downtime?