Halloween Sales Special - 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: coponace

Consider an inventory collection that contains these documents:{ " _id " : 1, " product...

Consider an inventory collection that contains these documents:

{ " _id " : 1, " product " : " x-small box " , " colors " : [ " brown " , " black " , " white " ], " qty " : 50 }

{ " _id " : 2, " product " : " small box " , " colors " : [ " brown " , " white " ], " qty " : 60 }

{ " _id " : 3, " product " : " medium box " , " colors " : [ " black " , " grey " , " white " ], " qty " : 45 }

{ " _id " : 4, " product " : " large box " , " colors " : [ " grey " ], " qty " : 50 }

{ " _id " : 5, " product " : " x-large box " , " colors " : [ " grey " , " white " ], " qty " : 10 }

What result set does the following query return?

db.inventory.find({

$or: [

{ " product " : " x-small box " },

{

$and: [

{ " qty " : { $ne: 50 } },

{ " colors " : { $nin: [ " brown " ] } }

]

}

]

})

A.

Documents _id:3 and _id:5.

B.

Documents _id:1 and _id:3.

C.

Documents _id:1, _id:2, _id:3, and _id:5.

D.

Documents _id:1, _id:3, and _id:5.

C100DBA PDF/Engine
  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions
buy now C100DBA pdf
Get 70% Discount on All Products, Use Coupon: "coponace"