0
0
DBMS Theoryknowledge~5 mins

CAP theorem in DBMS Theory - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AConsistency and Partition tolerance
BAll three: Consistency, Availability, and Partition tolerance
CConsistency and Availability
DAvailability and Partition tolerance
What does Availability guarantee in a distributed system?
AEvery request gets a response
BAll nodes have the latest data
CSystem never experiences network failures
DData is always consistent across nodes
Partition tolerance means:
ASystem stops working during network failures
BSystem continues working despite network splits
CSystem always returns consistent data
DSystem is always available
If a system chooses Availability over Consistency during a partition, what might happen?
AUsers see outdated or different data
BSystem stops responding
CData is always synchronized
DNetwork partition is fixed automatically
Which of these is NOT a property in the CAP theorem?
AConsistency
BAvailability
CPerformance
DPartition tolerance
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.