Black Friday Reward - Upto 75% off - Ends in 0d 00h 00m 00s - Coupon code: CFsave75

MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+) C100DBA Question # 27 Topic 3 Discussion

MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+) C100DBA Question # 27 Topic 3 Discussion

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

Consider a clothing collection that contains these documents:

{ " _id " : 1, " item " : " sweater " , " sizes " : [ " XS " , " S " ] }

{ " _id " : 2, " item " : " t-shirt " , " sizes " : [ " S " , " M " , " XL " ] }

{ " _id " : 3, " item " : " vest " , " sizes " : [ " M " , " L " , " XL " , " XXL " ] }

What does the following query return?

db.clothing.find({ " sizes " : " M " })


A.

Only document _id: 3.


B.

All three documents.


C.

Only document _id: 2.


D.

Documents _id: 2 and _id: 3.


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.