All jobs / Database administrator / Migrations
Database administrator interview question · 1–3 years
A developer sends a schema script to run on production at 17:00 on Friday. Your response?
The strongest answer
Review it, run it in a lower environment, check it has a rollback and that someone will be around afterwards — if any of those fail, schedule it for when the team is present
Why it works
Exactly — timing is about who can respond, and review is not optional.
What a good answer covers
- Review and rehearse.
- Insist on a rollback.
- Deploy when people are present.
- Blame is not a process.
Answers that fall short
- Close, but not the strongest: Run it since it has been tested by the developer
The developer testing it is one input; the DBA’s review and a rollback are the others. - Weak: Refuse anything on a Friday as a blanket rule, whatever the change is
A blanket rule with no judgement blocks safe changes and annoys people. - Red flag: Run it without reviewing; it is their responsibility if it breaks
The DBA owns the database; passing blame is not a process.
Who gets asked this
More Migrations questions
- 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?
- A major engine version upgrade is planned for the platform a dozen applications sit on. How do you test…