Cap Theorem easy
What is a 'Split Brain' scenario?
- A A scenario where two different nodes both assume the 'Primary' role because they can no longer communicate with each other.
- B A database partitioning strategy where a single dataset is physically split across two independent localized hardware drives.
- C A condition where a malfunctioning artificial intelligence layer begins to bypass the standard system consensus protocols.
- D A temporary disagreement occurring between a high-speed memory cache and its underlying persistent database backup.
Answer: A. A scenario where two different nodes both assume the 'Primary' role because they can no longer communicate with each other.
In a network partition, if the secondary node fails to see the primary, it might assume the primary has crashed and promote itself. This results in two 'leaders' accepting writes. This is dangerous because it leads to divergent data states. To prevent split-brain risk, CP systems often use 'Quorums' to ensure only one side of a partition (the majority) can remain active.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- The PACELC theorem extends CAP by stating: Even when there is NO partition (E), the system must choose between:
- Why is a CA (Consistent + Available) system generally considered impossible for distributed web applications?
- In CAP, 'Consistency' is equivalent to:
- In the CAP Theorem, what does the 'P' stand for?
- What causes a Network Partition?
- Which system would likely prioritize Consistency over Availability (CP)?