Learning objectives
What you will be able to explain
- In the context of ACID properties, which property ensures that a transaction is treated as an "all-or-nothing" unit of work, where either all operations are applied or none are?
- Regarding the ACID properties:
- What is the primary problem addressed by the "Isolation" property?
- Analyze the schedule for conflict serializability.
- Which statement correctly describes the relationship between Conflict Serializability and View Serializability?
- Which of the following pairs of operations are in conflict?
Section 01
In the context of ACID properties, which property ensures that a transaction is treated as an "all-or-nothing" unit of work, where either all operations are applied or none are? to What is the primary problem addressed by the "Isolation" property?
01
In the context of ACID properties, which property ensures that a transaction is treated as an "all-or-nothing" unit of work, where either all operations are applied or none are?
02
Regarding the ACID properties:
03
What is the primary problem addressed by the "Isolation" property?
Section 02
Analyze the schedule for conflict serializability. to Which of the following pairs of operations are in conflict?
01
Analyze the schedule for conflict serializability.
Guided checkpoint
Given schedule :
| Step | Operation |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 |
Determine whether is conflict-serializable and identify the equivalent serial order (if one exists).
02
Which statement correctly describes the relationship between Conflict Serializability and View Serializability?
03
Which of the following pairs of operations are in conflict?
Section 03
Complete the Lock Compatibility Matrix (Yes = Compatible, No = Conflict): to Evaluate the sequence under Two-Phase Locking (2PL).
01
Complete the Lock Compatibility Matrix (Yes = Compatible, No = Conflict):
02
What is the defining rule of the Two-Phase Locking (2PL) protocol?
03
Evaluate the sequence under Two-Phase Locking (2PL).
Guided checkpoint
A transaction follows the Two-Phase Locking protocol and performs this sequence:
Is this valid according to 2PL? If then tried to after , would it still be 2PL?
Section 04
What is the primary difference between Basic 2PL and Strict 2PL? to In hierarchical locking (Multiple Granularity Locking), what does an "Intention Exclusive" (IX) lock at the Table level signify?
01
What is the primary difference between Basic 2PL and Strict 2PL?
02
Regarding 2PL variations:
03
In hierarchical locking (Multiple Granularity Locking), what does an "Intention Exclusive" (IX) lock at the Table level signify?
Section 05
Transaction holds an IX lock on Table . Transaction requests an S lock on Table . Based on the compatibility matrix for intention locks, should be granted the lock? to Which deadlock prevention strategy aborts the younger transaction if it requests a lock held by an older transaction?
01
Transaction holds an IX lock on Table . Transaction requests an S lock on Table . Based on the compatibility matrix for intention locks, should be granted the lock?
02
Which of the following lock modes are compatible with a "Shared Intention Exclusive" (SIX) lock?
03
Which deadlock prevention strategy aborts the younger transaction if it requests a lock held by an older transaction?
Section 06
In a "Wait-For Graph", Transaction is waiting for a lock held by , is waiting for , and is waiting for . What does this state represent, and what action must the Lock Manager take? to Match the read phenomenon to its definition:
01
In a "Wait-For Graph", Transaction is waiting for a lock held by , is waiting for , and is waiting for . What does this state represent, and what action must the Lock Manager take?
02
What is the main drawback of the "Timeout-based" deadlock detection?
03
Match the read phenomenon to its definition:
Section 07
Which SQL isolation level provides the highest level of protection by preventing all three phenomena (Dirty Read, Non-repeatable Read, Phantom)? to What are the three phases of Optimistic Concurrency Control?
01
Which SQL isolation level provides the highest level of protection by preventing all three phenomena (Dirty Read, Non-repeatable Read, Phantom)?
02
Regarding SQL Isolation Levels:
03
What are the three phases of Optimistic Concurrency Control?
Section 08
In OCC, when is the "Validation Phase" performed? to In Snapshot Isolation, which version of a data item does a transaction read?
01
In OCC, when is the "Validation Phase" performed?
02
What is the primary assumption behind Optimistic Concurrency Control?
03
In Snapshot Isolation, which version of a data item does a transaction read?
Section 09
Under Snapshot Isolation, which version of does see? to Regarding Multi-version Concurrency Control (MVCC):
01
Under Snapshot Isolation, which version of does see?
Guided checkpoint
Given the following timeline:
| Time | Event |
|---|---|
| 10 | starts () |
| 15 | starts () |
| 20 | updates and commits () |
| 25 | reads |
Determine which version of is visible to .
02
What is the "First-Committer-Wins" rule in Snapshot Isolation used for?
03
Regarding Multi-version Concurrency Control (MVCC):
Section 10
What is the "Write Skew" anomaly? to A system uses "Wound-Wait". (Start Time 100) requests a lock held by (Start Time 200). What happens? Conversely, what happens if requests a lock held by ?
01
What is the "Write Skew" anomaly?
02
Which component of the DBMS architecture is responsible for managing the lifecycle of locks?
03
A system uses "Wound-Wait". (Start Time 100) requests a lock held by (Start Time 200). What happens? Conversely, what happens if requests a lock held by ?
Knowledge check
Turn understanding into recall.
The quiz now follows the same concepts in scored form. You can return to this lesson from the quiz whenever a gap appears.