ExamGecko
Home Home / MuleSoft / MCD - Level 1

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

Question list
Search
Search

List of questions

Search

Related questions











Refer to the exhibits.

What payload and quantity are togged at the end of the main flow?

A.
[[order1, order2, order3, order4], 14]
A.
[[order1, order2, order3, order4], 14]
Answers
B.
[[1,2,3,4], 10]
B.
[[1,2,3,4], 10]
Answers
C.
[[1,2,3,4], 14]
C.
[[1,2,3,4], 14]
Answers
D.
[orderlorder2order3order4, 14]
D.
[orderlorder2order3order4, 14]
Answers
Suggested answer: C

Refer to the exhibits.

All three of the conditions for the Choice router are true. What messages are written in the application log?

A.
Route1
A.
Route1
Answers
B.
Route2
B.
Route2
Answers
C.
Route1,Route2
C.
Route1,Route2
Answers
D.
Route1,Route2,Default
D.
Route1,Route2,Default
Answers
Suggested answer: A

Explanation:

Only one of the routes in the Choice router executes, meaning that the first expression that evaluates to true triggers that route1 execution and the others are not checked. If none of the expressions are true, then the default route executes. Hence only Route1 will be executed as it is the first expression. hence output of logger is Route1.

MuleSoft Doc Ref : https://docs.mulesoft.com/mule-runtime/4.3/choice-router-concept

The Choice router dynamically routes messages through a flow according to a set of DataWeave expressions that evaluate message content. Each expression is associated with a different routing option. The effect is to add conditional processing to a flow, similar to an if/then/else code block in most programming languages.

Only one of the routes in the Choice router executes, meaning that the first expression that evaluates to true triggers that route's execution and the others are not checked. If none of the expressions are true, then the default route executes.

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
A.
10
Answers
B.
50
B.
50
Answers
C.
40
C.
40
Answers
D.
20
D.
20
Answers
Suggested answer: C

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

The Scatter-Gather component is a routing event processor that processes a Mule event through different parallel processing routes that contain different event processors. Each route receives a reference to the Mule event and executes a sequence of one or more event processors. Each of these routes uses a separate thread to execute the event processors, and the resulting Mule event can be either the same Mule event without modifications or a new Mule event with its own payload, attributes, and variables. The Scatter-Gather component then combines the Mule events returned by each processing route into a new Mule event that is passed to the next event processor only after every route completes successfully.

The Scatter-Gather component executes each route in parallel, not sequentially. Parallel execution of routes can greatly increase the efficiency of your Mule application and may provide more information than sequential processing.

Mule Ref Doc :https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept

A Utlility.dwl is located in a Mule project at src/main/resources/modules. The Utility.dwl file defines a function named encryptString that encrypts a String What is the correct DataWeave to call the encryptString function in a Transform Message component?

A.
1. %dw 2.0 2. output application/json 3. import modules::Utility 4. --- 5. Utility::encryptString( 'John Smith' )
A.
1. %dw 2.0 2. output application/json 3. import modules::Utility 4. --- 5. Utility::encryptString( 'John Smith' )
Answers
B.
1. %dw 2.0 2. output application/json 3. import modules::Utility 4. --- 5. encryptString( 'John Smith' )
B.
1. %dw 2.0 2. output application/json 3. import modules::Utility 4. --- 5. encryptString( 'John Smith' )
Answers
C.
1. %dw 2.0 2. output application/json 3. import modules.Utility 4. --- 5. encryptString( 'John Smith' )
C.
1. %dw 2.0 2. output application/json 3. import modules.Utility 4. --- 5. encryptString( 'John Smith' )
Answers
D.
1. %dw 2.0 2. output application/json 3. import modules.Utility 4. --- 5. Utility.encryptString( 'John Smith' )
D.
1. %dw 2.0 2. output application/json 3. import modules.Utility 4. --- 5. Utility.encryptString( 'John Smith' )
Answers
Suggested answer: B

Explanation:

Correct answer is

%dw 2.0

output application/json

import modules::Utility

---

Utility::encryptString( 'John Smith' )

DataWeave 2.0 functions are packaged in modules. Before you begin, note that DataWeave 2.0 is for Mule 4 apps. For Mule 3 apps, refer to DataWeave Operators in the Mule 3.9 documentation. For other Mule versions, you can use the version selector for the Mule Runtime table of contents.

Functions in the Core (dw::Core) module are imported automatically into your DataWeave scripts. To use other modules, you need to import the module or functions you want to use by adding the import directive to the head of your DataWeave script, for example:

import dw::core::Strings

import camelize, capitalize from dw::core::Strings

