MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4) C100DBA Question # 32 Topic 4 Discussion

MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4) C100DBA Question # 32 Topic 4 Discussion

C100DBA Exam Topic 4 Question 32 Discussion:
Question #: 32
Topic #: 4

Which of the following commands will return all the posts with number of likes greater than 100 and less than 200, both inclusive?


A.

db.posts.find({ likes : { $gte : 100 , $lte : 200 } } );


B.

db.posts.find({ likes : { $gt : 100 , $lte : 200 } } );


C.

db.posts.find({ likes : { $gte : 100, $lt : 200 } } );


D.

db.posts.find({ likes : { $gt : 100, $lt : 200 > > );


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.