CS FundamentalsVery hardAmazon · Microsoft MCQ pattern

A Compensation Log Record (CLR) in ARIES, written while undoing a transaction's update, includes a field pointing to the next log record to undo (skipping over the just-undone one). What is the purpose of this field?

  1. A. It ensures that if the system crashes again during undo, recovery does not redo the undo operation itself or re-undo the same update twice, keeping the rollback process idempotent
  2. B. It stores the transaction's isolation level
  3. C. It is used only for deadlock detection, not recovery
  4. D. It has no functional purpose; it is only for audit logging

Correct answer: A. It ensures that if the system crashes again during undo, recovery does not redo the undo operation itself or re-undo the same update twice, keeping the rollback process idempotent

CLRs are themselves redone (never undone) during a future recovery's redo phase, and they explicitly record where undo should continue from next. This combination guarantees that even if a crash interrupts an in-progress rollback, a later recovery can resume undo at exactly the right point without repeating or skipping any step — redo-only, idempotent rollback.

More DBMS and SQL questions

Exams that ask this topic