MuleSoft: Tricky Question in the DataweaveTraining Quiz

I am working on MuleSoft certification and taking the MuleSoft 4.1 Fundamentals course. An interesting question in the module quiz is as bellow

Refer to the exhibit. What is valid DataWeave code to transform the input JSON payload to the output XML payload?






So here we need to have XML attributes so the “@” is required to define the attributes this disqualifies options B and D. Now A and C look very similar except that C uses a ‘;’ yep a semi-colon that is invalid, so the only correct answer is A.

The interesting thing about this question is that it is a small hidden trick. Maybe that is the kind of questions, we should expect in the certification exam?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Website Powered by

%d bloggers like this: