nerdexam
MuleSoft

MCD-LEVEL-1 · Question #178

Correct answer is {customerID}. Reference: https://docs.mulesoft.com/http-connector/1.5/http-listener-ref A function named toUpper needs to be defined that accepts a string named userName and…

The correct answer is B. fun toUpper(userName) = upper(userName). You've hit your limit · resets 5am (America/New_York)

Use DataWeave to transform data

Question

Correct answer is {customerID}. Reference: https://docs.mulesoft.com/http-connector/1.5/http-listener-ref A function named toUpper needs to be defined that accepts a string named userName and returns the string in uppercase. What is the correct DW code to define the toUpper function?

Options

  • Avar toUpper(userName) -> upper(userName)
  • Bfun toUpper(userName) = upper(userName)
  • Cfun toUpper(userName) -> upper(userName)
  • Dvar toUpper(userName) = upper(userName)

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    86% (19)
  • C
    9% (2)

Explanation

You've hit your limit · resets 5am (America/New_York)

Topics

#DataWeave#function definition#fun keyword#upper function

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice