New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

MongoDB C100DBA Exam - Topic 1 Question 24 Discussion

Actual exam question for MongoDB's C100DBA exam
Question #: 24
Topic #: 1
[All C100DBA Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Laurel
4 months ago
I thought it would return the last 10 comments, not just 5.
upvoted 0 times
...
Krissy
4 months ago
Nope, it's definitely not option C.
upvoted 0 times
...
Alise
4 months ago
Wait, how does that even work? Sounds weird.
upvoted 0 times
...
Stevie
4 months ago
Totally agree, it's option A!
upvoted 0 times
...
Olive
5 months ago
It returns 5 comments starting from the last 10.
upvoted 0 times
...
Gail
5 months ago
I’m confused about whether it starts counting from the last 10 comments or if it just returns the last 5 comments.
upvoted 0 times
...
Oliva
5 months ago
I remember practicing a similar question where negative values indicated starting from the end of the array, so maybe it’s option A?
upvoted 0 times
...
Trinidad
5 months ago
I think the $slice operator is supposed to return a subset of an array, but I'm not entirely sure how the negative index works in this context.
upvoted 0 times
...
Hyun
5 months ago
I feel like I saw something about how $slice can take two parameters, but I can't recall exactly how they interact.
upvoted 0 times
...
Malcolm
5 months ago
Okay, I've got this. The Business Case is the DSDM product that is used for prioritization within a project portfolio, so that's my answer.
upvoted 0 times
...
Sharen
5 months ago
Okay, I'm feeling pretty confident about this one. I think Option C is the way to go - creating a Triggered Send and then enabling the custom Reply Mail Management settings to send the auto-reply. That should do the trick.
upvoted 0 times
...

Save Cancel