ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 92 - MCD - Level 1 discussion

Report
Export

Refer to the exhibits.

All three of the conditions for the Choice router are true. What messages are written in the application log?

A.
Route1
Answers
A.
Route1
B.
Route2
Answers
B.
Route2
C.
Route1,Route2
Answers
C.
Route1,Route2
D.
Route1,Route2,Default
Answers
D.
Route1,Route2,Default
Suggested answer: A

Explanation:

Only one of the routes in the Choice router executes, meaning that the first expression that evaluates to true triggers that route1 execution and the others are not checked. If none of the expressions are true, then the default route executes. Hence only Route1 will be executed as it is the first expression. hence output of logger is Route1.

MuleSoft Doc Ref : https://docs.mulesoft.com/mule-runtime/4.3/choice-router-concept

The Choice router dynamically routes messages through a flow according to a set of DataWeave expressions that evaluate message content. Each expression is associated with a different routing option. The effect is to add conditional processing to a flow, similar to an if/then/else code block in most programming languages.

Only one of the routes in the Choice router executes, meaning that the first expression that evaluates to true triggers that route's execution and the others are not checked. If none of the expressions are true, then the default route executes.

asked 18/09/2024
Muzammil Mirza
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first