Recall & Review
beginner
What does the CAP theorem stand for in distributed systems?
CAP stands for Consistency, Availability, and Partition tolerance. It describes the trade-offs in distributed systems where you can only guarantee two of these three properties at the same time.
Click to reveal answer
beginner
Define Consistency in the context of the CAP theorem.
Consistency means every read receives the most recent write or an error. All nodes see the same data at the same time, like everyone reading the same page in a book.
Click to reveal answer
beginner
What does Availability mean in the CAP theorem?
Availability means every request gets a response, even if some nodes fail. The system is always ready to serve data, like a store that never closes.
Click to reveal answer
beginner
Explain Partition tolerance in simple terms.
Partition tolerance means the system keeps working even if network parts can't talk to each other. Like two teams working separately when the phone line is down.
Click to reveal answer
intermediate
Why can't a distributed system guarantee all three CAP properties at once?
Because when a network split happens (partition), the system must choose between being consistent or available. It can't be both at the same time due to communication limits.
Click to reveal answer
Which two properties can a distributed system guarantee simultaneously according to the CAP theorem?
✗ Incorrect
A system can guarantee Consistency and Partition tolerance or Availability and Partition tolerance but may sacrifice the third property during network partitions.
What happens to Availability during a network partition if the system chooses Consistency?
✗ Incorrect
Choosing Consistency during a partition means some requests may not be served, reducing Availability temporarily.
Partition tolerance means:
✗ Incorrect
Partition tolerance means the system keeps functioning even if parts of the network can't communicate.
Which CAP property ensures all nodes see the same data at the same time?
✗ Incorrect
Consistency ensures all nodes have the same data view simultaneously.
If a system prioritizes Availability and Partition tolerance, what might it sacrifice?
✗ Incorrect
Choosing Availability and Partition tolerance may lead to temporary inconsistencies.
Explain the CAP theorem and its significance in distributed system design.
Think about how a network split affects system behavior.
You got /4 concepts.
Describe scenarios where a system might choose Consistency over Availability, and vice versa.
Consider what matters more: always correct data or always responsive system.
You got /4 concepts.