Question

An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account AA attempted simultaneous transfers of Rs. 10000 each from account AA to account BB. Both transactions read the same value, Rs. 11000, as the initial balance in AA and were allowed to go through. BB was credited Rs. 10000 twice. AA was debited only once and ended up with a balance of Rs. 1000.

Which of the following properties is/are certain to have been violated by the system?

Choose every correct option
Official answer and solution
Official answer
B and C
From
Official GATE 2025 answer key

Solution

Analyze the lost-update anomaly in terms of ACID properties: concurrent unisolated execution (Isolation) caused money creation/invariant violation (Consistency).

  1. Isolation (C) is violated: The two concurrent transactions read the same initial balance of AA (1100011000) and overwrote AA's balance (11000−10000=100011000 - 10000 = 1000) in an interleaved schedule not equivalent to any serial execution (a classic lost update anomaly).
  2. Consistency (B) is violated: The sum of balances A+BA + B was not preserved (AA decreased by Rs. 1000010000 while BB increased by Rs. 2000020000), and the second Rs. 1000010000 transfer was allowed despite AA having only Rs. 1100011000 initially.
  3. Both transactions completed and their final writes persisted, so Atomicity (A) and Durability (D) were not violated.
Final answer

Options (B), (C)

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2025 Computer Science and Information Technology - Session 2 (CS2)
Question
27 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.