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?
A. "Domestic"
B. "International"
C. "US"
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.
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
An HTTP Request operation sends an HTTP request with a non-empty JSON object payload to an external HTTP endpoint.The response from the external HTTP endpoint
returns an XML body. The result is stored in a target named the Result.
What is the payload at the event processor after the HTTP Request?
A.
The XML response body
B.
null
C.
The original JSON request body
D.
Anon-empty Java object
The original JSON request body
Refer to the exhibit.
The error occurs when a project is run in Anypoint Studio. The project, which has a
dependency that is not in the MuleSoft Maven repository, was created and successfully run
on a different computer.
What is the next step to fix the error to get the project to run successfully?
A. Edit the dependency in the Mule project's pom.xml file
B. Install the dependency to the computer's local Maven repository
C. Deploy the dependency to MuleSoft's Maven repository
D. Add the dependency to the MULE_HOME/bin folder
Explanation: As dependency is not present in Mulesoft Maven repository, we need to install the dependency on computer's local Maven repository. Option 3 is correct choice.
Refer to the exhibit.
The Mule application's connectors are configured with property placeholders whose values
are set in the config.yaml file.
What must be added to the Mule application to link the config.yaml file's values with the
property placeholders?
A. A configuration-properties element in the acme-app xml file
B. A dependency element in the pom xml file
C. A file-config element in the acrne-app xml file
D. A propertiesFile key/value pair in the mule-artifact json file
What is the trait name you would use for specifying client credentials in RAML?
A. headers
B. client-id
C. client-id-required
D. cannot be specified in RAML
Explanation:
client-id-required enforces clients to add client_id and client_secret.
Please refer to below steps.
Add a section called traits: at the root level to define query parameters:
•traits:
- client-id-required:
queryParameters:
client_id:
type: string
client_secret:
type: string
2) Reference the trait in each of the methods to specify that each of the methods
require these query parameters. After each method in the RAML file, add is:
[client-id-required]. For example:
/users:
get:
is: [client-id-required]
description: Gets a list of JSONPlaceholder users.
Refer to the exhibits.
The two Mule configuration files belong to the same Mule project. Each HTTP Listener is
configured with the same host string and the port number, path, and operation values are
shown in the display names.
What is the minimum number of global elements that must be defined to support all these
HTTP Listeners?
A. 1
B. 2
C. 3
D. 4
Explanation:
In this case three configurations will be required each for port 8000, 6000 and 7000.
There would be three global elements defined for HTTP connections.
Each HTTP connection will have host and port. One example shown below with host as localhost and port 6000.
There are three routes configured for Scatter-Gather and incoming event has a payload is an Array of three objects. How routing will take place in this scenario?
A. Incoming array objects would be split into three and each part would be sent to one route each in sequential manner
B. Incoming array objects would be split into three and each part would be sent to one route each in parallel
C. Entire event would be sent to each route sequentially
D. Entire event would be sent to each route in parallel
Explanation:
Entire event would be sent to each route in parallel.
Scatter-Gather works as follows :
- The Scatter-Gather component receives a Mule event and sends a reference of this Mule
event to each processing route.
- Each of the processing routes starts executing in parallel. After all processors inside a
route finish processing, the route returns a Mule event, which can be either the same Mule
event without modifications or a new Mule event created by the processors in the route as
a result of the modifications applied.
- After all processing routes have finished execution, the Scatter-Gather component
creates a new Mule event that combines all resulting Mule events from each route, and
then passes the new Mule event to the next component in the flow.
| Page 1 out of 29 Pages |