Primary Database Failover
- Category
- Databases & Storage
- Difficulty
- Staff
- Est. time
- ~15 min
The primary database is failing and a replica must be promoted — but promoting it too aggressively risks stale writes or two nodes accepting writes at once.
Live, operational scenarios. No multiple choice. No free text.
Loading…
34 scenarios
The primary database is failing and a replica must be promoted — but promoting it too aggressively risks stale writes or two nodes accepting writes at once.
A dormant gateway defect, a traffic failover, and a capacity loss combine to overwhelm infrastructure shared by two services — and the usual fix instinct (restart the servers) only looks like it worked.
Sunsetting Orders API v1 breaks a long tail of internal consumers the team's own registry never knew existed.
The shared authentication service is degrading under load, and every dependent service feels the impact.
Automated traffic that looks almost exactly like real customers is rising fast, and a defense blunt enough to stop it will also catch genuine users.
One deep service failure propagates backward through a synchronous call chain, making multiple healthy services look broken at once.
Payment retries and Inventory latency both climb — the shared cause is a Redis connection pool neither service's own metrics point to directly.
A cross-region connectivity problem forces a real tradeoff between consistency and availability — and relaxing the wrong operation category turns healthy-looking availability into a silent correctness incident.
A slow rolling deploy keeps triggering full consumer group rebalances, and the group never stabilizes long enough to drain its backlog.
Inter-region latency has spiked while both regions stay individually healthy, and the candidate must decide which traffic can trade consistency for speed without touching payment authorization.
A deep dependency has slowed down, and misaligned timeouts across four hops are letting blocked connections cascade all the way up to the API.
A coordination service's ownership table has gone stale, causing some work items to be claimed by two workers at once and others to be claimed by none.
Lock leases are expiring while workers are still processing, letting two workers believe they own the same lock at once — and the obvious fix of lengthening the lease only hides the problem.
Acknowledgement failures are causing redelivery, and duplicate order/payment side effects keep accumulating even while throughput looks healthy.
Client and gateway retries against a slow dependency are creating the same order more than once, even while retries look like they are succeeding.
Producers are outpacing the processing layer, and scaling consumers to drain Kafka can quietly overload the database or the external API instead.
One of five parallel downstream calls degrades under a new fan-out, and relieving it safely means knowing which dependency is optional and which mitigation quietly pressures a core one.
A handful of high-volume tenants are overloading one database partition while the rest of the cluster sits idle, and scaling broadly only makes it worse.
The idempotency store itself is degrading, and duplicate (or silently dropped) side effects keep accumulating even while throughput looks healthy.
A hot tenant key concentrates traffic on one Kafka partition, which falls behind even though aggregate consumer capacity looks fine.
Intermittent network latency on one node is triggering repeated, disruptive leader elections — and the obvious 'raise the timeout' fix has its own real cost.
AZ-A's volumes degrade mid-migration, and the migration controller's own retries cascade the overload onto the one AZ that was still healthy.
Both regions keep serving traffic normally during a partition — but ledger writes and profile writes carry very different consistency requirements, and conflating them is the trap.
Worker pods crash-loop on a bad deploy and consumer count hits zero — queue depth grows unbounded until both the deploy and the backlog are fixed.
A routing change broke per-account event ordering, and throughput looking healthy doesn't mean the materialized state is trustworthy.
The high-risk period has ended and the platform is still paying for peak-event resilience it no longer needs — reduce cost to the stated baseline without quietly dropping below the mandatory resilience floor.
A shared dependency is healthy in one region, slow in another, and intermittently failing in a third — all at once — and a uniform global fix is not automatically the right call.
A 5-node consensus group edges toward — and may cross — the threshold for safe quorum, and write availability can look perfectly healthy while writes are being accepted without a real majority.
Write volume keeps outrunning replication throughput, and the backlog keeps growing — protecting consistency, read latency, and ingest throughput all pull in different directions.
A slow dependency triggers Gateway retries that never cancel the original request, so abandoned work piles up across four hops even after any single timeout gets tightened.
A cache node failover leaves the load balancer routing against a stale topology, silently bouncing logged-in users between inconsistent session states.
Both regions may believe they hold write leadership during a network partition — and availability can look perfectly healthy on both sides while writes silently diverge.
One tenant's traffic surge is consuming shared capacity and degrading every other tenant, and scaling the shared fleet alone never restores fairness.
A shared downstream outage is making a subset of customer webhook endpoints unreachable, and uncontained retries against them are degrading delivery to everyone else too.