MCD-LEVEL-1 practice question 9 of 30

A Scatter-Gather processes three separate HTTP requests. Each request returns a Mule event with a JSON payload. What is the final output of the Scatter-Gather?

Full set: 235 questions
Answer options
A: An Array of the three Mule event Objects
B: An Object containing all three Mule event Objects Correct answer
C: An Array of the three JSON payload Objects
D: An Object containing all three JSON payload Objects
Correct Answer:
B. An Object containing all three Mule event Objects
Explanation

In Mule 4, the Scatter-Gather component routes an event to multiple targets concurrently. Upon successful completion, it aggregates the results into a single Object where the keys are the route indices (e.g., "0", "1", "2") and the values are the complete Mule event objects (including the payload, attributes, and variables) returned by each respective route.

Why Incorrect

A: Scatter-Gather returns an Object with route indices as keys, not an Array. C: It returns an Object containing full Mule events, not an Array of just the payloads. D: It returns an Object containing full Mule events (including attributes), not just the JSON payloads.

References

1. MuleSoft Official Documentation, "Scatter-Gather Router", Section: "Scatter-Gather Output". Available at: https://docs.mulesoft.com/mule-runtime/4.4/scatter-gather-concept

Scroll to Top