GateAI
Transactions and Concurrency Control

GATE CSE 2025 Set 1 · Q15

MCQ1 markEasy

Time

A schedule of three database transactions T1T_1, T2T_2, and T3T_3 is shown. Ri(A)R_i(A) and Wi(A)W_i(A) denote read and write of data item AA by transaction Ti,i=1,2,3T_i, i = 1,2,3. The transaction T1T_1 aborts at the end. Which other transaction(s) will be required to be rolled back? R1(X)W1(Y)R2(X)R2(Y)R3(Y)ABORT(T1)R_1(X) \quad W_1(Y) \quad R_2(X) \quad R_2(Y) \quad R_3(Y) \quad ABORT(T_1)

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: C) Both T2 and T3

Transactions and Concurrency Control

To determine which transactions must be rolled back, we identify the data dependencies (dirty reads) caused by uncommitted updates:

  1. Transaction operations in order:

    • R1(X)R_1(X): T1T_1 reads XX.

    • W1(Y)W_1(Y): T1T_1 writes item YY.

    • R2(X)R_2(X): T2T_2 reads item XX.

    • R2(Y)R_2(Y): T2T_2 reads item YY, which was updated by T1T_1. Since T1T_1 has not yet committed, this is a dirty read (a dependency T1→T2T_1 \to T_2).

    • R3(Y)R_3(Y): T3T_3 reads item YY, which was updated by T1T_1. This is also a dirty read (a dependency T1→T3T_1 \to T_3).

    • ABORT(T1)ABORT(T_1): T1T_1 fails and aborts.

  2. Cascading Rollback:

    • Since T1T_1 aborts, all transactions that have read uncommitted data written by T1T_1 must also be rolled back to maintain consistency.

    • Both T2T_2 and T3T_3 performed dirty reads on data item YY written by T1T_1.

    • Therefore, both T2T_2 and T3T_3 must be rolled back (cascading abort).

Hence, the correct option is C (Both T2T_2 and T3T_3).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Transactions and Concurrency Control previous year question is Q15 of the GATE CSE 2025 Set 1 paper. Find more GATE CSE PYQs on Transactions and Concurrency Control in Databases, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Transactions and Concurrency Control PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Transactions and Concurrency Control in GATE CSE

Transactions and Concurrency Control has 25 GATE CSE PYQs across 20 papers from 2012 to 2026. 7 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2025 Set 1.

How GATE tests Transactions and Concurrency Control

More from GATE CSE 2025 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2025 Set 1 · Q15 · MCQ

A schedule of three database transactions T1, T2, and T3 is shown. Ri(A) and Wi(A) denote read and write of data item A by transaction Ti, i = 1,2,3. The transaction T1 aborts at the end. Which other transaction(s) will be required to be rolled back? R1(X) W1(Y) R2(X) R2(Y) R3(Y) ABORT(T1)

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.