MCD-LEVEL-1 practice question 3 of 30

A Mule flow has three Set Variable transformers. What global data structure can be used to access the variables?

Full set: 235 questions
Answer options
A: Mule event attributes
B: Mule event message
C: Mule application properties
D: Mule event Correct answer
Correct Answer:
D. Mule event
Explanation

In Mule 4, the Mule Event is the core global data structure that encapsulates all data moving through a flow. It contains the Mule Message (which holds the payload and attributes) and the Variables. When a Set Variable transformer is used, the variable is stored directly within the Mule Event object. This makes the variables accessible to all subsequent message processors within the same execution context using the vars namespace.

Why Incorrect

Option A: Mule event attributes contain metadata from the message source (like HTTP headers or query parameters), not user-defined flow variables.
Option B: The Mule event message contains the payload and attributes, but variables are stored outside the message within the broader Mule event structure.
Option C: Mule application properties are static configuration values loaded at startup, not dynamic variables created during flow execution.

References

1. MuleSoft Official Documentation, "Mule Event Structure", Section: "Mule Event, Message, and Variables".

2. MuleSoft Official Documentation, "Set Variable Transformer", Section: "Variable Scope and Access".

Scroll to Top