CS FundamentalsVery hardGATE CS (PYQ pattern)

Under the deferred database modification scheme with a log, a crash occurs. The log holds <T1 start>, <T1,A,5>, <T1 commit>, <T2 start>, <T2,B,7>, <T3 start>, <T3,C,9>, <T3 commit>. Which transactions are redone and which are simply ignored (no undo is ever needed)?

  1. A. Redo T1 and T3; ignore T2
  2. B. Redo T1, T2 and T3
  3. C. Redo T3 only; undo T1 and T2
  4. D. Redo T1 and T3; undo T2

Correct answer: A. Redo T1 and T3; ignore T2

With deferred modification nothing reaches the database before commit, so uncommitted T2 has changed nothing and needs no undo. Committed T1 and T3 are redone.

More DBMS and SQL questions

Exams that ask this topic