FoMS Experts

News / Exam Questions

QUESTION, ANSWER, EXPLANATION

Exam Question MS-21-026 for MuleSoft Certified Developer (MCD) - Level 1

Exam Question MS-21-026 for MuleSoft Certified Developer (MCD) - Level 1
Share
FacebookGoogle plusLinkedInStumbleuponTwitter
FoMS8.4.2021

This question has been asked by one of our members and a similar question could most likely be on the exam. All answers have been verified by MuleSoft certified FoMS experts.

Question

What DataWeave expression transforms the example XML input to the CSV output?


Answer

The correct answer to this question is A.

Explanation

By reading the result of the transform message, we can conclude that we need to transform all XML nods (or objects) called "item", which we can archive by using an asterisk (*) in front of the "item". That leaves us with answers A and B.

Our second conclusion is related to the property value called "itemId" in the XML node "item". By respecting the syntax, we conclude that we have to use a sign "@" to read the value of the property, so that leaves us with the correct answer A.

Register now