Refer to the exhibits.
A Mule application contains a Choice router. What is logged when the flow completes?
Answer : B
Which of the following is invalid type of event processor which can be used as a router ?
Answer : C
Pick First is not valid type. Rest all are valid type of event processor.
Choice : https://docs.mulesoft.com/mule-runtime/4.3/choice-router-concept
Round Robin : https://docs.mulesoft.com/mule-runtime/4.3/round-robin
First Successful : https://docs.mulesoft.com/mule-runtime/4.3/first-successful
A company has defined two RAML fragments, Book Data Type and Book Example to be used in APIs.
What would be valid RAML to use these fragments ?
Answer : D
* RAML file contains lot of information that could be considered as 'not API-describing'. Sort of 'economy-class' members.
Equally important, but not necessarily part of the main RAML file.
* Through !includes, RAML allows us to build file-distributed API definitions, which is not only useful to encourage code reuse but also improves readability.
* We can create RAML fragments with such code and then include them in main RAML project using !include like:
types:
Book: !include bookDataType.raml and
examples:
input: !include bookExample.raml
* Additionally for
----------------------------------------------------------------------------------------------------------------------------------------
Correct Answer: D
Refer to the exhibit.
What data is expected by the POST /accounts endpoint?
A)
B)
C)
D)
Answer : D
Refer to the exhibit.
A Mule event is composed of a hierarchy of objects. Where in the hierarchy are variables stored?
Answer : A
Variables are stored under Mule event. Please refer to below image for the hierarchy .
A Mule application contains a global error handler configured to catch any errors.
Where must the global error handler be specified so that the global error handler catches all errors from flows without their own error handlers?
Answer : C
Correct answer is A global element
Global error handlers are to be created in global element .
Quick note to remember here is Global error handlers come in to picture only when there are no error handlers specified as flow level.
Steps to create Global error handler
1) Click Global Elements to open Global Configuration Elements. Global Elements is located below the Studio canvas
2) In Global Configuration Elements, click Create to open the Choose Global Type dialog
3) From the dialog, select Global Configuration - Configuration, and then click OK to open the Configuration dialog.
4) From the select Configuration dialog, select allErrorHandler for the Default Error Handler field, and click OK.
Refer to the exhibits.
A Mule application has an HTTP Request that is configured with hardcoded values. To change this, the Mule application is configured to use a properties file named config.yaml.
what valid expression can the HTTP Request host value be set to so that it is no longer hardcoded?
Answer : A
Correct answer is ${training.host}
--------------------------------------------------------------------------------------------------------------------------------------------------
How to Configure Properties to Mule 4.X Platform?
1)Go to/src/main/resourcesproject directory.
2)Create a configuration file with the name configuration.yaml inside the newly created config folder.
3)Go To Project >Global Element> Create > General >select the configuration.yaml file create in step-2)
4)To verify develop a simple flow with HTTP listener which has above entries. Put the logger that prints the values on console.
5)Additional info:Similarly, when you want to access this port in DataWeave you need to use p function