CS FundamentalsModerateGATE CS · DBMS

Optimistic (validation-based) concurrency control runs each transaction in three phases. In which order, and when are its writes applied to the database?

  1. A. Read, validation, write — writes go to the database only after validation succeeds
  2. B. Validation, read, write — writes are applied during the read phase
  3. C. Read, write, validation — writes are undone if validation fails
  4. D. Write, read, validation — validation checks the log

Correct answer: A. Read, validation, write — writes go to the database only after validation succeeds

A transaction works on private copies in the read phase, is checked against overlapping transactions at validation, and installs its updates only in the write phase, so a failed validation needs no undo.

More DBMS and SQL questions

Exams that ask this topic