Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam MCD-Level-1 Topic 8 Question 184 Discussion

Actual exam question for MuleSoft's MCD-Level-1 exam
Question #: 184
Topic #: 8
Which keyword do you use to create a new function in DataWeave?

Suggested Answer: B Vote an answer

You can define your own DataWeave functions using the fun declaration in the header of a DataWeave script.
Sample is as below. ----------------------------------------
%dw 2.0
output application/json
fun toUpper(aString) = upper(aString)
---
toUpper("hello")
MuleSoft Doc Ref : https://docs.mulesoft.com/mule-runtime/4.1/dataweave-functions

by Vito at Jul 17, 2026, 11:22 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.