New Year Sale ! 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 8 Question 104 Discussion

Actual exam question for MongoDB's C100DBA exam
Question #: 104
Topic #: 8
[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:

Joseph
3 days ago
Hmm, I think the answer is D) 2. The unwind operation shouldn't create any new documents, it should just flatten the 'traits' array within each of the original 2 documents.
upvoted 0 times
...
Emily
5 days ago
I disagree, I believe the answer is A) 3.
upvoted 0 times
...
Gertude
11 days ago
I'm pretty sure the answer is B) 5. The unwind operation should create 5 documents, one for each element in the 'traits' array across the 2 original documents.
upvoted 0 times
...
Asha
16 days ago
The answer is clearly C) 4. The unwind operation will split each document into individual elements of the 'traits' array, so the original 2 documents will become 4 documents.
upvoted 0 times
Elliott
3 days ago
I think the answer is A) 3.
upvoted 0 times
...
...
Paris
21 days ago
I think the answer is C) 4.
upvoted 0 times
...

Save Cancel