GATE CS 2021 Set 1 — Question 23
Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.MSQ+1 / -0MediumLog-Based RecoveryTransactions & ConcurrencyDatabases
Databases → Transactions & Concurrency → Log-Based Recovery
Last updated
Question
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?
Which of the following statements is/are correct?
Correct answer
(A) The same undo and redo list will be used while recovering again.
Solution
The correct answer is (A).Reasoning:
1.Idempotence of Recovery: Database recovery processes (such as ARIES) are designed to be idempotent. This means that if the system crashes during the recovery phase, the recovery process can simply be restarted from the beginning (or the last valid checkpoint) without causing inconsistency. The end result will be the same as if the recovery had succeeded on the first attempt.
2.Log Invariance: The transaction log is stored on stable storage. When the system crashes during recovery, the log records from the original transactions remain unchanged. Since no new user transactions are processed during recovery, the history of operations to be analyzed remains the same.
3.Absence of Checkpoints: The question states that no checkpointing is done. This forces the recovery process to scan the log from the beginning (or the start of the earliest uncommitted transaction) every time it restarts.
4.Same Lists: Because the log content is identical and the starting point is the same, the Analysis Phase of the recovery algorithm will identify the exact same set of "winner" (to be redone) and "loser" (to be undone) transactions. Consequently, the undo and redo lists constructed will be identical to those from the previous (failed) recovery attempt.
Thus, the system can recover successfully, operations will be re-applied/undone as necessary (idempotently), and consistency will be restored.Continue learning with Success Tracker
A step still unclear? Work through it with support
Use Success Tracker to ask about the reasoning, then try another GATE CS question to check your understanding.
AI-powered practice· Unlimited practice on eligible plans
- PYQs with solutions
- Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
- Practice that adapts
- Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
- AI doubt support
- Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.
Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.
This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.
More questions on Transactions & Concurrency
2026 Set 2 Q15In the context of DBMS, consider the two sets T and S given below. | T | S | |---|---| | I:…2026 Set 2 Q20Consider concurrent execution of two transactions and in a DBMS, both of which access a…2026 Set 1 Q30Let and be the attributes of a relation in a relational schema. Let…2026 Set 1 Q31In the context of relational database normalization, which of the following statements is/are true?2026 Set 2 Q42In the context of schema normalization in relational DBMS, consider a set F of functional…