Question
A schedule of three database transactions , , and is shown. and denote read and write of data item by transaction , . The transaction aborts at the end. Which other transaction(s) will be required to be rolled back?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2025 answer key
Solution
Identify which transactions read an uncommitted data item written by (dirty reads).
In the given schedule:
- writes data item via .
- Before commits or aborts, both (via ) and (via ) read the uncommitted value of written by (a dirty read).
- When aborts at the end, the value of written by becomes invalid, so both and must be rolled back (cascading rollback).
Final answer
Option (C)
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2025 Computer Science and Information Technology - Session 1 (CS1)
- Question
- 15 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.