GATE CS 2025 Set 2 | Question 27
Databases › Transaction Management · MSQ · 1 mark · Answer: B, C
- Question 27Databasesmsq1 markAn audit found that two joint holders of account attempted simultaneous transfers of Rs. 10000 each from to . Both transactions read the same initial balance Rs. 11000 and both were allowed to go through. was credited Rs. 10000 twice, but was debited only once, ending with Rs. 1000. Which of the following properties is/are certain to have been violated?
- A.Atomicity
- B.Consistency✓
- C.Isolation✓
- D.Durability
Answer: B, C
Solution
Answer: (B) and (C) This is the classic lost-update anomaly from uncontrolled concurrency: - Isolation (C): the two transactions ran concurrently without proper isolation — each read the same stale balance, so one update was lost. Violated. - Consistency (D of ACID — here option B): money was created/destroyed ( gained 20000 but lost only 10000), so the database integrity ("total money conserved") is broken. Violated. - Atomicity and Durability are about all-or-nothing execution and persistence after commit; nothing here indicates those were violated. - A.
More GATE PYQ on Transaction Management
All GATE CS Databases PYQ →Attempt GATE CS 2025 Set 2 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →