0
0
HLDsystem_design~5 mins

The CAP theorem in HLD - 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 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?
AConsistency and Availability
BAvailability and Partition tolerance
CConsistency and Partition tolerance
DAll three at the same time
What happens to Availability during a network partition if the system chooses Consistency?
AAvailability is maintained fully
BAvailability may be lost temporarily
CAvailability improves
DAvailability is unrelated to Consistency
Partition tolerance means:
AThe system always returns the latest data
BThe system stops working during network failures
CThe system continues despite network splits
DThe system is always available
Which CAP property ensures all nodes see the same data at the same time?
ALatency
BPartition tolerance
CAvailability
DConsistency
If a system prioritizes Availability and Partition tolerance, what might it sacrifice?
AConsistency
BLatency
CSecurity
DScalability
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.