Topic: Database Management Systems
The WAL protocol in DBMS ensures that:
- A. Data pages must be written to disk before writing checkpoint markers.
- B. A data block modified in the buffer pool cannot be written to disk until the corresponding log record is flushed to non-volatile storage.
- C. Transaction commit requires all data pages to be forced to disk immediately.
- D. All log records for a transaction must be written to disk only after the transaction commits.
Answer: B. A data block modified in the buffer pool cannot be written to disk until the corresponding log record is flushed to non-volatile storage.
Explanation: Write-Ahead Logging (WAL) is a standard protocol in database systems ensuring atomicity and durability. It dictates that all modifications must be written to a log on stable (non-volatile) storage before the corresponding modified data pages are allowed to be flushed to the disk.