CS FundamentalsModerateGATE CS · DBMS
Under the write-ahead logging (WAL) rule, which ordering must hold?
- A. Log records are written only at checkpoints
- 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
- C. Only the commit record must be flushed; update records may be written later
- 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
- A B+ tree index uses 2048-byte blocks, 14-byte search keys, 8-byte block (tree) pointers and 10-byte record pointers. What is the maximum…
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…
- R(A, B, C, D, E, F) has the set of functional dependencies Σ = {E → ABF, F → BE, C → F, B → C}. Which of the following FDs is NOT in Σ⁺…
- R(A, B, C, D, E, F) has functional dependencies C → AD, A → D, D → C. What is the highest normal form R satisfies?
- Consider the schedule R2(B), R2(C), W3(A), W1(B), R1(C), W1(C), R3(B). Which statement is correct?
- A multilevel index is built over a first level of 90,000 index entries; every index block holds 45 entries (fan-out 45), and levels are…