exam questions

Exam MCD - Level 1 All Questions

View all questions & answers for the MCD - Level 1 exam

Exam MCD - Level 1 topic 1 question 107 discussion

Actual exam question from Mulesoft's MCD - Level 1
Question #: 107
Topic #: 1
[All MCD - Level 1 Questions]

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?

  • A. The enriched payload in JSON format
  • B. The enriched payload in XML format
  • C. The enriched payload in CSV format
  • D. An error message
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
aook002
2 months, 1 week ago
Selected Answer: 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"."
upvoted 1 times
...
HappyIsHappy
2 months, 2 weeks ago
option D
upvoted 2 times
...
Alandt
4 months, 3 weeks ago
Selected Answer: 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
upvoted 2 times
...
[Removed]
5 months, 1 week ago
Selected Answer: 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
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago