WBJECA 2025 — Computer PYQ
WBJECA | Computer | 2025There is a possibility of a cascading rollback when:
Choose the correct answer:
- A.
A transaction writes items that have been written only by a committed transaction.
- B.
A transaction writes items that is previously written by an uncommitted transaction.
- C.
A transaction reads an items that is previously written by an uncommitted transaction.
(Correct Answer) - D.
Both (B) and (C)
A transaction reads an items that is previously written by an uncommitted transaction.
Explanation
Correct Option: (C) A transaction reads an item that is previously written by an uncommitted transaction.
Explanation
A cascading rollback occurs in database management systems when the failure of one transaction leads to the necessity of rolling back other transactions that have become dependent on it.
The Mechanism: If Transaction T1 writes a data item X and does not commit, and Transaction T2 reads that uncommitted value of X, then T2 is said to be dependent on T1. If T1 subsequently fails and performs a rollback, T2 must also be rolled back because it read "dirty" (uncommitted) data.
Dependency:T2 reads X from T1 (uncommitted)
Effect:Rollback(T1)⟹Rollback(T2)
