CS FundamentalsVery hardGATE CS (PYQ pattern)

Under snapshot isolation item X has committed versions (commit timestamp: value): 0: 10, 5: 20, 9: 30, 14: 40. A transaction reads the latest version with commit timestamp <= its start timestamp. Five read-only transactions start at timestamps 4, 6, 9, 12 and 15. What is the sum of the values they read?

  1. A. 130
  2. B. 120
  3. C. 140
  4. D. 150

Correct answer: A. 130

Start 4 sees 10, 6 sees 20, 9 sees 30 (commit timestamp 9 <= 9 is visible), 12 sees 30, 15 sees 40: [10, 20, 30, 30, 40].

More DBMS and SQL questions

Exams that ask this topic