MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 125


Refer to the exhibits. The Set Payload transformer sets the payload to an object. The Logger component’s message attribute is configured with the string ‘Result #[INFO" ++ payload]’.

What is logged when the flow executes?

Show Answer
Correct Answer: A

The correct answer is 'A'. The issue arises when trying to concatenate a string ('INFO') with an object using the '++' operator. In MuleSoft DataWeave, the '++' operator is not designed to concatenate a string and an object directly, which causes an error message when the flow executes indicating that the function '++' was used with incompatible arguments.

Discussion

2 comments
Sign in to comment
martademanzanaOption: A
Nov 12, 2023

A is correct

ExamDevOption: A
Jan 23, 2024

A is correct