Build fluency in the vocabulary of the fundamental trade-off between consistency and availability during a network partition.
0 / 5 completed
1 / 5
A teammate explains that during a network partition, a distributed database must choose between always answering reads and writes or always returning the most recent write, but cannot guarantee both while the partition persists. What theorem describes this fundamental trade-off?
The CAP theorem is exactly this: it states that during a network partition, a distributed system can guarantee either consistency, meaning every read returns the most recent write, or availability, meaning every request gets a response, but not both at the same time. A hash collision is an unrelated hash-table concept about two keys sharing a bucket. This consistency-versus-availability trade-off is exactly why distributed databases are labeled CP or AP depending on which guarantee they preserve during partitions.
2 / 5
During a design review, the team picks an AP database for a shopping cart service, specifically so the service keeps accepting reads and writes even during a network partition, accepting that some replicas may briefly serve stale cart contents. Which capability does this provide?
This provides continued availability during a partition, since the system keeps responding to requests even though some replicas may temporarily diverge and serve stale data until the partition heals and they resynchronize. A CP database would instead refuse some requests during the partition to guarantee every read reflects the latest write. This favor-availability-over-freshness trade-off is exactly why AP databases are chosen for shopping carts, where staying responsive matters more than perfectly current state.
3 / 5
In a code review, a dev notices a service is deployed with a CP database configuration for a use case that tolerates brief staleness but cannot tolerate any downtime during a partition, such as a checkout button that must always respond. What does this represent?
This is a CAP-theorem mismatch, since choosing consistency over availability means the checkout button can become unresponsive during a partition, which this use case cannot tolerate. A cache eviction policy is an unrelated concept about discarded cache entries. This consistency-over-availability mismatch is exactly the kind of misconfiguration a reviewer flags once uptime during partitions is confirmed to matter more than guaranteed freshness.
4 / 5
An incident report shows a checkout service became fully unresponsive during a brief network partition because its CP database refused to serve any request rather than risk returning stale data. What practice would prevent this?
Choosing an AP database configuration for the checkout service ensures requests keep being served during a partition even at the cost of occasional staleness. Continuing to run the CP database configuration regardless of how much downtime a partition causes for the checkout service is exactly what caused the outage described in this incident. This favor-availability approach is the standard fix once uptime during partitions is confirmed to matter more than guaranteed consistency for this use case.
5 / 5
During a PR review, a teammate asks why the team reaches for the CAP theorem's framing instead of just picking whichever database is fastest in benchmarks, given that raw throughput numbers are easier to compare. What is the reasoning?
The CAP theorem forces an explicit choice about what happens during a partition, which benchmark throughput numbers never capture, while picking purely on speed ignores whether the system stays correct or available when the network actually fails. This is exactly why architects reason from the CAP theorem when choosing a distributed database, while raw benchmark numbers remain useful only for comparing performance within an already-chosen consistency model.
CRDT Vocabulary— useful for Distributed systems consistency & consensus (Solution Architect)
Frequently Asked Questions
What does the "CAP Theorem Vocabulary" vocabulary exercise cover?
This exercise tests real IT vocabulary related to cap theorem vocabulary through 5 multiple-choice questions, each built from realistic workplace sentences rather than abstract definitions.
Is this vocabulary exercise free to use?
Yes. Every exercise on CoderSlingo, including this one, is completely free — no account, sign-up, or payment required.
How many questions does this exercise have?
This exercise has 5 questions. Each one shows a real-world sentence or scenario with multiple-choice options and an explanation once you answer.
What happens after I answer a question?
You'll see immediate feedback showing whether your answer was correct, along with a short explanation of why — then a button to move to the next question, and a full results screen at the end.
Can I retry the exercise if I get questions wrong?
Yes. Once you reach the results screen, click "Try again" to reset your answers and go through the exercise from the start as many times as you like.
Do I need to create an account to take this exercise?
No account is needed. Your answers are scored in your browser during the session — nothing is saved to a server, so you can jump straight in.
Is my progress saved if I leave the page?
No — progress within an exercise resets if you navigate away or reload. Each exercise is short enough to complete in a few minutes in one sitting.
Are these vocabulary exercises connected to other topics?
Yes — this module shares real-world context with 9 other vocabulary modules. See "Related vocabulary" below to keep building a connected skill set.
How is this different from reading a glossary or blog article?
Exercises like this one are active recall drills — you have to choose the correct term or phrasing yourself, which builds retention faster than passively reading a definition.
Where can I find more vocabulary exercises?
Browse the full Vocabulary exercises hub for hundreds of modules covering Agile, DevOps, security, databases, architecture, and more — organised by IT role and skill.