0
0
HLDsystem_design~10 mins

The CAP theorem in HLD - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the three properties of the CAP theorem.

HLD
The CAP theorem states that a distributed system can guarantee only two of the following three properties: Consistency, Availability, and [1].
Drag options to blanks, or click blank then click option'
APartition tolerance
BPerformance
CScalability
DLatency
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing Partition tolerance with Performance or Scalability.
2fill in blank
medium

Complete the code to describe the trade-off when a network partition occurs.

HLD
When a network partition happens, a system must choose between [1] and Availability.
Drag options to blanks, or click blank then click option'
ALatency
BConsistency
CScalability
DThroughput
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Latency or Throughput instead of Consistency.
3fill in blank
hard

Fix the error in the statement about CAP theorem trade-offs.

HLD
A system that chooses Availability over [1] during a partition may return stale data.
Drag options to blanks, or click blank then click option'
ALatency
BPartition tolerance
CConsistency
DThroughput
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing Partition tolerance with Consistency.
4fill in blank
hard

Fill both blanks to complete the description of CAP theorem guarantees.

HLD
In the presence of a network partition, a distributed system can guarantee either [1] or [2], but not both.
Drag options to blanks, or click blank then click option'
AConsistency
BAvailability
CLatency
DScalability
Attempts:
3 left
💡 Hint
Common Mistakes
Including Latency or Scalability instead of Availability.
5fill in blank
hard

Fill all three blanks to complete the explanation of CAP theorem properties.

HLD
The CAP theorem states that a distributed system can provide [1], [2], and [3] simultaneously only in the absence of network partitions.
Drag options to blanks, or click blank then click option'
AConsistency
BAvailability
CPartition tolerance
DLatency
Attempts:
3 left
💡 Hint
Common Mistakes
Including Latency instead of Partition tolerance.