MongoDB C100DBA Actual Free Exam Questions & Community Discussion
Which of the following operator can be used to control the number of items of an array that a query returns?
Correct Answer: A
Vote an answer
Which of the following commands will return all the posts with number of likes greater than 100 and less than 200, both inclusive?
Correct Answer: A
Vote an answer
Consider the following example document from the sample collection. All documents in this collection have the same schema.

Which of the following queries will replace this with the document.


Which of the following queries will replace this with the document.

Correct Answer: A
Vote an answer
The________operator can be used to identify an element in the array to be updated without explicitly specifying the position of the element.
Correct Answer: C
Vote an answer
Consider the following document:
> db.c.find()
{ "_id" : 12, b : [ 3, 5, 7, 2, 1, -4, 3, 12 ] }
Which of the following queries on the "c" collection will return only the first five elements of the array in the "b" field? E.g., Document you want returned by your query:
{ "_id" : 12, "b" : [ 3, 5, 7, 2, 1 ] }
> db.c.find()
{ "_id" : 12, b : [ 3, 5, 7, 2, 1, -4, 3, 12 ] }
Which of the following queries on the "c" collection will return only the first five elements of the array in the "b" field? E.g., Document you want returned by your query:
{ "_id" : 12, "b" : [ 3, 5, 7, 2, 1 ] }
Correct Answer: D
Vote an answer
Which mongodb tools allow us to work with our data in a human readable format?
Correct Answer: A,D
Vote an answer
What does the output x of the following MongoDB aggregation query result into; db.posts.aggregate( [ { $group: { _id; "$author", x: { $sum: $likes } } } ] )
Correct Answer: C
Vote an answer
0
0
0
10

