1. Home
  2. Database Management Systems
  3. Database Management Systems
  4. Under write-ahead logging (WAL), what must happen before a…

Added 2 Nov 2026

Under write-ahead logging (WAL), what must happen before a modified data page is written to disk?

  1. All locks on that page must be released
  2. Its log records must be flushed to stable storage Correct answer
  3. A database checkpoint must be completed
  4. The transaction must be fully committed first

Correct answer

B. Its log records must be flushed to stable storage

17 views

MCQSEXAM

Explanation

WAL guarantees the log describing a change reaches disk before the change itself. After a crash, the DBMS can then redo committed work and undo uncommitted work, preserving atomicity and durability.

Reference

Asked in: GATE CS, Technical Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Database Management Systems MCQs

Practise all Database Management Systems MCQs

Similar MCQs