BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

MongoDB Exam C100DBA Topic 1 Question 83 Discussion

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

Suposse tou have the following collection with only 2 documents:

If you run an aggregation query and use { $unwind: "$traits" } as the first stage, how many documents will be passed to the next stage of the aggregation pipeline?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Brynn
6 months ago
I agree with Cecily. The answer is definitely C) 4
upvoted 0 times
...
Cecily
6 months ago
Well, when you $unwind the array in the aggregation, it creates a new document for each element in the array. So with 2 documents and 2 elements in each array, we should have 4 documents.
upvoted 0 times
...
Kristel
6 months ago
I'm not sure. Can someone explain their reasoning?
upvoted 0 times
...
Lynelle
6 months ago
No, I believe the correct answer is C) 4
upvoted 0 times
...
Cecily
7 months ago
I think the answer is B) 5
upvoted 0 times
...

Save Cancel