MuleSoft Certified Developer – Level 1 — Question 74
What does the zip operator do in DataWeave?
Answer options
- A. Minifies the size of value using encoding.
- B. None of these.
- C. Merges elements of two objects into a single object.
- D. Merges elements of two lists (arrays) into a single list.
Correct answer: D
Explanation
The zip operator in DataWeave is specifically designed to merge elements from two lists (arrays) into a single list, making option D the correct answer. Option A incorrectly describes a function related to encoding rather than merging. Option C misrepresents the operation by suggesting it works with objects instead of lists, and option B is incorrect since one of the options is valid.