Recall & Review
beginner
What does the CAP theorem stand for in distributed systems?
CAP stands for Consistency, Availability, and Partition tolerance. It explains the trade-offs in distributed databases.
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.
Click to reveal answer
beginner
What is Availability according to the CAP theorem?
Availability means every request receives a response, without guarantee that it contains the latest write.
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.
Click to reveal answer
intermediate
Why can't a distributed system have all three: Consistency, Availability, and Partition tolerance at the same time?
Because when network failures happen (partition), the system must choose between being consistent or available, but not both.
Click to reveal answer
Which two properties can a distributed system guarantee simultaneously during a network partition?
✗ Incorrect
During a partition, a system can choose to be available and partition tolerant but may lose consistency.
What does Availability guarantee in a distributed system?
✗ Incorrect
Availability means the system responds to every request, even if data might not be the latest.
Partition tolerance means:
✗ Incorrect
Partition tolerance means the system keeps functioning even if parts of the network can't communicate.
If a system chooses Availability over Consistency during a partition, what might happen?
✗ Incorrect
Choosing availability may cause users to see stale or inconsistent data.
Which of these is NOT a property in the CAP theorem?
✗ Incorrect
Performance is important but not part of the CAP theorem properties.
Explain the CAP theorem and its significance in distributed system design.
Think about what happens when parts of a network can't communicate.
You got /3 concepts.
Describe a real-life example where a system might prioritize Availability over Consistency.
Consider apps where users expect quick responses even if data is slightly outdated.
You got /3 concepts.