All jobs / Database administrator / High Availability
Database administrator interview question · 3–5 years
What can go wrong with automatic failover, and how do you guard against it?
The strongest answer
Split brain when the old primary keeps taking writes, flapping on network blips, and data loss if the standby was behind — so I need quorum or a witness, fencing, and sensible detection thresholds
Why it works
Exactly — split brain, flapping and lag are the three, and fencing plus quorum are the defence.
What a good answer covers
- Fence the old primary.
- Quorum or a witness decides.
- Tune detection against flapping.
- Know the standby’s lag at failover.
Answers that fall short
- Close, but not the strongest: Failover can trigger too often, so I would set a long timeout
Thresholds matter, but a long timeout alone leaves split brain wide open. - Weak: Not much; that is the point of automation
Automation without fencing is how two primaries happen. - Red flag: The main risk is that it works and nobody notices, so I would disable it and fail over manually
Manual failover at three in the morning is slower and no less risky.
Who gets asked this
More High Availability questions
- 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?
- 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?