Q1
In Mule 4, why does wrapping processors inside an Async scope lose Mule Event variable propagation back to the main flow?
The Async scope clones the Mule Event onto a separate thread pool in parallel—so any vars modified or exceptions thrown inside Async never return to the main parent flow. Errors inside Async must be handled via an Error Handler inside a referenced subflow or global error handler.
Q2
How do DataWeave map, mapObject, and pluck transform Arrays vs Objects differently—and why does payload.items.*item help on XML?
map transforms Arrays into Arrays; mapObject transforms Object key-value pairs into a new Object; pluck converts an Object into an Array. When parsing XML with 1 or more repeated <item> tags, single-selector payload.items.item returns an Object when count=1, breaking map unless multi-value selector .*item forces an Array!
Q3
What is the key behavioral difference between On Error Propagate and On Error Continue inside a Private Flow vs Main Flow?
On Error Propagate rolls back and re-throws the error up to the parent caller (returning HTTP 500 error listener defaults unless customized). On Error Continue catches the failure, marks the subflow call successful (200 OK / next processor runs in parent!), and keeps the parent flow moving.
Q4
Why does Mule 4's non-blocking reactive Threading Pool (CPU_LIGHT, CPU_INTENSIVE, BLOCKING_IO) eliminate manual thread-pool tuning from Mule 3?
Mule 4 uses Project Reactor + Grizzly event loops and classifies every connector operation upfront into one unified thread-pool scheduling strategy—avoiding context-switch thrashing while keeping HTTP listeners responsive.
Q5
In For Each vs Batch Job (Batch Step), what happens to a Mule record when processing 200,000 rows fails at record #50,000?
For Each processes sequentially in RAM and halts completely on the first unhandled error (unless wrapped in Try). Batch Job persists records in queued VM/disk blocks asynchronously, isolates failed records automatically to a failure-only Batch Step, and keeps processing all remaining records.
Q6
Why does Choice router fail silently on DataWeave conditions if you compare vars.count == '5' vs numeric types?
DataWeave enforces strict type comparison ('5' == 5 is false without coercion!). Always coerce cleanly ((vars.count as Number) == 5) or use explicit defaults (default 0).
Q7
When deploying to CloudHub 1.0 vs CloudHub 2.0, how does Persistent Object Store behavior differ across multiple workers?
In CloudHub multi-worker deployments, Persistent Object Store (OSv2) syncs key-value state across workers over HTTPS with rate/TTL limits—whereas In-Memory Object Store lives isolated per JVM worker and gets wiped on app restarts.
Q8
Why must DataWeave transformations streaming 100 MB CSV/JSON payloads set streaming=true (deferred=true) carefully?
Reading payload twice (Logger followed by Transform) exhausts non-repeatable streams unless repeatable-in-memory/file streams are active or deferred=true streams straight through to the outbound target.
Q9
How do API Autodiscovery (api-platform-gw:api) and API Manager policies protect backend Process/System APIs without redeploying Mule JARs?
Autodiscovery links the deployed runtime flow to API Manager via API ID + client credentials so Client ID Enforcement, Rate Limiting, and JWT validation policies apply dynamically at runtime.
Q10
What is the subtle trap of putting synchronous DB calls inside Scatter-Gather without customizing its Error Handling?
Scatter-Gather executes routes concurrently and aggregates results into an object {0: payload0, 1: payload1}. If even ONE route throws an error, the whole Scatter-Gather throws MULE:COMPOSITE_ROUTING discarding other routes unless each branch wraps its own Try scope with On Error Continue!