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 Certified MuleSoft Developer (Mule-Dev-201) Exam - Topic 8 Question 41 Discussion

As a part of requirement , application property defined below needs to be accessed as dataweave expression. What is the correct expression to map it to port value?
A) { port : p('db.port')}
B) { port : {db:port}}
C) { port : p['db.port']}
D) Application property cannot be accessed in Dataweave

Salesforce Certified MuleSoft Developer (Mule-Dev-201) Exam - Topic 8 Question 41 Discussion

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

As a part of requirement , application property defined below needs to be accessed as dataweave expression. What is the correct expression to map it to port value?

Show Suggested Answer Hide Answer
Suggested Answer: A

Option 1 is the correct syntax


Contribute your Thoughts:

0/2000 characters
Romana
4 days ago
I prefer option C. The syntax seems clearer.
upvoted 0 times
...
Teddy
9 days ago
I think option A is correct. It looks right to me.
upvoted 0 times
...
Mary
14 days ago
D) sounds plausible, but I feel like I'm missing something.
upvoted 0 times
...
Bobbie
19 days ago
Wait, can we really access app properties in Dataweave?
upvoted 0 times
...
Cecily
24 days ago
A) seems off, isn't it?
upvoted 0 times
...
Dortha
2 months ago
Definitely agree with C!
upvoted 0 times
...
Gabriele
3 months ago
I think it's C) { port : p['db.port']}
upvoted 0 times
...
Denise
3 months ago
I thought application properties couldn't be accessed directly in Dataweave, so D might be the right answer.
upvoted 0 times
...
Mozell
3 months ago
I feel like I saw a similar question in practice, and it was about using curly braces. Could it be B?
upvoted 0 times
...
Elza
3 months ago
I'm not entirely sure, but I remember something about using square brackets for accessing properties, which makes me lean towards C.
upvoted 0 times
...
Virgina
4 months ago
I think the expression to access application properties in Dataweave is usually with the `p()` function, so maybe it's A?
upvoted 0 times
...

Save Cancel