MuleSoft Certified Developer – Level 1 — Question 68
What DataWeave 2.0 type can be used as input to a mapObject operation?
Answer options
- A. Array
- B. Object
- C. String
- D. Map
Correct answer: B
Explanation
The correct answer is B, as the mapObject function specifically operates on Object types in DataWeave. The other options, while valid DataWeave types, do not serve as inputs for the mapObject operation, which requires an object structure to iterate over key-value pairs.