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

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

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

Consider that our posts collection contains an array field called tags that contains tags that the user enters. {

C100DBA Question 25

Which of the following commands will find all the posts that have been tagged as tutorial.


A.

db.posts.find( { tags : ["tutorial"] } );


B.

db.posts.find( { $array : {tags: "tutorial") > );


C.

db.posts.find( { tags : "tutorial" } );


D.

db.posts.findInArray( { tags : "tutorial" > );


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.