📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is optimistic concurrency control?

A. Assuming conflicts are rare and checking for changes only at commit time ✅
B. Preventing all concurrent access
C. Locking every row before reading
D. Assuming transactions never fail

Correct Answer: A. Assuming conflicts are rare and checking for changes only at commit time

Explanation

  • Optimistic control lets transactions proceed without locks and validates at commit.
  • If a conflict is found the transaction is rolled back and retried.