Ch 43: Database Recovery Techniques

12 Questions12 MCQs0 Short Questions0 Long Questions
๐ŸŽฏ Exam Practice Papers
SEMESTER PASS

CS403 - Database Management Systems Examination Practice

Timed practice exam simulation for CS403 - Database Management Systems.

๐Ÿ“˜ VU MID TERM EXAMLectures 1 to 22
โฑ๏ธ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

๐Ÿ“30 MCQs
โฑ๏ธ60 Minutes
๐Ÿ“— VU FINAL TERM EXAMLectures 23 to 45
โฑ๏ธ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

๐Ÿ“45 MCQs
โฑ๏ธ90 Minutes
Showing 1 โ€“ 10 of 12 Questions
Page 1 of 2
Q1
๐Ÿ“ Short Q๐Ÿ“˜ CS403๐Ÿ“‘ Lec 43๐Ÿท๏ธ 43.2. Database Recovery ConceptsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is meant by database recovery services?
Q2
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 43๐Ÿท๏ธ 43.3. Log-Based RecoveryMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: An event-oriented log in database auditing and system security usually contains sequential records describing system events, application events, or user events.
  1. A.True
  2. B.False
Q3
๐Ÿ“ Short Q๐Ÿ“˜ CS403๐Ÿ“‘ Lec 43๐Ÿท๏ธ 43.2. Database Recovery ConceptsMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the concept of Database Recovery Services and state their primary objective.
Q4
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 43๐Ÿท๏ธ 43.2. Database Recovery ConceptsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
While recovering database data after a sudden system crash or failure, which of the following files does a recovery manager examine first to identify transaction states?
  1. A.A system file
  2. B.Log file
  3. C.Data dictionary
  4. D.Metadata
Q5
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 43๐Ÿท๏ธ 43.3. Shared and Exclusive Locking ProtocolsMediumโญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Under multi-user database concurrency rules, which of the following statements correctly distinguishes between a Shared Lock (S) and an Exclusive Lock (X) during transaction execution?
๐Ÿ’ป sql Snippet
-- Transaction A requests a Shared Lock (S):
SELECT * FROM Patients WITH (HOLDLOCK) WHERE PatientID = 105;
  1. A.Multiple transactions can hold a Shared Lock on the same data resource simultaneously for reading, but an Exclusive Lock blocks all other locks to allow writing.
  2. B.An Exclusive Lock allows multiple transactions to write data simultaneously, whereas a Shared Lock blocks all transactions.
  3. C.Shared Locks are used exclusively for deleting rows, while Exclusive Locks are applied only during CREATE TABLE operations.
  4. D.A Shared Lock is a DDL command that prevents table alterations, whereas an Exclusive Lock is a DML command used for updates.
Q6
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 43๐Ÿท๏ธ 43.3. LockingMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Under multi-user database transaction management, the Two-Phase Locking (2PL) protocol is used to guarantee serializability. Which of the following is correct regarding the Growing and Shrinking phases of the 2PL protocol?
๐Ÿ’ป text Snippet
-- Transaction structure under Two-Phase Locking (2PL):
-- Phase 1 (Growing): Acquire Lock S(A), Acquire Lock X(B)
-- Operation: Read(A), Write(B)
-- Phase 2 (Shrinking): Release Lock S(A), Release Lock X(B)
  1. A.During the Growing Phase, a transaction can acquire locks but cannot release any. During the Shrinking Phase, a transaction can release locks but cannot acquire new ones.
  2. B.During the Growing Phase, a transaction can only release locks. During the Shrinking Phase, it can only acquire locks.
  3. C.A transaction is allowed to acquire and release locks freely in both phases as long as the total number of locks remains constant.
  4. D.Locks can only be acquired during the growing phase, and locks can only be released after the entire transaction commits.
Q7
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 43๐Ÿท๏ธ 43.3. LockingMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Under multi-user transaction concurrency control rules, which of the following is correct regarding the operational compatibility of Shared (S) and Exclusive (X) lock modes?
๐Ÿ’ป sql Snippet
-- Transaction A: Read-only (S Lock)
SELECT * FROM Accounts WITH (HOLDLOCK) WHERE AccID = 101;
  1. A.A Shared lock (S) is compatible with another Shared lock (S) on the same data item, but an Exclusive lock (X) is incompatible with any other Shared (S) or Exclusive (X) lock.
  2. B.An Exclusive lock (X) is compatible with other Shared locks (S) to allow concurrent dirty reads but prevents concurrent writes.
  3. C.A Shared lock (S) is incompatible with another Shared lock (S) on the same data item to prevent inconsistent analysis errors.
  4. D.Both lock modes are fully compatible with each other on the same data item, as conflict resolution is managed entirely by check-pointing.
Q8
โ“ MCQ๐Ÿ“˜ CS403๐Ÿ“‘ Lec 43๐Ÿท๏ธ 43.2. Database Recovery ConceptsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
While recovering database data after a sudden system crash or power failure, which of the following files does the DBMS recovery manager examine first to identify transaction states?
  1. A.A system file
  2. B.Log file
  3. C.Data dictionary
  4. D.Metadata
Q9
๐Ÿ“ Short Q๐Ÿ“˜ CS403๐Ÿ“‘ Lec 43๐Ÿท๏ธ 43.2. Database Recovery ConceptsMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In database systems, what is meant by database recovery services and what is their primary objective during system or hardware failures?
๐Ÿ’ป text Snippet
-- Recovery Manager sequence:
-- 1. Identify most recent checkpoint.
-- 2. Scan log forward:
--    - REDO committed transactions (forward list).
--    - UNDO active/aborted transactions (backward list).
Q10
๐Ÿง  Long Problem๐Ÿ“˜ CS403๐Ÿ“‘ Lec 43๐Ÿท๏ธ 43.4. Incremental Log with Deferred UpdatesHard๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is meant by database recovery services, and how does the Recovery Manager perform database crash recovery under the Incremental Log with Deferred Updates approach?
๐Ÿ’ป text Snippet
-- Conceptual layout of Deferred Updates Logging:
-- [Transaction Writes] ---> [Log Buffer in RAM] ---> (Commit) ---> [Physical Log Disk] ---> [Database Files on Disk]