All jobs / Database administrator / Migrations
Database administrator interview question · 5+ years
A major engine version upgrade is planned for the platform a dozen applications sit on.
How do you test compatibility before the date?
The strongest answer
Restore a production copy onto the new version, replay a captured workload, compare plans and timings, check deprecated syntax and driver support — and keep the old optimiser behaviour at first
Why it works
Exactly — a real workload replayed against a real copy is the only compatibility test that counts, and separating the optimiser change keeps the rollback simple.
What a good answer covers
- Restore a production copy.
- Replay a real workload.
- Compare plans and timings.
- Separate the optimiser change.
Answers that fall short
- Close, but not the strongest: We restore a copy on the new version and ask each team to run their test suite against it
Good and necessary, but test suites rarely contain the heavy production queries that plan changes hurt most. - Weak: The vendor ships a compatibility checker, so if that passes we are ready to go
Checkers find deprecated syntax; they do not find the query whose plan changes and takes four minutes. - Red flag: Applications should be version-agnostic, so anything that breaks afterwards is the application teams’ problem to fix
Shipping an upgrade and handing the breakage to teams that did not choose it is how platform work loses its credibility.
Who gets asked this
More Migrations questions
- A change freeze is in force and a team needs an urgent index to stop a customer-facing slowdown. How do you…
- A director wants an untested schema change run on the payments database tonight to hit a launch date. How do…
- You are moving a critical on-premises database to a cloud-managed service with minimal downtime. Plan?
- Teams wait weeks for the DBA team to review schema changes. How do you fix the bottleneck without losing…
- Developers describe the DBA team as “the department of no”. What do you change?
- You have to load tens of millions of rows into a table tonight. How?
- A minor security patch for the database engine is out. How do you roll it out?
- A developer sends a schema script to run on production at 17:00 on Friday. Your response?