Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Salesforce-MuleSoft-Developer-I Topic 7 Question 7 Discussion

Actual exam question for Salesforce's Salesforce Certified MuleSoft Developer I exam
Question #: 7
Topic #: 7
[All Salesforce Certified MuleSoft Developer I Questions]

What DataWeave expression transforms the array a to the XML output?

Show Suggested Answer Hide Answer
Suggested Answer: A

For such questions always look for Syntax:

I call it 'Wrap the Map'

trains:

{(

When mapping array elements (JSON or JAVA) to XML, wrap the map operations in {(..)}

-{ } are defining the object

-( ) are transforming each element in the array as a key/value pair


Contribute your Thoughts:

Casie
2 months ago
I'm just gonna go with Option E: 'None of the above, I'm outta here!'
upvoted 0 times
...
Dorothy
2 months ago
Wait, are we writing code or poetry? This question is giving me some serious Shakespeare vibes.
upvoted 0 times
Marylou
5 days ago
Let's go with Option B for transforming the array to XML output.
upvoted 0 times
...
Lyndia
10 days ago
Maybe we're writing code that sounds like poetry.
upvoted 0 times
...
Buddy
1 months ago
I think Option B is the correct DataWeave expression.
upvoted 0 times
...
Isaiah
1 months ago
Option A looks like a code snippet to me.
upvoted 0 times
...
...
Sharee
2 months ago
Option C is the way to go! It's like a little DataWeave dance, with all the brackets and stuff.
upvoted 0 times
...
Latrice
2 months ago
Option A seems a bit bloated, doesn't it? I prefer something more concise.
upvoted 0 times
Deandrea
26 days ago
User 2
upvoted 0 times
...
Alva
29 days ago
User 1
upvoted 0 times
...
...
Art
2 months ago
I'd go with Option D. The curly braces make it look more professional.
upvoted 0 times
Valentin
1 months ago
I think Option B is more concise and easier to read.
upvoted 0 times
...
Elvis
2 months ago
I agree, Option D does look more professional with the curly braces.
upvoted 0 times
...
...
Louvenia
3 months ago
Option B looks good to me! It's the most straightforward and easy to understand.
upvoted 0 times
Francesco
2 months ago
I think Option B is the correct DataWeave expression for the transformation.
upvoted 0 times
...
Ashley
2 months ago
I agree, Option B seems like the right choice for transforming the array to XML output.
upvoted 0 times
...
Lilli
2 months ago
I think option B is the correct choice as well.
upvoted 0 times
...
Lilli
2 months ago
I agree, option B seems clear and concise.
upvoted 0 times
...
Vernell
2 months ago
Yes, option B seems like the right choice for transforming the array to XML.
upvoted 0 times
...
Cristy
2 months ago
Option B looks good to me! It's the most straightforward and easy to understand.
upvoted 0 times
...
Paris
3 months ago
I agree, option B is clear and concise.
upvoted 0 times
...
...
Taryn
3 months ago
I agree with Stephane, option B seems to be the right choice because it correctly maps the array elements to XML.
upvoted 0 times
...
Stephane
3 months ago
I think the correct answer is B.
upvoted 0 times
...

Save Cancel