Recovery and Atomicity

Question 1
Marks : +2 | -2
Pass Ratio : 17%
We say that a transaction has been ________ when its commit log record has been output to stable storage.
Locked
Completed
Committed
Released
Explanation:
We say that a transaction has been committed when its commit log record has been output to stable storage. At that point, all the earlier records have already been output to stable storage.
Question 2
Marks : +2 | -2
Pass Ratio : 17%
State true or false: Using checkpoints reduces overhead
True
False
Explanation:
Using checkpoints reduces overhead because the search process is time consuming and searching for transactions does not take place if we use checkpoints.
Question 3
Marks : +2 | -2
Pass Ratio : 17%
The most widely used structure for recording database modification is called as _______
Log
List
Queue
Stack
Explanation:
The most widely used structure for recording database modification is called as a log. The log is a sequence of log records recording all the update activities in the database.
Question 4
Marks : +2 | -2
Pass Ratio : 17%
If the database modifications occur while the transaction is still active, the transaction is said to use the __________ modification technique
Deferred
Immediate
More than one of the mentioned
None of the mentioned
Explanation:
If the database modifications occur while the transaction is still active, the transaction is said to use the immediate modification technique. Deferred modification has overhead whereas immediate modification doesn’t have any overhead.
Question 5
Marks : +2 | -2
Pass Ratio : 17%
The value of the data item prior to the write is called as _________
Transaction identifier
Data-item identifier
Old value
New value
Explanation:
The value of the data item prior to the write is called as old value. This is stored in the update log record.
Question 6
Marks : +2 | -2
Pass Ratio : 17%
A __________ checkpoint is a checkpoint where transactions are allowed to perform updates even while buffer blocks are being written out.
Temporary
Fuzzy
Permanent
Recovery
Explanation:
A fuzzy checkpoint is a checkpoint where transactions are allowed to perform updates even while buffer blocks are being written out.
Question 7
Marks : +2 | -2
Pass Ratio : 33%
An update log record describes a ________ database write
Single
Double
Triple
Quadruple
Explanation:
An update log record describes a single database write. It has four fields in it which are, transaction identifier, data-item identifier, old value, new value.
Question 8
Marks : +2 | -2
Pass Ratio : 17%
The unique identifier of the transaction that performed the write operation is called as _______
Transaction identifier
Data-item identifier
Old value
New value
Explanation:
The unique identifier of the transaction that performed the write operation is called as transaction identifier. This is a field in the update log record.
Question 9
Marks : +2 | -2
Pass Ratio : 17%
If a transaction does not modify the database until it has committed it is said to use a _______ modification technique
Deferred
Immediate
More than one of the mentioned
None of the mentioned
Explanation:
If a transaction does not modify the database until it has committed it is said to use a deferred modification technique. Deferred modification has the overhead that transactions need to make local copies of all updated data items.
Question 10
Marks : +2 | -2
Pass Ratio : 17%
Which of the following fields does the update log record have?
Transaction identifier
Data-item identifier
Old value
All of the mentioned
Explanation:
An update log record describes a single database write. It has four fields in it. The update log record has a transaction identifier, data-item identifier, old value, new value.