Refer to the exhibit. The Batch Job processes, filters and aggregates records, What is the
expected output from the Logger component?
A.
[10. 20, 30. 40, 50, 60]
B.
[10. 20] [30, 40] [50, 60]
C.
[20, 40, 60]
D.
[20. 40] [60]
[20. 40] [60]
What DataWeave expression transforms the array a to the XML output?

A. 1.1. trains:
2.2. {(
3.3. a map ((engId, index) ->
4.4. train: {
5.5. TrainNumber: engId
6.6.
7.7. }
8.8. )
9.9. )}
B. 1.1. trains:
2.2. a map ((engId, index) ->
3.3. train: {
4.4. TrainNumber: engId
5.5.
6.6. }
7.7. )
C. 1.1. {(
2.2. trains:
3.3. a map ((engId, index) ->
4.4. train: {
5.5. TrainNumber: engId
6.6.
7.7. }
8.8. )
9.)}
D. 1.1. {
2.2. trains:
3.3. a map ((engId, index) ->
4.4. train: {
5.5. TrainNumber: engId
6.6.
7.7. }
8.8. )
9.}
Explanation:
For such questions always look for Syntax:
I call it "Wrap the Map" trains:
{(
When mapping array elements (JSON or JAVA) to XML, wrap the map operations in {(..)}
-{ } are defining the object
-( ) are transforming each element in the array as a key/value pair
Refer to the exhibits.
A web client submits a request to below flow. What is the output at the end of the flow?
A. String
B. Object
C. Java
D. XML
String is the correct answer as XML is of an Object type String
Pick the component with which DataWeave is tightly integrated.
A. All APIs
B. Mule runtime
C. Exchange
D. Flow Designer
Explanation:
Correct answer is Mule runtime
DataWeave is the MuleSoft expression language for accessing and transforming data that
travels through a Mule app. DataWeave is tightly integrated with the Mule runtime engine,
which runs the scripts and expressions in your Mule app.
Refer to the exhibit.

A. Option A
B. Option B
C. Option C
D. Option D
How can you call a subflow from Dataweave?
A. Not possible in Mule 4
B. Import function
C. Lookup function
D. Include function
This is a trick question.
You can call only flows from DataWeave using lookup function. Note that lookup function
does not support calling subflows.
A subflow needs a parent context to inherit behaviors from such as exception handling,
which a flow does not need.
Hence correct answer is Not possible in Mule 4
What path setting is required for an HTTP Listener endpoint to route all requests to an
APIkit router?
A.
/(*)
B.
/
C.
/()
D.
/*
/*
What is the correct syntax for a Logger component to output a message with the contents
of a 3SON Object payload?
A.
The payload is: $(payload)
B.
#["The payload is: " ++ payload]
C.
The payload is: #[payload]
D.
#["The payload is: " + payload]
#["The payload is: " ++ payload]
| Page 1 out of 29 Pages |