All jobs / Database administrator / High Availability
Database administrator interview question · 5+ years
Several teams each want their own change-data-capture connector on the same production databases. How do you organise it?
The strongest answer
One managed CDC feed per database into a shared stream that consumers subscribe to, with ownership, schema-change contracts and monitoring of slot or log retention — not a connector per team eating the primary
Why it works
Exactly — capture once, fan out many, and own the retention risk centrally.
What a good answer covers
- Capture once, fan out.
- Own retention centrally.
- Schema-change contracts.
- Connector sprawl fills disks.
Answers that fall short
- Close, but not the strongest: Let each team set up their own connector; it is their data
Each connector holds its own replication slot and log retention; five of them can fill the disk. - Weak: Refuse CDC altogether and offer each team a nightly export instead
Nightly exports lose the freshness that made teams ask for CDC. - Red flag: Point all consumers at a read replica and let them poll tables
Polling replicas is heavier and less accurate than a change feed.
Who gets asked this
More High Availability questions
- 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?
- Analysts run heavy ad-hoc queries against the production primary and slow the application. What do you set up?