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
Dortha
26 days ago
Definitely agree with C!
upvoted 0 times
...
Gabriele
1 month ago
I think it's C) { port : p['db.port']}
upvoted 0 times
...
Denise
2 months ago
I thought application properties couldn't be accessed directly in Dataweave, so D might be the right answer.
upvoted 0 times
...
Mozell
2 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
2 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
2 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