nerdexam
MongoDB

C100DBA · Question #81

C100DBA Question #81: Real Exam Question with Answer & Explanation

Sign in or unlock C100DBA to reveal the answer and full explanation for question #81. The question stem and answer options stay visible for context.

Question

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

Options

  • ASyntax error
  • BReplaces the complete document with _id as 1 with the document specified in second parameter
  • CUpdates the Title of the post
  • DUpdating a document is possible only with $set

Unlock C100DBA to see the answer

You've previewed enough free C100DBA questions. Unlock C100DBA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full C100DBA Practice