Ch 44: Concurrency Control in Databases

7 Questions7 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 – 7 of 7 Questions
Page 1 of 1
Q1
❓ MCQ📘 CS403📑 Lec 44🏷️ 44.4. Serializability and Conflict SerializabilityMedium🔁⭐💡🌟📄🎓VU🏛️VU
In transaction management, serializability is the criteria for correctness in interleaved transaction execution. Does an interleaved (concurrent) schedule of transactions always create serialized groups, and what does serializability guarantee?
💻 text Snippet
Serial Schedule: T1 -> T2 (No Interleaving)
Interleaved Schedule: R1(A), R2(A), W1(A), W2(A) (Interleaved operations)
  1. A.No, interleaved schedules do not automatically form serial groups, but serializability ensures the final database state is equivalent to executing the transactions sequentially (serially) without interleaving.
  2. B.Yes, interleaved schedules always group transactions into strict serial blocks that block other transactions from executing.
  3. C.No, interleaved schedules must execute in a randomized, unpredictable order, and serializability guarantees that transactions will always fail with a deadlock.
  4. D.Yes, serializability guarantees that all transaction data is permanently kept in volatile memory buffers to optimize read speed.
Q2
❓ MCQ📘 CS403📑 Lec 44🏷️ 44.4. Deadlock Prevention and DetectionMedium🔁⭐💡🌟📄🎓VU🏛️VU
Which of the following describes a dynamic, timestamp-based deadlock prevention protocol where an older transaction (with a smaller timestamp) is allowed to wait for a lock held by a younger transaction, but a younger transaction immediately rolls back ('dies') if it requests a lock held by an older transaction?
💻 text Snippet
IF Timestamp(Ti) < Timestamp(Tj) THEN Ti WAITS; 
ELSE Ti DIES; -- Wait-Die Scheme
  1. A.The Wait-Die Scheme
  2. B.The Wound-Wait Scheme
  3. C.The Optimistic Concurrency Protocol
  4. D.The Two-Phase Locking (2PL) Protocol
Q3
❓ MCQ📘 CS403📑 Lec 44🏷️ 44.1. Problems of Concurrent ExecutionHard🔁⭐💡🌟📄🎓VU🏛️VU
In a multi-user DBMS environment, which of the following lists represents the three primary concurrency problems that occur when multiple transactions access and modify the same data objects concurrently?
💻 text Snippet
-- Example scenario demonstrating Lost Update:
-- T1: Read(BAL) -> BAL = BAL - 50 -> Write(BAL)
-- T2: Read(BAL) -> BAL = BAL + 10 -> Write(BAL) [Overwrites T1]
  1. A.Lost Update Problem, Temporary Update (Dirty Read) Problem, and Inconsistent Analysis Problem
  2. B.Functional Dependency, Multi-valued Dependency, and Join Dependency
  3. C.Volatile Loss, Non-volatile Log Failure, and Transaction Rollback
  4. D.Deadlock, Starvation, and Locking Overhead
Q4
📝 Short Q📘 CS403📑 Lec 44🏷️ 44.4. Deadlock Prevention and DetectionHard🔁⭐💡🌟📄🎓VU🏛️VU
Explain how the timestamping approach works in concurrency control to prioritize transactions and maintain serializability without utilizing physical locks.
💻 text Snippet
-- Wait-Die Protocol Rule:
-- If TS(Ti) < TS(Tj) then Ti waits;
-- Else Ti dies (rolls back).
Q5
🧠 Long Problem📘 CS403📑 Lec 44🏷️ 44.4. Deadlock Prevention and DetectionHard🔁⭐💡🌟📄🎓VU🏛️VU
During concurrent database transaction management, deadlocks represent a circular wait state. Write down the four fundamental steps required to perform deadlock resolution in a database management system.
💻 text Snippet
-- Deadlock Cycle Detection in Wait-For Graph (WFG):
-- T1 waits for T2, T2 waits for T1 ---> Deadlock Detected
Q6
📝 Short Q📘 CS403📑 Lec 44🏷️ 44.3. Lock Manager and Concurrency ControlMedium🔁⭐💡🌟📄🎓VU🏛️VU
Name and briefly describe the two primary locking modes managed by the Database Concurrency Control lock manager to coordinate multi-user data access.
Q7
❓ MCQ📘 CS403📑 Lec 44🏷️ 44.5. Introduction to LockingMedium🔁⭐💡📄🎓VU🏛️VU
True or False: Under the Two-Phase Locking (2PL) protocol, once a transaction releases a lock, it may acquire additional locks as needed.
  1. A.True
  2. B.False