C100DBA MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4)

Loading demo links...

Showing 10–10 of 10 questions

Question 10

What does the following $slice query return using the following command? db.posts.find( {},

{ comments: { $slice: [ -10, 5 ] } } )

Select an option, then click Submit answer.

  • Returns 5 comments, beginning with the last 10 items

  • Returns 10 comments, beginning with the last

  • Returns 10 comments, beginning with the first

  • Returns 5 comments, beginning with the first 10 items