Exam MCD - Level 1 All QuestionsBrowse all questions from this exam
Question 107

Refer to the exhibits.

A web client sends sale data in a POST request to the Mule application. The Transform Message component then enriches the payload by prepending a vendor name to the sale data.

What is written to the sales.csv file when the flow executes?

    Correct Answer: D

    The error comments indicate clearly that there are processing issues with the provided DataWeave script when trying to generate the payload. These errors specifically mention issues relating to XML processing instructions and unexpected characters, suggesting that the flow does not operate correctly and generates an error instead of producing a valid output. Therefore, the correct answer is an error message.

Discussion
ExamDevOption: D

Reproduced the example and receive: "Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [1,8], while reading `payload` as Xml. [row,col]: [1,8]" evaluating expression: "%dw 2.0 output application/json --- {vendor: "Acme"} ++ payload.sale". Correct answer is D

HappyIsHappyOption: D

option D

aook002Option: D

Option D - As per ExamDev, i also replicated this in AnyPoint studio and received a similar error: ""Unexpected character 'S' (code 83) expected '=' at [row,col {unknown-source}]: [6,12], while reading `payload` as Xml. [row,col]: [6,12]" evaluating expression: "%dw 2.0 output application/json --- {vendor: "Acme"} ++ payload.sale"."

AlandtOption: A

However, despite the file having a .csv extension, the content will actually be in JSON format due to the output directive in the DataWeave script. It is important to note that the extension of the file does not dictate the content format. Therefore, the answer to what is written to the sales.csv file when the flow executes is: A. The enriched payload in JSON format