Cyber Monday 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
7 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
7 months ago
I'm not sure. Can someone explain their reasoning?
upvoted 0 times
...
Lynelle
7 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77