CS FundamentalsModerateGATE CS · DBMS

Under the write-ahead logging (WAL) rule, which ordering must hold?

  1. A. Log records are written only at checkpoints
  2. B. An update's log record reaches stable storage before the modified data page, and all of a transaction's log records reach it before its commit completes
  3. C. Only the commit record must be flushed; update records may be written later
  4. D. The data page must reach disk before its log record

Correct answer: B. An update's log record reaches stable storage before the modified data page, and all of a transaction's log records reach it before its commit completes

The first half guarantees undo information exists for any change on disk; the second guarantees redo information exists for every committed transaction.

More DBMS and SQL questions

Exams that ask this topic