How can you call a subflow from Dataweave?
A. Not possible in Mule 4
B. Import function
C. Lookup function
D. Include function
This is a trick question.
You can call only flows from DataWeave using lookup function. Note that lookup function
does not support calling subflows.
A subflow needs a parent context to inherit behaviors from such as exception handling,
which a flow does not need.
Hence correct answer is Not possible in Mule 4
Explanation: Correct answer is {customerID}.
A. var toUpper(userName) -> upper(userName)
B. fun toUpper(userName) = upper(userName)
C. fun toUpper(userName) -> upper(userName)
D. var toUpper(userName) = upper(userName)
A function named toUpper needs to be defined that accepts a string named userName and
returns the string in uppercase.
What is the correct DW code to define the toUpper function?
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.
What is the output of Dataweave Map operator?
A. Map
B. Object
C. String
D. Array
Explanation:
Returns an array that is the result of applying a transformation function (lambda) to each of
the elements.
MuleSoft Doc Ref : https://docs.mulesoft.com/mule-runtime/4.3/dataweave-cookbook-map
The map operator is a function in Dataweave which iterates over the items in an array and
outputs them into a new array. It basically accepts input as a list of items in an array and
manipulates the items in the array in order to form a new array as an output.
I have created below chart for your easier understanding:
Refer to the exhibits.

The Mule application does NOT define any global error handlers. The Validation component in the private flow throws an error. What response message is returned to a web client request to the main flow's HTTP Listener?
A. Child error
B. Parent error
C. Validation Error
D. Parent completed
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.
An API instance of type API endpoint with API proxy is created in API manager using an
API specification from Anypoint Exchange. The API instance is also configured with an API
proxy that is deployed and running in CloudHub.
An SLA- based policy is enabled in API manager for this API instance.
Where can an external API consumer obtain a valid client ID and client secret to
successfully send requests to the API proxy?
A. In the organization's public API portal in Anypoint Exchange, from an approved client application for the API proxy
B. In Anypoint Studio, from components generated by APIkit for the API specification
C. In Anypoint Studio, from components generated by Rest Connect for API specification
D. In Runtime Manager, from the properties tab of the deployed approved API proxy
Explanation:
* When a client application is registered in Anypoint Platform, a pair of credentials
consisting of a client ID and client secret is generated.
* When the client application requests access to an API, a contract is created between the
application and that API.
* An API that is protected with a Client ID Enforcement policy is accessible only to
applications that have an approved contract.
-------------------------------------------------------------------------------------------------------------------------
Correct Answer: In the organization's public API portal in Anypoint Exchange, from an
approved client application for the API proxy.
Refer to the exhibits.
The web client sends a POST request to the ACME Order API with an XML payload. An
error is returned.
What should be changed in the request so that a success response code is returned to the
web client?
A. Set a request header with the name Content-Type to a value of applicatron/octet-stream
B. Set a request header with the name Content-Type to a value of application/xml
C. Set a response header with the name Content-Type to a value of applkation/xml
D. Set a response header with the name Content-Type to a value of application/octetstream
The HTTP 415 Unsupported Media Type client error response code indicates that the
server refuses to accept the request because the payload format is in an unsupported
format. The format problem might be due to the request's indicated Content-Type or
Content-Encoding , or as a result of inspecting the data directly. As per RAML input is
expected in application/xml.
Hence correct answer is Set a request header with the name Content-Type to a
| Page 1 out of 29 Pages |