Cap Theorem easy
What causes a Network Partition?
- A A logic error in the SQL syntax of a complex database query that causes the transaction to be rolled back.
- B A localized user authentication failure occurring because an individual has forgotten their required security credentials.
- C A communication failure, such as a cut fiber-optic cable or router crash, that prevents nodes from exchanging messages.
- D The physical corruption of a solid-state drive (SSD) that leads to the unrecoverable loss of a specific data shard.
Answer: C. A communication failure, such as a cut fiber-optic cable or router crash, that prevents nodes from exchanging messages.
A network partition effectively splits a distributed cluster into two or more isolated 'islands'. While nodes within each island can still communicate with each other, they cannot reach nodes in other islands. This state is what forces the choice between Consistency (ensuring all islands agree) and Availability (allowing each island to serve its local clients independently).
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- What is a 'Split Brain' scenario?
- 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?
- Which system would likely prioritize Consistency over Availability (CP)?