chapter
    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 and in a DBMS, both of which access a data object . For these two transactions to not conflict on , 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 attempted simultaneous transfers of Rs. 10000 each from account to account . Both transactions read the same value, Rs. 11000, as the initial balance in and were allowed to go through. was credited Rs. 10000 twice. 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?

    Transaction T1R1(X)W1(Y)R1(X)W1(X)COMMIT(T1)Transaction T2W2(X)W2(Y)COMMIT(T2)
    Question 4
    2025 Slot Set1 PYQ
    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?

    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 over three transactions and , where the subscripts in the schedule indicate transaction IDs:

    Which of the following transaction schedules is/are conflict equivalent to ?

    Question 8
    2022 PYQ
    Let and denote read and write operations on a data element by a transaction , respectively. Consider the schedule with four transactions.



    Which one of the following serial schedules is conflict equivalent to ?
    Question 9
    2021 Slot Set2 PYQ
    Let be the following schedule of operations of three transactions , and in a relational database system:


    Consider the statements P and Q below:

    P: S is conflict-serializable.
    Q: If commits before finishes, then S is recoverable.

    Which one of the following choices is correct?
    Question 10
    2021 Slot Set1 PYQ
    Let and denote read and write operations respectively on a data item by a transaction . Consider the following two schedules.



    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.

    Why MastersUp

    Personalised first. High quality throughout.

    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:

    1. Read balance of Account A.
    2. Subtract amount from Account A.
    3. Write new balance to Account A.
    4. Read balance of Account B.
    5. Add amount to Account B.
    6. 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_Set2 MCQ

    Consider concurrent execution of two transactions and in a DBMS, both of which access a data object . For these two transactions to not conflict on , which one of the following statements must be true?

    1. A.

      Both and only read

    2. B.

      reads and writes

    3. C.

      writes and reads

    4. D.

      Both and write

    Question 2 · Databases · 2025_Set2 MSQ
    An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account attempted simultaneous transfers of Rs. 10000 each from account to account . Both transactions read the same value, Rs. 11000, as the initial balance in and were allowed to go through. was credited Rs. 10000 twice. 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?
    1. A.

      Atomicity

    2. B.

      Consistency

    3. C.

      Isolation

    4. D.

      Durability

    Question 3 · Databases · 2025_Set2 MSQ
    Consider the database transactions T1 and T2, and data items X and Y. Which of the schedule(s) is/are conflict serializable?

    Transaction T1R1(X)W1(Y)R1(X)W1(X)COMMIT(T1)Transaction T2W2(X)W2(Y)COMMIT(T2)
    1. A.

      R1(X), W2(X), W1(Y), W2(Y), R1(X), W1(X), COMMIT(T2), COMMIT(T1)

    2. B.

      W2(X), R1(X), W2(Y), W1(Y), R1(X), COMMIT(T2), W1(X), COMMIT(T1)

    3. C.

      R1(X), W1(Y), W2(X), W2(Y), R1(X), W1(X), COMMIT(T1), COMMIT(T2)

    4. D.

      W2(X), R1(X), W1(Y), W2(Y), R1(X), COMMIT(T2), W1(X), COMMIT(T1)

    Question 4 · Databases · 2025_Set1 MCQ
    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?

    1. A.

      Only

    2. B.

      Only

    3. C.

      Both and

    4. D.

      Neither nor

    Question 5 · Databases · 2024_Set2 MSQ

    Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?

    1. A.

      2PL permits only serializable schedules

    2. 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

    3. 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

    4. D.

      A deadlock is possible with 2PL

    Question 6 · Databases · 2024_Set2 MCQ

    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

    1. A.

      durability

    2. B.

      atomicity

    3. C.

      consistency

    4. D.

      isolation

    Question 7 · Databases · 2024_Set1 MSQ

    Consider the following read-write schedule over three transactions and , where the subscripts in the schedule indicate transaction IDs:

    Which of the following transaction schedules is/are conflict equivalent to ?

    1. A.

    2. B.

    3. C.

    4. D.

    Question 8 · Databases · 2022 MCQ
    Let and denote read and write operations on a data element by a transaction , respectively. Consider the schedule with four transactions.



    Which one of the following serial schedules is conflict equivalent to ?
    1. A.

    2. B.

    3. C.

    4. D.

    Question 9 · Databases · 2021_Set2 MCQ
    Let be the following schedule of operations of three transactions , and in a relational database system:


    Consider the statements P and Q below:

    P: S is conflict-serializable.
    Q: If commits before finishes, then S is recoverable.

    Which one of the following choices is correct?
    1. A.

      Both P and Q are true.

    2. B.

      P is true and Q is false.

    3. C.

      P is false and Q is true.

    4. D.

      Both P and Q are false.

    Question 10 · Databases · 2021_Set1 MCQ
    Let and denote read and write operations respectively on a data item by a transaction . Consider the following two schedules.



    Which one of the following options is correct?
    1. A.

      is conflict serializable, and is not conflict serializable.

    2. B.

      is not conflict serializable, and is conflict serializable.

    3. C.

      Both and are conflict serializable.

    4. D.

      Neither nor is conflict serializable.

    More previous year questions (pyqs) in this unit