Question
An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account attempted simultaneous transfers of Rs. 10000 each from account to account . Both transactions read the same value, Rs. 11000, as the initial balance in and were allowed to go through. was credited Rs. 10000 twice. 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?
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).
- Isolation (C) is violated: The two concurrent transactions read the same initial balance of () and overwrote 's balance () in an interleaved schedule not equivalent to any serial execution (a classic lost update anomaly).
- Consistency (B) is violated: The sum of balances was not preserved ( decreased by Rs. while increased by Rs. ), and the second Rs. transfer was allowed despite having only Rs. initially.
- Both transactions completed and their final writes persisted, so Atomicity (A) and Durability (D) were not violated.
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.