nerdexam
MongoDB

C100DBA · Question #87

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

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

Question

Consider that our posts collection contains an array field called tags that contains tags that the user enters. { Which of the following commands will find all the posts that have been tagged as tutorial.

Exhibit

C100DBA question #87 exhibit

Options

  • Adb.posts.find( { tags : ["tutorial"] } );
  • Bdb.posts.find( { $array : {tags: "tutorial") > );
  • Cdb.posts.find( { tags : "tutorial" } );
  • Ddb.posts.findInArray( { tags : "tutorial" > );

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