Refer to the exhibits.
A web client submits a request to below flow. What is the output at the end of the flow?
A. String
B. Object
C. Java
D. XML
String is the correct answer as XML is of an Object type String
A function named newProdCode needs to be defined thataccepts two input parameters, an
integer value for itemID and a string value for productCategory, and returns a new product
code. What is the correct DataWeave code to define the newProdCode function?
A.
fun newProdCode{itemID: Number, productCategory: String) —> "PC-" ++
productCategory ++ (itemID as String)
B.
fun newProdCode(itemID: Number, productCategory: String) = "PC-" ++
productCategory ++ (itemID as String)
C.
function newProdCode(itemID: Number, productCategory: String) =
"PC-" ++ productCategory++ (itemID as String)
D.
var newProdCode(itemID: Number, productCategory: String) ->
"PC-" ++ productCategory ++ (itemID as String)
fun newProdCode(itemID: Number, productCategory: String) = "PC-" ++
productCategory ++ (itemID as String)
Refer to the exhibits.
The my-app xml file contains an Error Handier scope named "global-error-handler"
The Error Handler scope needs to be set to be the default error handler for every flow in
the Mule application.
Where and how should the value "global-error-handler" be added in the Mule project so
that the Error Handler scope is the default error handler of the Mule application?
A. In the mule-artifact json file, as the value of a key-value pair
B. In the Validation folder as the value of a global element in the error-handling yaml file
C. In the pom.xml file, as the value of a global element
D. In the my-app.xml file, as an attribute of a configuration element
Which of the following is invalid type of event processor which can be used as a router?
A. Choice
B. Round Robin
C. Pick First
D. First Successful
Pick First is not valid type. Rest all are valid type of event processor.
Refer to exhibits.
In the execution of the Scatter-Gather , the flow route completes after 10 seconds and the
flow2 route completes in 40 seconds. How many seconds does it take for the Scatter-
Gather to complete?
A. 10
B. 50
C. 40
D. 20
Explanation: Scatter-Gather sends the event to each routes concurrently. Hence both route in this example will start in parallel. So total time to complete processing is 40 seconds which is option 3.
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.
What is the purpose of the api:router element in APIkit?
A. Creates native connectors using a 3rd party Java library
B. Serves as an API implementation
C. Validates requests against RAML API specifications and routes them to API implementations
D. Validates responses returned from API requests and routes them back to the caller
Explanation: The APIkit Router is a key message processor that validates requests against the provided definition, enriches messages (for example by adding default values to the messages) and routes requests to a particular flow. Also, the Router raises errors messages if errors occurs while routing, validating or processing the user request.
Refer tothe exhibits. 
The Validation component in the Try scope throws an error.
What response message is returned to a client request to the main flow's HTTP Listener?
The Validation component in the Try scope throws an error. What response message is
returned to a client request to the main flow's HTTP Listener?
A.
Success - main flow
B.
Error - main flow
C.
Error - Try scope
D.
Validation Error
Error - main flow
| Page 1 out of 29 Pages |