nerdexam
MuleSoft

MCD-LEVEL-1 · Question #197

Refer to the exhibits. In the choice router, the When expression for the domestic shipping route is set to "#[payload= "FR"]". What is the output of logger after the execution of choice router is…

The correct answer is D. A dataweave syntax error. To compare, DataWeave syntax is #[payload == "FR"]. In this case only one = is used so it will give syntax error. Hence the correct answer is A dataweave syntax error

DataWeave

Question

Refer to the exhibits. In the choice router, the When expression for the domestic shipping route is set to "#[payload= "FR"]". What is the output of logger after the execution of choice router is completed?

Exhibit

MCD-LEVEL-1 question #197 exhibit

Options

  • A"Domestic"
  • B"International"
  • C"US"
  • DA dataweave syntax error

How the community answered

(37 responses)
  • A
    14% (5)
  • B
    8% (3)
  • C
    5% (2)
  • D
    73% (27)

Explanation

To compare, DataWeave syntax is #[payload == "FR"]. In this case only one = is used so it will give syntax error. Hence the correct answer is A dataweave syntax error

Topics

#Choice router#DataWeave#syntax error#comparison operators

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice