MuleSoft MCD - Level 1 Practice Test - Questions Answers, Page 5
List of questions
Related questions
Question 41
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?
Explanation:
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.
Question 42
Refer to the exhibit.
What can be added to the flow to persist data across different flow executions?
Explanation:
An object store is a facility for storing objects in or across Mule applications. Mule runtime engine (Mule) uses object stores to persist data for eventual retrieval. Internally, Mule uses object stores in various filters, routers, and other message processors that need to store states between messages.
Object stores are available in all deployment targets. If you deploy your application to CloudHub, you can also use Object Store V2.
Correct answer is Key/value pair in Object store
MuleSoft Documentation reference : https://docs.mulesoft.com/mule-runtime/4.3/mule-object-stores#use-cases
Question 43
Refer to the exhibit.
This RAML specification includes a resource and method to retrieve accounts by account_type and industry.
What is the correct URI to get all retail finance accounts?
Explanation:
Correct answer is/accounts?account_type=retail&industry=finance
Query parameters are a defined set of parameters attached to the end of a url. They are extensions of the URL that are used to help define specific content or actions based on the data being passed. To append query params to the end of a URL, a '?' Is added followed immediately by a query parameter.
To add multiple parameters, an '&' is added in between each.
Question 44
A Mule application contains two HTTP Listeners, each configured for different API endpoints: http://acme.com/apis/orders and http: //acme .com/a pis/customers.
What base path value should be set in an HTT? Listener config element so that it can be used to configure both HTTP Listeners?
Explanation:
Option 2 is the correct answer as /api/* accespts everything starting with /api/
Question 45
A web client submits a request to http://localhost:8081/books/0471767840. The value '0471767840' is captured by a Set Variable transformer to a variable named booklSBN.
What is the DataWeave expression to access booklSBN later in the flow?
Question 46
Refer to the exhibits.
The Set Payload transformer's value is set to {'year': '2020'}.
What message value should be added to the Logger component to output the message 'The year is 2020', without hardcoding 2020?
Question 47
Refer to the exhibit.
What expression correctly specifies input parameters to pass the city and state values to the SQL query?
A)
B)
C)
D)
Explanation:
MuleSoft Documentation Reference : https://docs.mulesoft.com/db-connector/1.9/database-connector-select
Question 48
A Mule flow has three Set Variable transformers. What global data structure can be used to access the variables?
Explanation:
Mule event is correct answer. Mule event has two parts which are as follows
1) Message (which contains payload and attributes like headers and query/uri parameters
2) Variables
Question 49
In an application network. If the implementation but not the interface of a product API changes, what needs to be done to the other APIs that consume the product API?
Explanation:
Correct answer is Nothing needs to be changed in the other APIs or their associated applications
This is the benefit of having separate interface layer. As there are no changes to interface , no changes are required on the API's which consumes this API in context
Question 50
Refer to the exhibit.
<a target='_blank' href='http://localhost:8081/'>What is the response to a web client request to http://localhost:8081?</a>
Explanation:
Question