Which of the following operations are atomic on document level?
(a) update
(b) remove
(c) findAndModify
(d) all of the mentioned
(a) update
(b) remove
(c) findAndModify
(d) all of the mentioned
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Right answer is (d) all of the mentioned
Explanation: In MongoDB, write operations, e.g. db.collection.update(), db.collection.findAndModify(), db.collection.remove(), are atomic on the level of a single document.