Two concurrent executing transactions 𝑇1 and 𝑇2 are allowed to update same…

2019

Two concurrent executing transactions 𝑇1 and 𝑇2 are allowed to update same stock item say ′A′ in an uncontrolled manner. In such scenario, following problems may occur:

(a) Dirty read problem

(b) Lost update problem

(c) Transaction failure

(d) Inconsistent database state

Which of the following option is correct if database system has no concurrency module and allows concurrent execution of above two transactions?

  1. A.

    (a), (b) and (c) only

  2. B.

    (c) and (d) only

  3. C.

    (a) and (b) only

  4. D.

    (a), (b) and (d) only

Attempted by 255 students.

Show answer & explanation

Correct answer: D

Answer: Dirty read, Lost update, and Inconsistent database state.

  • Dirty read: occurs when a transaction reads changes made by another transaction that have not yet been committed, so those reads might later be invalid if the other transaction rolls back.

  • Lost update: happens when two transactions read the same item and both write updates based on the old value; the later write can overwrite the earlier one, causing one update to be lost.

  • Inconsistent database state: arises when concurrent uncontrolled updates leave related data or aggregates out of sync (for example, item counts or totals not matching individual item changes).

Why transaction failure is not included:

Transaction failure can occur for many reasons (such as constraint violations or system errors), but uncontrolled concurrency by itself typically produces the data anomalies listed above rather than guaranteeing that a transaction will fail. Therefore, the correct set of problems that are expected when there is no concurrency control are dirty reads, lost updates, and inconsistent database state.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor