nerdexam
MongoDB

C100DBA · Question #88

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

Sign in or unlock C100DBA to reveal the answer and full explanation for question #88. The question stem and answer options stay visible for context.

Question

What does the following $slice query return using the following command? db.posts.find( {}, { comments: { $slice: [ -10, 5 ] } } )

Options

  • AReturns 5 comments, beginning with the last 10 items
  • BReturns 10 comments, beginning with the last
  • CReturns 10 comments, beginning with the first
  • DReturns 5 comments, beginning with the first 10 items

Unlock C100DBA to see the answer

You've previewed enough free C100DBA questions. Unlock C100DBA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full C100DBA Practice
What does the following $slice query return using the following... | C100DBA Q#88 Answer | NerdExam