Storage & Durability Checkpoint

Trace durable histories, distinguish stored markers from visible values, and diagnose unsafe reclamation. Select one answer per multiple-choice question; enter only the requested integer for numeric answers.


Get every question correct to pass this checkpoint. You can review feedback, revise your answers, and submit again.

1. Replay this complete durable prefix: set p=1, set q=2, delete p, delete r, set p=3, delete q. How many keys remain? Enter one integer.
2. A delete record is durably persisted, then the process crashes before applying it to memory or acknowledging it. The prior persisted value was k=old. What does replay of this complete durable prefix produce for k?

Select one answer.

3. LSMGet sees memtable entries k@2=old and k@11=delete, plus an SSTable holding k@7=value. gcBefore is 20. What is returned?

Select one answer.

4. With no memtable match, table 0 has k@2=old and table 1 has k@9=delete. Both Bloom flags are positive. Which read behavior also agrees with full-coverage timestamp-based compaction?

Select one answer.

5. MultiWayCompaction has full coverage: run 0 contains k@12=delete and run 1 contains k@4=old. The safe cutoff is 13. What is stored for k?

Select one answer.

6. With full coverage and cutoff 8, winning versions are a@8=delete, b@7=delete, and c@1=value. How many entries are in MultiWayCompaction output? Enter one integer.
7. At timestamp 14, run 0 has k=renewed and run 1 has a tombstone for k. MultiWayCompaction uses cutoff 20. Which result follows?

Select one answer.

8. An engineer applies the full-coverage compaction rule to two chosen runs but leaves an older overlapping table outside them. Why is dropping a winning old marker unjustified?

Select one answer.

Join Discord