GATE CS 2025 Set 2 — Question 27
Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.MSQ+1 / -0MediumACID PropertiesTransactions & ConcurrencyDatabases
Databases → Transactions & Concurrency → ACID Properties
Last updated
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?
Correct answer
(B) Consistency; (C) Isolation
Solution
The scenario described is the classic Lost Update problem, which occurs when two transactions read the same initial value of a data item and then update it based on that value, overwriting each other's updates.
1.Transaction 1 (): Reads . Calculates . Writes .
2.Transaction 2 (): Reads (before writes). Calculates . Writes .
The update from is overwritten (lost) by . The net effect is that is decremented by 10000 only once, but is credited twice (total 20000). This interleaving of operations is a failure to ensure Isolation. The Isolation property requires that concurrent execution of transactions leaves the database in a state that would have been obtained if the transactions were executed serially. In a serial execution, the second transaction would have read the updated balance () and likely failed due to insufficient funds (or resulted in a negative balance if allowed, but definitely not ).While the database state becomes inconsistent (violating Consistency), the root cause in the context of ACID properties and concurrency control is the violation of Isolation.Continue learning with Success Tracker
A step still unclear? Work through it with support
Use Success Tracker to ask about the reasoning, then try another GATE CS question to check your understanding.
AI-powered practice· Unlimited practice on eligible plans
- PYQs with solutions
- Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
- Practice that adapts
- Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
- AI doubt support
- Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.
Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.
This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.
More questions on Transactions & Concurrency
2026 Set 2 Q15In the context of DBMS, consider the two sets T and S given below. | T | S | |---|---| | I:…2026 Set 2 Q20Consider concurrent execution of two transactions and in a DBMS, both of which access a…2026 Set 1 Q30Let and be the attributes of a relation in a relational schema. Let…2026 Set 1 Q31In the context of relational database normalization, which of the following statements is/are true?2026 Set 2 Q42In the context of schema normalization in relational DBMS, consider a set F of functional…