CS FundamentalsHardProduct-company system-design interview

During a network partition between two data centres, a replicated database must either reject some writes or accept writes on both sides that may conflict. Which statement reflects the CAP theorem?

  1. A. A distributed system can provide consistency, availability and partition tolerance all at once
  2. B. Under a partition, the system must choose between consistency (refuse or delay some operations) and availability (answer, possibly with stale or conflicting data)
  3. C. CAP applies only to single-node databases
  4. D. Partition tolerance can be switched off in the cloud

Correct answer: B. Under a partition, the system must choose between consistency (refuse or delay some operations) and availability (answer, possibly with stale or conflicting data)

Partitions cannot be ruled out in real networks, so the real choice during one is C versus A. When there is no partition, systems can offer both; PACELC adds the latency-versus-consistency trade-off.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic