CS FundamentalsModerateGATE CS

A DBMS uses deferred database modification: no change reaches the database before its transaction commits (NO-STEAL), but committed changes may still be only in the log at a crash (NO-FORCE). What does crash recovery need?

  1. A. Undo of uncommitted transactions only
  2. B. Both undo and redo
  3. C. Neither undo nor redo
  4. D. Redo of committed transactions only

Correct answer: D. Redo of committed transactions only

Uncommitted transactions never wrote to the database, so there is nothing to undo; committed ones might not be on disk yet, so they must be redone from the log.

More DBMS and SQL questions

Exams that ask this topic