All jobs / Database administrator / High Availability
Database administrator interview question · 1–3 years
With replication and clustering available, when is log shipping still the right answer?
The strongest answer
For a cheap standby at distance, or a deliberately delayed copy that has not yet applied a bad change — asynchronous with manual failover, fine for recovery but not for seconds of downtime
Why it works
Right — simplicity and the delayed copy are the real reasons, and the price is manual failover and lag.
What a good answer covers
- Cheap, simple, works at distance.
- Delay is a feature, not a fault.
- Failover is manual.
- A DR tool, not an HA tool.
Answers that fall short
- Close, but not the strongest: When the budget or the licence edition does not stretch to clustering and a warm standby is enough
True, and cost is a legitimate reason; mention the delayed copy too, since no synchronous replica gives you that. - Weak: It is obsolete — anything log shipping can do, replication now does better
A standby that has deliberately not yet replayed an accidental delete is precisely what replication does not offer. - Red flag: I would make it the main high-availability mechanism, because it is simple and I have set it up before
Manual failover and unbounded lag make it a recovery tool, not the thing you rely on for uptime.
Who gets asked this
More High Availability questions
- There is a standby but nobody has ever failed over to it. What do you propose?
- A product needs high availability for its main relational database. How do you pick the topology?
- What can go wrong with automatic failover, and how do you guard against it?
- Analysts run heavy ad-hoc queries against the production primary and slow the application. What do you set up?
- The data platform wants a change feed from the database. Physical or logical replication, and why?
- How do you set up quorum and a witness, and why does the vote count matter?
- For SQL Server, when do you choose an availability group over a failover cluster instance, and what does each…
- After a network partition, two nodes both accepted writes for several minutes. What now?