import * from dw::core::Strings

The way you import a module impacts the way you need to call its functions from a DataWeave script. If the directive does not list specific functions to import or use * from to import all functions from a function module, you need to specify the module when you call the function from your script. For example, this import directive does not identify any functions to import from the String module, so it calls the pluralize function like this: Strings::pluralize('box').

Transform

%dw 2.0

import dw::core::Strings

output application/json

---

{ 'plural': Strings::pluralize('box') }

A mule project contains MySQL database dependency . The project is exported from Anypoint Studio so that it can be deployed to Cloudhub. What export options needs to be selected to create the smallest deployable archive that will successfully deploy to Cloudhub?

A.
Select both the options 1) Attach project sources 2) Include project module and dependencies
A.
Select both the options 1) Attach project sources 2) Include project module and dependencies
Answers
B.
No need to select any of the below options 1) Attach project sources 2) Include project module and dependencies
B.
No need to select any of the below options 1) Attach project sources 2) Include project module and dependencies
Answers
C.
Select only below option 2) Include project module and dependencies
C.
Select only below option 2) Include project module and dependencies
Answers
D.
Select only below option 1) Attach project sources
D.
Select only below option 1) Attach project sources
Answers
Suggested answer: C

Explanation:

You can choose Attach Project Sources to include metadata that Studio requires to reimport the deployable file as an open Mule project into your workspace. You must keep the Attach Project Sources option selected to be able to import the packaged JAR file back into a Studio workspace. But requirement here is to create smallest deployable archive that will successfully deploy to Cloudhub. Hence we can ignore this option.

We need to select Include project module and dependencies

As actual modules and external dependencies required to run the Mule application in a Mule runtime engine

Hence correct answer is

Select only below option 2) Include project module and dependencies

MuleSoft Doc Ref : https://docs.mulesoft.com/studio/7.5/import-export-packages#exporting-a-studio-project-to-a-deployable-mule-application

What should this endpoint return? http://dev.acme.com/api/patients?name=John&surname=Bell

A.
Patient with name as John
A.
Patient with name as John
Answers
B.
Patient with surname as bell
B.
Patient with surname as bell
Answers
C.
Patients with either name as John or surname as Bell
C.
Patients with either name as John or surname as Bell
Answers
D.
Patients with name as John and surname as Bell
D.
Patients with name as John and surname as Bell
Answers
Suggested answer: D

Explanation:

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.

Hence coming back to question, endpoint would return Patients with name as John and (and is very important here) surname as Bell

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
A.
Incoming array objects would be split into three and each part would be sent to one route each in sequential manner
Answers
B.
Incoming array objects would be split into three and each part would be sent to one route each in parallel
B.
Incoming array objects would be split into three and each part would be sent to one route each in parallel
Answers
C.
Entire event would be sent to each route sequentially
C.
Entire event would be sent to each route sequentially
Answers
D.
Entire event would be sent to each route in parallel
D.
Entire event would be sent to each route in parallel
Answers
Suggested answer: D

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.

What is the default port used by Mule application debugger configuration in Anypoint Studio?

A.
8082
A.
8082
Answers
B.
8080
B.
8080
Answers
C.
7777
C.
7777
Answers
D.
6666
D.
6666
Answers
Suggested answer: D

Explanation:

By default, Debugger listens for incoming TCP connections on localhost port 6666 You can change this in a project's run configuration.

MuleSoft Doc Ref : https://docs.mulesoft.com/studio/7.5/visual-debugger-concept

As a part of project requirement , you want to build an API for a legacy client. Legacy client can only consume SOAP webservices. Which type the interface documentation can be prepared to meet the requirement?

A.
RAML file to define SOAP services
A.
RAML file to define SOAP services
Answers
B.
WSDL file
B.
WSDL file
Answers
C.
JSON file
C.
JSON file
Answers
D.
plain text file documenting API's
D.
plain text file documenting API's
Answers
Suggested answer: B

Explanation:

Web Services Description Language. WSDL is used to describe SOAP based web services

What does C4E stands for in MuleSoft recommended IT operating model?

A.
Centre for Empowerment
A.
Centre for Empowerment
Answers
B.
Centre for Engagement
B.
Centre for Engagement
Answers
C.
Centre for Enablement
C.
Centre for Enablement
Answers
D.
Centre for Excellence
D.
Centre for Excellence
Answers
Suggested answer: C

Explanation:

Centre for Enablement (C4E) is an IT operating model that enables an enterprise to build reusable assets, accumulate API's, leverage best practices and knowledge to enable self service and efficient delivery in the organization and implement new solutions faster

Total 235 questions
Go to page: of 24