DB Foundations Checkpoint

Derive byte boundaries and distinguish intact records from durable transactions.


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

1. An update has two before bytes and four after bytes. What are total size and checksum start?

Select one answer.

2. A wire commit has nonzero PageID and a correctly recomputed CRC. DecodeLog should:

Select one answer.

3. EncodeLog receives a commit with stale Before/After fields. What is the declared result?

Select one answer.

4. An update image contains 65536 bytes. Why must EncodeLog return nil?

Select one answer.

5. WAL is durable through 25; a cached page has pageLSN 27. Which event permits that page write?

Select one answer.

6. Update 27 and commit 28 are durable, but the committed page was never written. What supports recovery?

Select one answer.

7. T7 last wrote LSN 8; T9 wrote LSN 9. T7 writes LSN 10. Its PrevLSN is:

Select one answer.

8. Both encoder and decoder swap the same fields. Why might a round trip pass?

Select one answer.

Join Discord