Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam MCD - Level 1 All Questions

View all questions & answers for the MCD - Level 1 exam

Exam MCD - Level 1 topic 1 question 71 discussion

Actual exam question from Mulesoft's MCD - Level 1
Question #: 71
Topic #: 1
[All MCD - Level 1 Questions]

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?

  • A. 'The year is #[payload.year]'
  • B. '#[The year is $(payload.year)]'
  • C. '#["The year is ++ payload.year"]'
  • D. '#["The year is " + payload.year]'
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
ExamDev
10 months, 1 week ago
Selected Answer: A
"The year is #[payload.year]"
upvoted 1 times
...
peeman004
1 year ago
Funny enough, I tried it and it seems both A and B seems to work. A is not the most natural thing though -- as you typically click on the FX button and that put the brackets around the whole expression.
upvoted 1 times
peeman004
1 year ago
No, I'm wrong -- B only works with quotes around: message='#["The year is $(payload.year)"]' but that's not in the option. Sorry for confusion...
upvoted 3 times
...
...
sshams2021
2 years, 10 months ago
"The year is #[payload.year]"
upvoted 3 times
...
calazans
2 years, 10 months ago
Selected Answer: A
A is correct
upvoted 3 times
...
mubashirhassan2030
2 years, 12 months ago
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? A. "The year is #[payload.year]" B. "#[The year is $(payload.year)]" C. "#["The year is ++ payload.year"]" D. "#["The year is " + payload.year]"
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...