SpinTheMic
Pro

Interview practice question

Two primaries after a network glitch

System Design · Databases · Experienced

After a network glitch, your database cluster had two primaries for 10 minutes, and both accepted writes. How do you recover and prevent it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Stop writes to one side immediately.
  • Identify diverged writes on both.
  • Reconcile using logs and business rules.
  • Add quorum-based failover and fencing.
  • Postmortem and tests.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics