MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 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?

Show Answer
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

4 comments
Sign in to comment
ExamDevOption: D
Jan 23, 2024

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
Apr 11, 2024

option D

AlandtOption: A
Feb 6, 2024

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

aook002Option: D
Apr 21, 2024

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"."