An unhandled error has occurred.
Reload
X
UIZFORGE
Exams
Pricing
Career Paths
Resources
EN
Login
Sign Up
1
/ 5
Advanced
A payments API updates a document only if `version` still matches the value read by the client. If another writer has already changed it, the update should affect zero documents. What pattern is this?
Pessimistic locking with a collection scan
Schema validation with required fields
Optimistic concurrency using `version` in the update filter and `$inc` on success
Read preference failover
AI Tutor
Stuck? Get a hint