All jobs / Database administrator / Automation

Database administrator interview question · 3–5 years

What does it take to make a maintenance script safe to run twice, and why insist on it?

The strongest answer

It checks state before acting, so a second run changes nothing new — create if missing, skip completed work, record progress durably — because scripts do get re-run after a timeout or failover

Why it works

Exactly — idempotence is what lets you retry without thinking, which is the whole point at three in the morning.

What a good answer covers

Answers that fall short

Who gets asked this

More Automation questions