MuleSoft Certified Developer – Level 1 — Question 106
What is the output type of the DataWeave flatten function?
Answer options
- A. Object
- B. Array
- C. Map
- D. Java
Correct answer: B
Explanation
The flatten function in DataWeave is designed to convert nested structures into a single array, making 'Array' the correct answer. The other options, such as 'Object', 'Map', and 'Java', do not accurately describe the output type produced by this specific function.