How are multiple conditions used in a Choice router to route events?
A. To route the same event to the matched route of EVERY true condition
B. To find the FIRST true condition, then distribute the event to the ONE matched route.
C. None of these
D. To find the FIRST true condition, then route the same event to the matched route and ALL FOLLOWING routes
Explanation:
Choice router finds the FIRST true condition, then distribute the event to the ONE matched
route.
MuleSoft Doc Ref : https://docs.mulesoft.com/mule-runtime/4.1/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.
Why would a Muleapplication use the ${http.port} property placeholder for its HTTP
Listener port when it is deployed to CloudHub?
A.
Allows CloudHub to automatically change the HTTP port to allow external clients to
connect to the HTTP Listener
B.
Allows CloudHub to automatically register the application with API Manager
C.
Allows MuleSoft Support to troubleshoot the application by connecting directly to the
HTTP Listener
D.
Allows clients to VPN directly to the application at the Mule application's configured
HTTP port
Allows CloudHub to automatically change the HTTP port to allow external clients to
connect to the HTTP Listener
Refer to exhibits.
What message should be added to Logger component so that logger prints "The city is
Pune" (Double quote should not be part of logged message)?
A. #["The city is" ++ payload.City]
B. The city is + #[payload.City]
C. The city is #[payload.City]
D. #[The city is ${payload.City}
Explanation:
Correct answer is The city is #[payload.City]
Answer can get confused with the option #["The city is" ++ payload.City] But note that this
option will not print the space between is and city name. This will print The city isPune.
Refer to the exhibits.
The Validation component in the private flow throws an error. What response message is
returned to a client request to the main flow's HTTP Listener?
A.
Error - private flow
B.
Error - main flow
C.
Success - main flow
D.
Validation Error
Success - main flow
Which file is used to define the interface contract to invoke a web service implemented as a SOAP service?
A. RAML
B. WSDL
C. JSON
D. OAS
WSDL is used to define the contract in case of SOAP . RAML/OAS is used to REST services.
An API specification is designed using RAML. What is the next step to create a REST
Connector from this API specification?
A.
Download the API specification and build the interface using APIkit
B.
Publish the API specification to Any pointExchange
C.
Implement the API specification using flow designer in Design Center
D.
Add the specification to a Mule project's src/main/resources/api folder
Publish the API specification to Any pointExchange
Refer to the exhibits.
The<when> expression for the Choice router needs to be written.
What is a valid <when> expression to route Mule events to the non-default flow?
A.
#['MuleSoft' == paytoad.company]
B.
#[ company = "MuleSoft" ]
C.
#[ if( company = "MuleSoft") ]
D.
#[ if('MuleSoff == payload.company) ]
#['MuleSoft' == paytoad.company]
Refer to the exhibits.

A. Option A
B. Option B
C. Option C
D. Option D
| Page 9 out of 29 Pages |
| Mulesoft MCD-Level-1 Exam Questions Home | Previous |