All jobs / Database administrator / High Availability
Database administrator interview question · 3–5 years
A product needs high availability for its main relational database. How do you pick the topology?
The strongest answer
Start from RPO, RTO and the failure modes we must survive — node, zone, region — then choose the simplest topology that meets them, often a synchronous standby with automated failover, and rehearse it
Why it works
Exactly — requirements first, then the least complex design that satisfies them, proven by drills.
What a good answer covers
- Targets and failure modes first.
- Simplest topology that meets them.
- Automate and rehearse failover.
- Multi-primary is not a default.
Answers that fall short
- Close, but not the strongest: Use the vendor’s clustering product; it is designed for this
The product is a tool; without stated targets you cannot know if it is the right one. - Weak: Add several read replicas so there is always somewhere to fail over to
Replicas alone give no failover coordination and may lag past the RPO. - Red flag: Run two active primaries so either can take writes
Multi-primary on a relational engine invites conflicts and split writes; it is rarely what a product needs.
Who gets asked this
More High Availability questions
- 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?
- 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?