Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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: A 🗳️
Reference:
https://developer.mulesoft.com/tutorials-and-howtos/quick-start/how-to-create-your-first-munit-test-in-anypoint-studio

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
aook002
1 week, 5 days 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
3 weeks, 1 day ago
option D
upvoted 2 times
...
Alandt
2 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 1 times
...
ExamDev
3 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 ...