GATE / CS ARCHIVE

GATE CSE 2015 SET 2 / QUESTION 31

GATE CSE 2015 Set 2 Q31

Database Management Systems · Transactions & Concurrency Control · Full GATE CSE 2015 Set 2 paper

GATE 2015 Set 2, Q31 1 mark · MCQ
Report issue

Transactions & Concurrency Control

Question 31, GATE 2015: Transaction transfers 50 from x to y: read(x); x:=x−50; write(x); read(y); y:=y+50; write(y). Preserving x+y is which ACID property? A atomicity; B consistency; C isolation; D durability.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Preserving the invariant x+y across the transaction is consistency, B. Atomicity is all-or-nothing execution, isolation concerns concurrent visibility, and durability concerns persistence after commit.

The declared invariant defines which database states are valid. Subtracting 50 from one account and adding 50 to the other preserves the invariant x+y, so this is consistency. Atomicity would ensure both changes occur or neither does. Isolation concerns interference between concurrent transactions, and durability concerns survival after commit. The invariant is not itself a claim about failure recovery or scheduling.

Original paper, page 36 · Answer key