All jobs / Database administrator / High Availability
Database administrator interview question · 5+ years
The failover tool promoted the standby, but the old primary never lost its clients and kept committing.
After a network partition, two nodes both accepted writes for several minutes. What now?
The strongest answer
Freeze both, capture the divergent transactions from the logs, involve the product owners in reconciling conflicting rows, rebuild the losing node from the winner, and then fix the fencing that allowed two primaries
Why it works
Exactly — reconciliation is a business decision informed by the logs, and the root cause is missing fencing.
What a good answer covers
- Freeze and capture both histories.
- Reconcile with the owners.
- Rebuild the loser.
- Fix the fencing.
Answers that fall short
- Close, but not the strongest: Pick the node with more recent data and discard the other
Discarding writes blindly loses real customer actions on the other node. - Weak: Re-enable replication and let it sort itself out
Replication cannot merge divergent histories; it will fail or overwrite. - Red flag: Restore both from last night’s backup so they match
That loses a day of writes on both nodes to avoid reconciling a few minutes.
Who gets asked this
More High Availability questions
- Several teams each want their own change-data-capture connector on the same production databases. How do you…
- What is a read replica for, and what is it not?
- Synchronous versus asynchronous replication — how do you choose?
- Finance says the end-of-day report, which reads from a replica, is missing the last few minutes of orders…
- With replication and clustering available, when is log shipping still the right answer?
- 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?