1.

Which of the following operations are atomic on document level?(a) update(b) remove(c) findAndModify(d) all of the mentioned

Answer» 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.


Discussion

No Comment Found