CS FundamentalsVery hardGATE CS (PYQ pattern)
Which of the following statements about ARIES recovery are correct? I. It follows write-ahead logging: a log record must reach stable storage before the page it describes is written to disk. II. It allows steal (dirty pages of uncommitted transactions may be flushed) and no-force (commit does not flush data pages). III. The redo pass repeats history, redoing updates of both committed and uncommitted transactions. IV. CLRs written during undo are themselves undone if the system crashes again during rollback.
- A. I and II only
- B. II, III and IV only
- C. I, III and IV only
- D. I, II and III only
Correct answer: D. I, II and III only
IV is false: a CLR is redo-only. A crash during undo skips already-compensated updates through the undoNextLSN pointers, so work is never undone twice.
More DBMS and SQL questions
- Which of the following statements about two-phase locking variants are correct? I. Basic 2PL guarantees conflict-serializable schedules…
- R has 100 pages and S has 50 pages. Block nested-loop join uses 12 buffer pages: 10 for a block of the outer relation, 1 for the inner and…
- R(A, B, C, D, E, F) has the functional dependencies D → E, AD → B, D → E, DA → F, EC → D, ED → C. How many of the listed FDs violate BCNF…
- R(A, B, C, D, E) has the functional dependencies D → A, EA → C, D → C, D → E, BC → A. How many attributes appear in the left sides of a…
- R(A, B, C, D, E, F) has the functional dependencies F → B, C → A, BD → C, B → E, C → A, BC → A. How many superkeys does R have?
- R(A, B, C, D, E, F) has the functional dependencies DB → C, F → A, AD → C, F → B, CA → D, C → F. 3NF synthesis (canonical cover, one…