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.
What is valid text to set the field in the Database connector configuration to the username
value specified in the config.yaml file?
A. ${db.username>
B. #[db.username]
C. #[db:username]
D. ${db:username>
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]
Which of the below activity doesn't support parallel execution?
A. Scatter-Gather Router
B. First Successful Router
C. Parallel For Each
D. Batch job
A Mule application contains a global error handler configured tocatch any errors.
Where must the global error handler be specified so that the global error handler catches
all errors from flows without their own error handlers?
A.
A configuration properties file
B.
Nowhere, the global error handler is automatically used
C.
A global element
D.
The pom.xml file
A global element
Refer to the exhibit.
The error occurs when a project is run in Anypoint Studio. The project, which has a
dependency that is not in the MuleSoft Maven repository, was created and successfully run
on a different computer.
What is the next step to fix the error to get the project to run successfully?
A. Edit the dependency in the Mule project's pom.xml file
B. Install the dependency to the computer's local Maven repository
C. Deploy the dependency to MuleSoft's Maven repository
D. Add the dependency to the MULE_HOME/bin folder
Explanation: As dependency is not present in Mulesoft Maven repository, we need to install the dependency on computer's local Maven repository. Option 3 is correct choice.
Refer to the exhibit. 
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Option D
Refer to the exhibit
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Option B
| Page 1 out of 29 Pages |