Looking for INTRO. TO DATABASE MGMT. SYST. test answers and solutions? Browse our comprehensive collection of verified answers for INTRO. TO DATABASE MGMT. SYST. at moodlenew.iitd.ac.in.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Consider the following segment of the log record containing the actions taken by transactions beforethe crash.
⟨T3 start⟩⟨T3, D, 200, 50⟩⟨T1 start⟩⟨checkpoint {T1, T3}⟩⟨T1, A, 100, 150⟩⟨T2 start⟩⟨T2, B, 200, 500⟩⟨T1, C, 50, 100⟩⟨T2 commit⟩⟨T3, D, 50, 150⟩⟨T3 abort⟩
Mark the correct statements:
In a log-based recovery scheme with Write-Ahead Logging (WAL), if the system crashes after writing a data page to disk but before writing its corresponding log record, the change is guaranteed to be redone during recovery.
In the deferred modification technique, the old value part of an update log is not required.
Which of the following is correct about WAL with force and no-force policies?
The no-steal policy is most suitable for transactions that perform a large number of updates.
A database system uses Write-Ahead Logging (WAL) to ensure atomicity and durability. Consider the following timeline for a single transaction T5:
1. ⟨T5 start⟩2. ⟨T5, X, 200, 250⟩ — log record written and flushed3. ⟨T5, Y, 300, 350⟩ — log record written and flushed4. System crashes
Which statement best describes the state of data items X and Y on disk after recovery?
Under Write-Ahead Logging, the log record for an update ⟨Ti, A, old, new⟩ must be forced to stable storage before the corresponding data page A is written to disk.
Consider a system where the log contains the following records (in order):
⟨T1 start⟩ ⟨T1, X, 10, 20⟩ ⟨T2 start⟩ ⟨checkpoint {T1, T2}⟩ ⟨T2, Y, 30, 40⟩ (crash)
Which of the following is true immediately after the crash, under recovery with WAL?
Consider the following log.
⟨T1 start⟩ ⟨T1, A, 10, 50⟩ ⟨T1, B, 20, 70⟩ ⟨T1 commit⟩ ⟨T2 start⟩ ⟨T2, B, 70, 60⟩ ⟨T2, C, 30, 40⟩ ⟨T2, B, 70⟩⟨T2, C, 30⟩⟨T3 start⟩ ⟨T3, C, 30, 90⟩ ⟨T3 commit⟩ ⟨T4 start⟩ ⟨T4, A, 50, 100⟩ (crash here)
After recovery using basic WAL, the final on-disk value of B will be .
According to the "Steal/Force" policies, which combination guarantees that no recovery is needed after every transaction commit?
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!