FlashcardsRecall, then flip

Print · CAP theorem

Back to study

12 cards · 2 sheets · 4 pages.

Print double-sided, flipping on the long edge, at 100% scale with no margins added by the browser. Answer columns are already mirrored, so each answer lands on the back of its own question. Cut along the dashed lines. The last sheet has 4 blank cells, since this deck is not a multiple of eight.

Preview

CAP theorem flashcards — questions (cards 1-8)Print double-sided, flip on long edge, cut along dashed lines
CARD 1 · QUESTION

What do the three letters in CAP stand for?

CARD 2 · QUESTION

CAP theorem in one sentence?

CARD 3 · QUESTION

Define consistency (in CAP terms).

CARD 4 · QUESTION

Define availability (in CAP terms).

CARD 5 · QUESTION

Define partition tolerance.

CARD 6 · QUESTION

Why is 'CA' not a real choice for distributed systems?

CARD 7 · QUESTION

Name some CP systems.

CARD 8 · QUESTION

Name some AP systems.

CAP theorem flashcards — answers (cards 1-8)Columns mirrored so answers align with question backs
CARD 2 · ANSWER

During a network partition, a distributed system must choose between consistency and availability — it can't have both.

CARD 1 · ANSWER

Consistency, Availability, Partition tolerance. A distributed system can only guarantee two of the three at once.

CARD 4 · ANSWER

Every request to a non-failing node gets a non-error response — though the data may be stale.

CARD 3 · ANSWER

Every read receives the most recent write or an error. All nodes appear to hold one up-to-date value (linearizability).

CARD 6 · ANSWER

Network partitions are unavoidable in any real network, so P is mandatory. The actual trade-off is only C vs A during a partition.

CARD 5 · ANSWER

The system keeps operating even when network failures split nodes into groups that can't communicate.

CARD 8 · ANSWER

Cassandra, DynamoDB (default reads), CouchDB, DNS. They stay responsive and reconcile conflicts later (eventual consistency).

CARD 7 · ANSWER

ZooKeeper, etcd, HBase, MongoDB (default config), Google Spanner. They refuse or delay requests rather than serve stale data.

CAP theorem flashcards — questions (cards 9-12)Print double-sided, flip on long edge, cut along dashed lines
CARD 9 · QUESTION

What is PACELC?

CARD 10 · QUESTION

When should you choose CP in a system design interview?

CARD 11 · QUESTION

When should you choose AP?

CARD 12 · QUESTION

How does CAP consistency differ from ACID consistency?

CAP theorem flashcards — answers (cards 9-12)Columns mirrored so answers align with question backs
CARD 10 · ANSWER

When stale or conflicting data causes real harm: ticket booking, inventory, payments, auction bids, distributed locks, leader election.

CARD 9 · ANSWER

If Partition: choose Availability or Consistency. Else (normal operation): choose Latency or Consistency. It covers the trade-off even when the network is healthy.

CARD 12 · ANSWER

CAP consistency = linearizable reads across nodes. ACID consistency = database invariants and constraints hold after a transaction. Different concepts sharing a letter.

CARD 11 · ANSWER

When stale reads are harmless: feeds, like counts, view counters, profiles, analytics. Most systems default to availability.