Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

If you perform a ________ on a capped collection with no ordering specified, MongoDB guarantees that the ordering of results is the same as the insertion order.

a) find()
b) write()
c) modify()
d) none of the mentioned

Answer: a
Explanation: To retrieve documents in reverse insertion order, issue find() along with the sort() method with the $natural parameter set to -1.

Join The Discussion