Chapter 5 checkpoint

NoSQL and storage engines

Every question from this chapter’s lessons, grouped by the lesson that teaches it. Answer each one right to finish; you can try again whenever you like.

0 of 17 answered right

5.1 NoSQL data models and access patterns

0 of 4 answered right
Open the lesson
Question 1
Match each NoSQL data model to the job the lesson says it suits.

Question 2
How does designing tables for Cassandra differ from relational normalization?

Question 3
What does BASE stand for?

Question 4
Which of these does the primer list as data that suits a NoSQL store?

5.2 Storage engines: B-trees versus LSM-trees

0 of 4 answered right
Open the lesson
Question 5
Why do write-heavy stores such as Cassandra and RocksDB use LSM-trees rather than B-trees?

Question 6
What does a Bloom filter do for an LSM-tree read?

Question 7
A B-tree changes a 50-byte record by writing back its whole 8 KiB (8,192-byte) page. Ignoring the WAL record, what is the write amplification for that change?
×

Answers within 2% count.

Question 8
Put the steps of an LSM-tree write in order.
  1. 1
    Acknowledge the write to the client
  2. 2
    Append the write to the write-ahead log
  3. 3
    Flush the full memtable to an immutable SSTable
  4. 4
    Compact SSTables into fewer sorted runs
  5. 5
    Insert it into the in-memory memtable

5.3 Tunable consistency and quorums

0 of 5 answered right
Open the lesson
Question 9
A store keeps N=5N = 5 replicas and reads with R=2R = 2. What is the smallest write quorum WW that makes every read overlap every write?
replicas

Answers within 1% count.

Question 10
A Cassandra table has a replication factor of 5. How many replicas must answer a read at consistency level QUORUM?
replicas

Answers within 1% count.

Question 11
With N=3N = 3 replicas, match each setting to what it gives you.

Question 12
Match each repair mechanism to how it works.

Question 13
Two clients update the same Cassandra cell a moment apart, and the earlier update ends up as the stored value. What is the likely cause?

5.4 Partition keys, skew and polyglot persistence

0 of 4 answered right
Open the lesson
Question 14
An IoT service stores readings in Cassandra with the reading’s date, such as 2026-11-13, as the only partition key. What happens under heavy ingestion?

Question 15
You spread a hot daily partition over 200 partitions with a suffix, and you also need to read single orders by id. Which suffix should you use?

Question 16
A service writes each order to PostgreSQL and then to a search index from application code. Why does the lesson recommend change data capture instead?

Question 17
In a polyglot design, match each kind of data to the store the lesson pairs it with.