nerdexam
MuleSoft

MCD-LEVEL-1 · Question #64

Refer to the exhibits. The Set Payload transformer's value is set to {'year': '2020'}. What message value should be added to the Logger component to output the message 'The year is 2020', without…

The correct answer is D. #["The year is "++ payload.year]. You've hit your limit · resets 5am (America/New_York)

Applying DataWeave Transformations

Question

Refer to the exhibits. The Set Payload transformer's value is set to {'year': '2020'}. What message value should be added to the Logger component to output the message 'The year is 2020', without hardcoding 2020?

Exhibit

MCD-LEVEL-1 question #64 exhibit

Options

  • A'#[The year is $(pay load .year)]*
  • BThe year is #[payload.year]'
  • C'#[The year is " + paytoad.year]'
  • D#["The year is "++ payload.year].

How the community answered

(35 responses)
  • A
    11% (4)
  • B
    3% (1)
  • C
    6% (2)
  • D
    80% (28)

Explanation

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

Topics

#DataWeave expressions#string concatenation#Logger#payload

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice