New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified MuleSoft Developer (Mule-Dev-201) Exam - Topic 10 Question 21 Discussion

Actual exam question for Salesforce's Salesforce Certified MuleSoft Developer (Mule-Dev-201) exam
Question #: 21
Topic #: 10
[All Salesforce Certified MuleSoft Developer (Mule-Dev-201) Questions]

Refer to the exhibits.

Set paylaod transformer is set the firstName and lastName of the customer as shown in below images.

What is the correct Dataweave expression which can be added in message attribute of a Logger activity to access firstName (which in this case is Madhav) from the incoming event?

Show Suggested Answer Hide Answer
Suggested Answer: D

Correct answer is vars.'customer'.'firstName'

Please note that you can also access firstName using this syntax vars.customer.firstName.

Mule Ref Doc :Variables in Mule Apps | MuleSoft Documentation


Contribute your Thoughts:

0/2000 characters
Emerson
3 months ago
Wait, why would we use vars for this? That seems off.
upvoted 0 times
...
Antonio
3 months ago
I agree with Mirta, B is the way to go!
upvoted 0 times
...
Lilli
3 months ago
I'm not so sure about that, seems too simple.
upvoted 0 times
...
Stephania
4 months ago
I think it's just firstName, right?
upvoted 0 times
...
Mirta
4 months ago
It's definitely customer.firstName!
upvoted 0 times
...
Sean
4 months ago
I think I saw something about using quotes in Dataweave expressions, so maybe D is the right choice?
upvoted 0 times
...
Linsey
4 months ago
I feel like I should know this, but I'm confused about whether to use vars or just access it directly.
upvoted 0 times
...
Shasta
4 months ago
I remember practicing a similar question where we had to access nested attributes. I wonder if it's C or D this time.
upvoted 0 times
...
Rolf
5 months ago
I think the answer might be B, but I'm not entirely sure if the context requires using "customer" like that.
upvoted 0 times
...
Kimberlie
5 months ago
I feel pretty confident about this one. The question is straightforward, and the images clearly show the payload structure with a "customer" object containing the firstName and lastName. I'm going to go with option B.
upvoted 0 times
...
Casandra
5 months ago
I'm not totally sure about this one. The question mentions a "Logger activity" but I'm not familiar with that. I'll have to think through the DataWeave syntax carefully to make sure I select the right option.
upvoted 0 times
...
Hector
5 months ago
Okay, I think I've got this. The key is that the question is asking for the correct DataWeave expression to access the firstName, which is "Madhav" based on the images. So the answer is B, "customer.firstName".
upvoted 0 times
...
Jeannetta
5 months ago
Hmm, I'm a bit confused by the question. It mentions a "Set paylaod transformer" but I don't see any information about that in the question. I'll need to re-read it carefully to make sure I understand what it's asking.
upvoted 0 times
...
Vilma
5 months ago
This looks straightforward, I think the answer is B. The question is asking for the correct DataWeave expression to access the firstName, and the image shows the payload has a "customer" object with firstName and lastName properties.
upvoted 0 times
...
Luther
1 year ago
I bet the correct answer is 'firstName' because the question is just testing if we can read. Seriously, who needs DataWeave when you have common sense?
upvoted 0 times
...
Huey
1 year ago
B) customer.firstName is the way to go. Unless you're trying to invoke the spirit of Shakespeare with those 'vars' shenanigans.
upvoted 0 times
Carli
1 year ago
A) firstName is too vague. B) customer.firstName is more specific.
upvoted 0 times
...
Trinidad
1 year ago
B) customer.firstName is correct. No need for the 'vars' confusion.
upvoted 0 times
...
...
Carol
1 year ago
I'm not sure, but I think C) vars.`customer.firstName` might also work because it combines vars and customer.firstName.
upvoted 0 times
...
Glenna
1 year ago
A) firstName? Really? Who names a variable just 'firstName'? That's like naming your dog 'Dog'. C'mon, people, get creative!
upvoted 0 times
Azalee
1 year ago
D) vars.customer.firstName
upvoted 0 times
...
Viola
1 year ago
C) vars.customer.firstName
upvoted 0 times
...
Shasta
1 year ago
B) customer.firstName
upvoted 0 times
...
Noah
1 year ago
A) firstName? Really? Who names a variable just 'firstName'? That's like naming your dog 'Dog'. C'mon, people, get creative!
upvoted 0 times
...
...
Yolando
1 year ago
I disagree, I believe the correct answer is D) vars.`customer`.`firstName` because it uses the vars to access the customer's firstName.
upvoted 0 times
...
Paulene
1 year ago
D) vars.customer.firstName looks more elegant, but B) is the safer bet. Gotta play it safe in these exams, you know.
upvoted 0 times
...
Toshia
1 year ago
I think the correct answer is B) customer.firstName. It's a pretty straightforward data mapping, no need to overcomplicate things.
upvoted 0 times
Sherita
1 year ago
I'm not sure, but A) firstName seems too simple to be the correct answer.
upvoted 0 times
...
Jeannetta
1 year ago
I believe it's D) vars.`customer`.`firstName` to access the nested property.
upvoted 0 times
...
Lashawn
1 year ago
D) vars.customer.firstName
upvoted 0 times
...
Heike
1 year ago
I think it's C) vars.`customer.firstName` because we need to access it through vars.
upvoted 0 times
...
Alline
1 year ago
C) vars.customer.firstName
upvoted 0 times
...
Dominic
1 year ago
I agree, B) customer.firstName seems like the correct answer.
upvoted 0 times
...
Tawanna
1 year ago
B) customer.firstName
upvoted 0 times
...
Sanjuana
1 year ago
A) firstName
upvoted 0 times
...
...
Catarina
1 year ago
I think the correct answer is B) customer.firstName because it directly accesses the firstName of the customer.
upvoted 0 times
...

Save Cancel