Questions: Checkpointing: Sharp and Fuzzy Checkpoints

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

After a fuzzy checkpoint, the database crashes. A junior engineer suggests replaying the log only from the checkpoint record's position, since 'the checkpoint marks a known good state.' What is wrong with this?

ANothing — this is exactly what recovery should do after any kind of checkpoint
BFuzzy checkpoints flush pages in the background while transactions continue modifying other pages, so the on-disk state at checkpoint time is not internally consistent — recovery must consult the checkpoint's dirty page table and active transaction list to find the true minimum recovery LSN
CThe checkpoint record position is not stored in the log, so recovery cannot locate it
DFuzzy checkpoints only apply to read-only transactions, so this procedure would miss updates from write transactions
Question 2 Multiple Choice

A developer argues: 'Checkpoints are only an optimization for recovery speed — they're not strictly necessary if we're willing to accept slow recovery after a crash.' What critical function does this miss?

ACheckpoints are required for concurrency control — without them, transactions cannot acquire locks
BWithout checkpoints, the write-ahead log must retain every record ever written, because the system can never know which old records might be needed, causing the log to grow without bound
CWithout checkpoints, the buffer pool cannot evict dirty pages to disk
DCheckpoints are required to enforce isolation levels above READ UNCOMMITTED
Question 3 True / False

A fuzzy checkpoint guarantees that most dirty pages in the buffer pool have been written to disk by the time the checkpoint record appears in the log.

TTrue
FFalse
Question 4 True / False

The minimum recovery LSN maintained by a database system determines the oldest log record that must be retained for crash recovery.

TTrue
FFalse
Question 5 Short Answer

What information does a fuzzy checkpoint record contain, and why does crash recovery need each piece?

Think about your answer, then reveal below.