Transactions, Concurrency Control and Recovery PYQs for GATE CS
Solve 11+ Transactions, Concurrency Control and Recovery previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.
Try a question
Answer it here to see how it works. Nothing is recorded until you sign in.
Question 1
2026 Slot Set2 PYQ
Consider concurrent execution of two transactions T1 and T2 in a DBMS, both of which access a data object A. For these two transactions to not conflict on A, which one of the following statements must be true?
Question 2
2025 Slot Set2 PYQ
An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account A attempted simultaneous transfers of Rs. 10000 each from account A to account B. Both transactions read the same value, Rs. 11000, as the initial balance in A and were allowed to go through. B was credited Rs. 10000 twice. A was debited only once and ended up with a balance of Rs. 1000.
Which of the following properties is/are certain to have been violated by the system?
Question 3
2025 Slot Set2 PYQ
Consider the database transactions T1 and T2, and data items X and Y. Which of the schedule(s) is/are conflict serializable?
Question 4
2025 Slot Set1 PYQ
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)
Question 5
2024 Slot Set2 PYQ
Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?
Question 6
2024 Slot Set2 PYQ
Once the DBMS informs the user that a transaction has been successfully completed, its effect should persist even if the system crashes before all its changes are reflected on disk. This property is called
Question 7
2024 Slot Set1 PYQ
Consider the following read-write schedule S over three transactions T1,T2, and T3, where the subscripts in the schedule indicate transaction IDs:
Which of the following transaction schedules is/are conflict equivalent to S ?
Question 8
2022 PYQ
Let Ri(z) and Wi(z) denote read and write operations on a data element z by a transaction Ti, respectively. Consider the schedule S with four transactions.
Which one of the following serial schedules is conflict equivalent to S?
Question 9
2021 Slot Set2 PYQ
Let S be the following schedule of operations of three transactions T1, T2 and T3 in a relational database system:
R2(Y),R1(X),R3(Z),R1(Y),W1(X),R2(Z),W2(Y),R3(X),W3(Z) Consider the statements P and Q below:
P: S is conflict-serializable. Q: If T3 commits before T1 finishes, then S is recoverable.
Which one of the following choices is correct?
Question 10
2021 Slot Set1 PYQ
Let ri(z) and wi(z) denote read and write operations respectively on a data item z by a transaction Ti. Consider the following two schedules.
S1:r1(x)r1(y)r2(x)r2(y)w2(y)w1(x) S2:r1(x)r2(x)r2(y)w2(y)r1(y)w1(x) Which one of the following options is correct?
Free preview ends here
Login to view the complete previous-year questions and solutions
Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.
Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.
Built around you, not around a syllabus PDF
Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.
Revision that hits your weak spots
We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.
Questions calibrated to the real exam
Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.
Notes written for recall, not for volume
Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.
One place for everything
Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.
Honest progress
No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.
Unlock the whole course
Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.
Transactions, Concurrency Control and Recovery PYQs for GATE CS
Solve 11+ Transactions, Concurrency Control and Recovery previous year questions for GATE CS with answers and detailed solutions. Free sample questions below.
Chapter Roadmap: Transactions, Concurrency, and Recovery
1
ACID Properties and Concurrency Anomalies
The foundation. Defines the rules of reliability and the specific logical errors that occur when concurrent transactions interfere.
2
Conflict Serializability and Schedule Equivalence
The mathematical test. How to prove that an interleaved execution is logically equivalent to a safe, serial execution.
3
Recoverability, Cascading Rollback, and Crash Recovery
Handling failures. Ensuring that aborted transactions do not corrupt committed ones, and the database can restart cleanly.
4
Two-Phase Locking and Lock-Based Concurrency Control
The practical protocol. The actual mechanism databases use to guarantee serializability and prevent anomalies in real time.
The Transaction: A Logical Unit of Work
A transaction is a logical unit of work that contains one or more database operations (reads and writes).
From the system's perspective, it is a sequence of low-level operations. From the user's perspective, it is a single, indivisible action.
Core Principle
A transaction must transition the database from one consistent state to another consistent state. It is the fundamental boundary for enforcing reliability, concurrency control, and recovery.
Example: A funds transfer is one transaction. It involves:
Read balance of Account A.
Subtract amount from Account A.
Write new balance to Account A.
Read balance of Account B.
Add amount to Account B.
Write new balance to Account B.
If any step fails, the entire transaction is treated as if it never happened.
Transactions, Concurrency Control and Recovery: Solved Questions with Step-by-Step Explanations (10 Problems)
Question 1 · Databases · 2026_Set2MCQ
Consider concurrent execution of two transactions T1 and T2 in a DBMS, both of which access a data object A. For these two transactions to not conflict on A, which one of the following statements must be true?
A.
Both T1 and T2 only read A
B.
T1 reads A and T2 writes A
C.
T1 writes A and T2 reads A
D.
Both T1 and T2 write A
Question 2 · Databases · 2025_Set2MSQ
An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account A attempted simultaneous transfers of Rs. 10000 each from account A to account B. Both transactions read the same value, Rs. 11000, as the initial balance in A and were allowed to go through. B was credited Rs. 10000 twice. A was debited only once and ended up with a balance of Rs. 1000.
Which of the following properties is/are certain to have been violated by the system?
A.
Atomicity
B.
Consistency
C.
Isolation
D.
Durability
Question 3 · Databases · 2025_Set2MSQ
Consider the database transactions T1 and T2, and data items X and Y. Which of the schedule(s) is/are conflict serializable?
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)
A.
Only T2
B.
Only T3
C.
Both T2 and T3
D.
Neither T2 nor T3
Question 5 · Databases · 2024_Set2MSQ
Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?
A.
2PL permits only serializable schedules
B.
With 2PL, a transaction always locks the data item being read or written just before every operation and always releases the lock just after the operation
C.
With 2PL, once a lock is released on any data item inside a transaction, no more locks on any data item can be obtained inside that transaction
D.
A deadlock is possible with 2PL
Question 6 · Databases · 2024_Set2MCQ
Once the DBMS informs the user that a transaction has been successfully completed, its effect should persist even if the system crashes before all its changes are reflected on disk. This property is called
A.
durability
B.
atomicity
C.
consistency
D.
isolation
Question 7 · Databases · 2024_Set1MSQ
Consider the following read-write schedule S over three transactions T1,T2, and T3, where the subscripts in the schedule indicate transaction IDs:
Which of the following transaction schedules is/are conflict equivalent to S ?
A.
T1T2T3
B.
T1T3T2
C.
T3T2T1
D.
T3T1T2
Question 8 · Databases · 2022MCQ
Let Ri(z) and Wi(z) denote read and write operations on a data element z by a transaction Ti, respectively. Consider the schedule S with four transactions.