GateAI
Transactions and Concurrency Control

GATE CSE 2021 Set 1 · Q13

MSQ1 markMedium

Time

Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recovery. Which of the following statements is/are correct?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: A) The same undo and redo list will be used while recovering again.

Transactions and Concurrency Control

In log-based database recovery without checkpointing: [cite: 1]

  1. Idempotency of Recovery: Redo and undo operations are designed to be idempotent, meaning executing them multiple times produces the exact same result as executing them once.

  2. State of the Log: Since checkpointing is not performed during normal transaction processing or during recovery, the log on stable storage remains the same as before the recovery started.

  3. Recovery Restart: When the system restarts after the second crash, it scans the log from the very beginning. Because the log has not changed and no checkpoint records were inserted, the recovery manager constructs the exact same undo-list and redo-list.

Therefore:

  • (A) is correct: The same undo and redo list will be used while recovering again [cite: 1].

  • (B) is incorrect: The system can successfully recover because redo and undo actions are idempotent.

  • (C) is incorrect: Transactions will be processed again according to the same lists.

  • (D) is incorrect: Once the recovery process eventually finishes, the database is restored to a consistent state.

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 Q13 of the GATE CSE 2021 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. 3 of them are 1-mark MSQs like this one, and GATE CSE 2021 Set 1 has 2.

How GATE tests Transactions and Concurrency Control

More from GATE CSE 2021 Set 1

Share this solution

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

GateAI solution cardGATE CSE 2021 Set 1 · Q13 · MSQ

Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recovery. Which of the following statements is/are correct?

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.