nerdexam
MuleSoft

MCD-LEVEL-1 · Question #119

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?

The correct answer is A. { port : p('db.port')}. Option 1 is the correct syntax

Building Integration Applications with Mule 4

Question

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?

Options

  • A{ port : p('db.port')}
  • B{ port : {db:port}}
  • C{ port : p['db.port']}
  • DApplication property cannot be accessed in Dataweave

How the community answered

(25 responses)
  • A
    92% (23)
  • C
    4% (1)
  • D
    4% (1)

Explanation

Option 1 is the correct syntax

Topics

#DataWeave#application properties#p() function

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice