All jobs / Database administrator / Automation
Database administrator interview question · 5+ years
You inherit a fleet where each DBA keeps their own scripts on their own jump box, and the checks differ from server to server.
How do you turn that into an automation strategy?
The strongest answer
Scripts into version control with review, a standard set of jobs every server gets, deployed from one place against an inventory, compliance reported centrally, exceptions dated — then the personal copies go
Why it works
Exactly — the value is in one defined standard and a report naming the servers that are not on it, not in the scripts themselves.
What a good answer covers
- Scripts in version control, reviewed.
- One standard set per server.
- Deploy from one place.
- Report compliance; date exceptions.
Answers that fall short
- Close, but not the strongest: I would collect everyone’s scripts into a shared repository and agree a common set between us
That is the first step; without an inventory and a compliance report the shared repository drifts apart again within a quarter. - Weak: I would buy a management tool and let it standardise the estate for us
A tool still needs the standard defined and the exceptions owned, or you have the same mess under a licence. - Red flag: It works today, so I would leave it alone and spend the time on more visible problems
It works until an author leaves or a server quietly stops being maintained, and nobody can say which servers those are.
Who gets asked this
More Automation questions
- You are writing a small shell script that takes a backup on a Linux database server. What must it do besides…
- What do you put into a SQL script before it is allowed to run against production?
- The nightly maintenance job has not run for three weeks. Nobody noticed, because the dashboard only shows…
- What does it take to make a maintenance script safe to run twice, and why insist on it?
- How do your maintenance and backup jobs authenticate to the databases, without a password sitting in a script?
- Two hundred database servers need the same configuration change, and you are writing a PowerShell script to…