MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4) C100DBA Question # 22 Topic 3 Discussion

MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4) C100DBA Question # 22 Topic 3 Discussion

C100DBA Exam Topic 3 Question 22 Discussion:
Question #: 22
Topic #: 3

What does the following query do when performed on the posts collection? db.posts.update({_id:l},{Title:This is post with ID 1"})


A.

Syntax error


B.

Replaces the complete document with _id as 1 with the document specified in second parameter


C.

Updates the Title of the post


D.

Updating a document is possible only with $set


Get Premium C100DBA Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.