Topic: Database Management Systems
In a strict Two-Phase Locking protocol, which statement is correct?
- A. A transaction can acquire new locks after releasing an existing lock
- B. Shared locks can always be released immediately after reading
- C. Locks are acquired only during the shrinking phase
- D. Exclusive locks are held until the transaction commits or aborts
Answer: D. Exclusive locks are held until the transaction commits or aborts
Explanation: Strict Two-Phase Locking (Strict 2PL) is designed to avoid cascading rollbacks by ensuring that a transaction holds all its exclusive (write) locks until it either commits or aborts, preventing other transactions from reading uncommitted data.