nerdexam
MongoDB

C100DBA · Question #1

C100DBA Question #1: Real Exam Question with Answer & Explanation

The correct answer is C. Calculates the number of posts with likes between 100 and 200. See the full explanation below for the reasoning.

Question

What does the following aggregate query perform?

Options

  • AFetches the posts with likes between 100 and 200 and sets their _id as null
  • BGroups the posts by number of likes (101, 102, 103.) by adding 1 every time
  • CCalculates the number of posts with likes between 100 and 200
  • DFetches the posts with likes between 100 and 200, sets the _id of the first document as null and

Community Discussion

No community discussion yet for this question.

Full C100DBA Practice