MuleSoft Certified Developer – Level 1 — Question 94
What DataWeave 2.0 type can be used as input to a map operation?
Answer options
- A. Object
- B. Array
- C. String
- D. Map
Correct answer: B
Explanation
The correct answer is B, Array, because the map function is specifically designed to operate on arrays, allowing for transformation of each element. Options A (Object), C (String), and D (Map) do not align with the core functionality of the map operation in DataWeave, as they cannot be iterated over in the same way as arrays.