All jobs / Database administrator / Automation
Database administrator interview question · 1–3 years
The nightly maintenance job has not run for three weeks. Nobody noticed, because the dashboard only shows failures.
What do you change?
The strongest answer
Alert on the absence of a success, not only on errors — a heartbeat with an expected completion time, so a job that never starts also alerts — and send outcomes where people look
Why it works
Exactly — silence is the failure mode here, and only a positive, time-bounded success signal catches a job that never ran.
What a good answer covers
- Alert on missing success.
- Give every job an expected time.
- Silence must page, not reassure.
- Send outcomes where people look.
Answers that fall short
- Close, but not the strongest: I would add an alert on job failure and review the job history every week
Failure alerts existed and did not fire: nothing failed, because nothing ran. - Weak: I would have the job send an email every night so we can see that it ran
A nightly email becomes noise within a fortnight, and nobody notices the one that stops arriving. - Red flag: I would re-enable it and add a line to the on-call checklist to check it each morning
A daily human check is the control that already failed, and it does not scale past a handful of jobs.
Who gets asked this
More Automation questions
- 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…
- You inherit a fleet where each DBA keeps their own scripts on their own jump box, and the checks differ from…
- 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?