Explanation:If an index exists for the field, then MongoDB matches the regular expression against the values in the index, which can be faster than a collection scan. 6. _____ can modify specific fields of an existing document or documents or replace an existing document entirely, depending on the update parameter.
A. modify()
B. update()
C. find()
D. None of the mentioned
Answer:A
Explanation:If an index exists for the field, then MongoDB matches the regular expression against the values in the index, which can be faster than a collection scan. 6. _____ can modify specific fields of an existing document or documents or replace an existing document entirely, depending on the update parameter.
A. modify() B. update() C. find() D. None of the mentioned
Explanation:By default, the update() method updates a single document. 7. The update() method uses the _______ command, which uses the default write concern.