<< Prev Question Next Question >>

Question 17/35

What is the correct syntax for a Logger component to output a message with the contents of a 3SON Object payload?

Recent Comments (The most recent comments are at the top.)

Zeeshan Yasin - Oct 12, 2022

The correct answer is B

Saravanan Devadass - Feb 23, 2022

Correct Answer is B.

#["The payload is: " ++ payload] will throw the MUL:Expression error.

<flow name="xmlToJsonFlow2" doc:id="efee0dcf-ceb5-42df-a73c-42b59e8e92fa" >
<http:listener doc:name="json2a" doc:id="5fa0ace7-5980-4caa-ae42-d84b12e53010" config-ref="HTTP_Listener_config" path="json2a"/>
<ee:transform doc:name="Transform Message" doc:id="17b369b9-b7a3-4cce-97df-0d7b4d02942a" >
<ee:message >
<ee:set-payload ><![CDATA[%dw 2.0
output application/json
var readXml = readUrl("classpath://Input/user2.xml", "application/xml")
---
{
FirstName: readXml.user.@FirstName,
LastName: readXml.user.LastName
}]]></ee:set-payload>
</ee:message>
</ee:transform>
<logger level="INFO" doc:name="Logger" doc:id="d4d565a0-5da6-4d89-ab3d-a582116c9562"
message='The payload is: #[payload]'/>
</flow>

aghiles - Sep 10, 2021

the correct answer is B

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (35q)
Question 1: Refer to the exhibit. (Exhibit) What is the response to a we...
2 commentQuestion 2: A Mule application contains two HTTP Listeners, each configu...
Question 3: By default, what happens to a file after it is read using an...
1 commentQuestion 4: Refer to the exhibit. (Exhibit) The main flow is configured ...
Question 5: A RAML specification is defined to manage customers with a u...
Question 6: Refer to the exhibit. (Exhibit) What expression correctly sp...
1 commentQuestion 7: Refer to the exhibits. (Exhibit) The input array of strings ...
Question 8: Refer to the exhibits. (Exhibit) The orders.csv file is read...
Question 9: An SLA based policy has been enabled in API Manager. What is...
5 commentQuestion 10: A Mule application contains an ActiveMQ JMS dependency. The ...
2 commentQuestion 11: A Database On Table Row listener retrieves data from a CUSTO...
Question 12: Refer to the exhibit. (Exhibit) This RAML specification incl...
2 commentQuestion 13: Refer to the exhibit. (Exhibit) What is a valid expression f...
2 commentQuestion 14: Refer to the exhibits. (Exhibit) What payload and quantity a...
Question 15: An API specification is designed using RAML. What is the nex...
Question 16: Refer to the exhibit. The error occurs when a project is run...
3 commentQuestion 17: What is the correct syntax for a Logger component to output ...
Question 18: A web client submits a request to http://localhost:8081/book...
Question 19: Why would a Mule application use the ${http.port} property p...
2 commentQuestion 20: Refer to the exhibits. A web client sends a POST request to ...
Question 21: Refer to the exhibits. (Exhibit) What payload and quantity a...
1 commentQuestion 22: Refer to the exhibits. (Exhibit) A JSON payload is set in th...
Question 23: Refer to the exhibit. The input array of strings is passed t...
Question 24: Refer to the exhibits. (Exhibit) A web client submits a requ...
Question 25: Refer to the exhibits. (Exhibit) A web client submits a requ...
Question 26: What payload is returned by a Database SELECT operation that...
Question 27: Refer to the exhibits. (Exhibit) A web client submits a requ...
4 commentQuestion 28: A Utility.dwl file is located in a Mule project at src/main/...
Question 29: Refer to the exhibit. In the execution of the Scatter-Gather...
Question 30: An HTTP Request operation sends an HTTP request with a non-e...
1 commentQuestion 31: Refer to the exhibits. What payload is logged at the end of ...
Question 32: Refer to the exhibits. (Exhibit) The Validation component in...
Question 33: What is the output type of the DataWeave map operator?...
Question 34: What DataWeave expression transforms the example XML input t...
Question 35: Refer to the exhibit. (Exhibit) What Database expression tra...