CS FundamentalsHardGATE CS · DBMS

How many of these statements about two-phase locking are correct? 1. Basic 2PL guarantees conflict serializability. 2. Basic 2PL prevents deadlocks. 3. Strict 2PL avoids cascading rollbacks. 4. Conservative (static) 2PL is deadlock-free. 5. Under rigorous 2PL, transactions can be serialized in their commit order.

  1. A. 2
  2. B. 5
  3. C. 3
  4. D. 4

Correct answer: D. 4

All except statement 2 are true. 2PL itself does not prevent deadlocks — two transactions can each hold a lock the other wants. Conservative 2PL avoids deadlock by taking all locks up front.

More DBMS and SQL questions

Exams that ask this topic