General Databases Advanced Transactions and Concurrency Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Attempts: 14 | Questions: 20 | Updated: Aug 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. Which of the following is NOT a potential problem in concurrent database access?

Explanation

Committed transactions are transactions that have completed successfully and had their changes saved to the database; they are not a concurrency anomaly. By contrast, lost updates, dirty reads, and phantom reads are potential problems that can occur when concurrent transactions interact without adequate isolation.

Submit
Please wait...
About This Quiz
General Databases Advanced Transactions and Concurrency Quiz - Quiz

This quiz evaluates your understanding of advanced database transactions and concurrency control mechanisms. Learn how databases maintain data consistency, prevent conflicts, and manage multiple simultaneous operations. Essential knowledge for database administrators, developers, and IT professionals working with multi-user systems.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which approach prevents deadlocks by ordering resource requests consistently across all transactions?

Explanation

Deadlock prevention can impose a consistent global order on resources and require every transaction to request them in that order. This prevents circular wait, a necessary condition for deadlock, so transactions cannot become stuck waiting on one another in a cycle.

Submit

3. Cascading rollback occurs when one transaction's rollback forces other transactions to roll back as well. True or False?

Explanation

Cascading rollback occurs when a transaction aborts after other transactions have read its uncommitted changes. Because those transactions may now have used invalid data, they must also roll back. If further transactions depend on their changes, they may need to roll back too, creating a chain of rollbacks.

Submit

4. The ______ property in ACID ensures that only authorized users can access data.

Explanation

Isolation ensures concurrent transactions do not interfere with one another and behave as if executed independently. It does not control which users are authorized to access data; that is handled by access-control mechanisms.

Submit

5. Which deadlock detection method repeatedly checks for cycles in the wait-for graph?

Explanation

Detection examines the wait-for graph for cycles, often at regular intervals. A cycle indicates that processes are waiting on one another in a way that can cause a deadlock.

Submit

6. Multi-version concurrency control (MVCC) allows transactions to read different versions of the same data. True or False?

Explanation

MVCC maintains multiple versions of data items, typically using timestamps or transaction IDs. This lets transactions read a consistent version without blocking writes, while other transactions may update newer versions concurrently. Thus, different transactions can access different versions of the same data.

Submit

7. A transaction's ______ property ensures that the database moves from one valid state to another.

Explanation

Consistency ensures that a transaction preserves all defined rules and constraints. After it completes, the database remains valid and moves from one consistent state to another.

Submit

8. Which isolation level prevents both dirty reads and lost updates but allows phantom reads?

Explanation

Repeatable Read prevents dirty reads by disallowing access to uncommitted changes, and prevents lost updates by keeping read rows stable until the transaction ends. However, it does not necessarily lock the full range of values matching a query, so another transaction may insert qualifying rows and create phantom reads under the standard isolation-level definitions.

Submit

9. Optimistic concurrency control assumes that conflicts between transactions are ______.

Explanation

Optimistic concurrency control assumes transactions usually access different data or do not interfere with one another, so conflicts are rare. Transactions proceed without locking data in advance, then check for conflicts before committing; if a conflict is detected, the transaction may be rolled back and retried.

Submit

10. Two-phase locking (2PL) consists of a growing phase and a ______ phase.

Explanation

In two-phase locking, a transaction first enters the growing phase, during which it can acquire locks but cannot release them. It then enters the shrinking phase, during which it can release locks but cannot acquire any new ones. This protocol helps ensure conflict serializability.

Submit

11. What does ACID stand for in database transactions?

Explanation

ACID describes four properties that help ensure reliable database transactions: Atomicity means a transaction completes fully or not at all; Consistency preserves valid data rules; Isolation prevents concurrent transactions from interfering; and Durability ensures committed changes persist.

Submit

12. The ______ property ensures that committed transactions survive system failures.

Explanation

Durability is the ACID property that ensures once a transaction is committed, its changes are permanently recorded. They remain intact even if the system crashes or loses power.

Submit

13. Which concurrency control method uses timestamps to serialize transactions?

Explanation

Timestamp ordering assigns each transaction a unique timestamp and requires its read and write operations to follow that timestamp order. If an operation would violate the order, the transaction is delayed or aborted, ensuring the resulting execution is equivalent to a serial schedule.

Submit

14. A phantom read occurs when a transaction reads a set of rows twice and finds new rows that appeared between reads. True or False?

Explanation

A phantom read occurs when a transaction repeats a query and finds additional rows that were inserted by another transaction between the two reads. These new rows appear as “phantoms” in the result set.

Submit

15. Which isolation level guarantees the highest level of data consistency?

Explanation

Serializable provides the strictest transaction isolation by making concurrent transactions behave as though they ran one at a time. This prevents dirty reads, non-repeatable reads, and phantom reads, offering the highest level of data consistency among the listed options.

Submit

16. The ______ property ensures that a transaction either completes fully or not at all.

Explanation

Atomicity is the all-or-nothing property of a database transaction. It ensures that every operation in the transaction succeeds and is committed, or that none of them take effect. If an error occurs, the transaction is rolled back, leaving the database unchanged.

Submit

17. What is a deadlock in database systems?

Explanation

A deadlock occurs when two or more transactions each hold a resource the others need, leaving every transaction waiting indefinitely. Since none can proceed to release its resource, the database may need to detect the deadlock and interrupt or roll back one transaction so the others can continue.

Submit

18. Which locking mechanism allows multiple readers but only one writer?

Explanation

A read-write lock distinguishes between reading and writing access. It allows multiple threads to hold the lock simultaneously for reading, since reads do not modify shared data. When a thread needs to write, it obtains exclusive access, preventing other readers or writers from accessing the protected resource until the write is complete.

Submit

19. A dirty read occurs when a transaction reads data that has been ______ but not yet committed.

Explanation

A dirty read happens when a transaction accesses data changed by another transaction before that change is committed. If the modifying transaction later rolls back, the data read may never become part of the database’s final state.

Submit

20. Which isolation level allows dirty reads but prevents lost updates?

Explanation

The answer appears inconsistent with the question: Read Committed prevents dirty reads, rather than allowing them. Read Uncommitted permits dirty reads, but it does not generally prevent lost updates. The stated combination does not match the standard isolation-level definitions.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which of the following is NOT a potential problem in concurrent...
Which approach prevents deadlocks by ordering resource requests...
Cascading rollback occurs when one transaction's rollback forces other...
The ______ property in ACID ensures that only authorized users can...
Which deadlock detection method repeatedly checks for cycles in the...
Multi-version concurrency control (MVCC) allows transactions to read...
A transaction's ______ property ensures that the database moves from...
Which isolation level prevents both dirty reads and lost updates but...
Optimistic concurrency control assumes that conflicts between...
Two-phase locking (2PL) consists of a growing phase and a ______...
What does ACID stand for in database transactions?
The ______ property ensures that committed transactions survive system...
Which concurrency control method uses timestamps to serialize...
A phantom read occurs when a transaction reads a set of rows twice and...
Which isolation level guarantees the highest level of data...
The ______ property ensures that a transaction either completes fully...
What is a deadlock in database systems?
Which locking mechanism allows multiple readers but only one writer?
A dirty read occurs when a transaction reads data that has been ______...
Which isolation level allows dirty reads but prevents lost updates?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!