ExamGecko
Home Home / MuleSoft / MCD - Level 1

MuleSoft MCD - Level 1 Practice Test - Questions Answers, Page 5

Question list
Search
Search

List of questions

Search

Related questions











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?

A.
A configuration properties file
A.
A configuration properties file
Answers
B.
Nowhere, the global error handler is automatically used
B.
Nowhere, the global error handler is automatically used
Answers
C.
A global element
C.
A global element
Answers
D.
The pom.xml file
D.
The pom.xml file
Answers
Suggested answer: C

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.

Refer to the exhibit.

What can be added to the flow to persist data across different flow executions?

A.
Key/value pairs in the ObjectStore
A.
Key/value pairs in the ObjectStore
Answers
B.
Properties of the Mule runtime flow object
B.
Properties of the Mule runtime flow object
Answers
C.
properties of the Mule runtime app object
C.
properties of the Mule runtime app object
Answers
D.
session variables
D.
session variables
Answers
Suggested answer: A

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

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?

A.
/accounts/retail/finance
A.
/accounts/retail/finance
Answers
B.
/accounts?account_type=retail&industry=finance
B.
/accounts?account_type=retail&industry=finance
Answers
C.
/accounts/account_type=retail/industry=finance
C.
/accounts/account_type=retail/industry=finance
Answers
D.
/accounts?account_type:retail&industry:finance
D.
/accounts?account_type:retail&industry:finance
Answers
Suggested answer: B

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.

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?

A.
/apis/?
A.
/apis/?
Answers
B.
/apis/
B.
/apis/
Answers
C.
/apis/orders|customers
C.
/apis/orders|customers
Answers
D.
/apis/*
D.
/apis/*
Answers
Suggested answer: D

Explanation:

Option 2 is the correct answer as /api/* accespts everything starting with /api/

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?

A.
booklSBN
A.
booklSBN
Answers
B.
attributes.booklSBN
B.
attributes.booklSBN
Answers
C.
flowVars.booklSBN
C.
flowVars.booklSBN
Answers
D.
vars. booklSBN
D.
vars. booklSBN
Answers
Suggested answer: D

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?

A.
'#[The year is $(pay load .year)]*
A.
'#[The year is $(pay load .year)]*
Answers
B.
The year is #[payload.year]'
B.
The year is #[payload.year]'
Answers
C.
'#[The year is ' + paytoad.year]'
C.
'#[The year is ' + paytoad.year]'
Answers
D.
#['The year is '++ payload.year].
D.
#['The year is '++ payload.year].
Answers
Suggested answer: D

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)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: A

Explanation:

MuleSoft Documentation Reference : https://docs.mulesoft.com/db-connector/1.9/database-connector-select

A Mule flow has three Set Variable transformers. What global data structure can be used to access the variables?

A.
Mule event attributes
A.
Mule event attributes
Answers
B.
Mule event message
B.
Mule event message
Answers
C.
Mule application properties
C.
Mule application properties
Answers
D.
Mule event
D.
Mule event
Answers
Suggested answer: D

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

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?

A.
The applications associated with the other APIs must be restarted
A.
The applications associated with the other APIs must be restarted
Answers
B.
The applications associated with the other APIs must be recoded
B.
The applications associated with the other APIs must be recoded
Answers
C.
The other APIs must be updated to consume the updated product API
C.
The other APIs must be updated to consume the updated product API
Answers
D.
Nothing needs to be changed in the other APIs or their associated applications
D.
Nothing needs to be changed in the other APIs or their associated applications
Answers
Suggested answer: D

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

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>

A.
After
A.
After
Answers
B.
before
B.
before
Answers
C.
Validation Error
C.
Validation Error
Answers
D.
null
D.
null
Answers
Suggested answer: C

Explanation:

Total 235 questions
Go to page: of 24