Weekend Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

MuleSoft MCD-Level-1 MuleSoft Certified Developer - Level 1 (Mule 4) Exam Practice Test

Demo: 70 questions
Total 235 questions

MuleSoft Certified Developer - Level 1 (Mule 4) Questions and Answers

Question 1

What is the correct way to format the decimal 200.1234 as a string to two decimal places?

Options:

A.

200.1234 as string as format: ".0#"

B.

200.1234 as String {format: ".0#"}

C.

200.1234 as String as format: ".0#"

D.

200.1234 as string {format: ".0#"}

Question 2

How to import Core (dw::Core) module into your DataWeave scripts?

Options:

A.

#include dw::core

B.

Not needed

C.

import core

D.

import dw::core

Question 3

What DataWeave expression transforms the array a to the XML output?

Options:

A.

1.1. trains:

2.2. {(

3.3. a map ((engId, index) ->

4.4. train: {

5.5. TrainNumber: engId

6.6.

7.7. }

8.8. )

9.9. )}

B.

1.1. trains:

2.2. a map ((engId, index) ->

3.3. train: {

4.4. TrainNumber: engId

5.5.

6.6. }

7.7. )

C.

1.1. {(

2.2. trains:

3.3. a map ((engId, index) ->

4.4. train: {

5.5. TrainNumber: engId

6.6.

7.7. }

8.8. )

9.)}

D.

1.1. {

2.2. trains:

3.3. a map ((engId, index) ->

4.4. train: {

5.5. TrainNumber: engId

6.6.

7.7. }

8.8. )

9.}

Question 4

What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?

Options:

A.

Data layer

B.

Process layer

C.

Experience layer

D.

System layer

Question 5

Refer to the exhibits.

A web client sends a GET request to the HTTP Listener.

What response message is returned to the web client?

Options:

A.

""

B.

"End"

C.

"Start"

D.

"String is not blank"

Question 6

Refer to the payload.

The Set payload transformer sets the payload to an object. The logger component's message attribute is configured with the string "Result #["INFO"++ payload]"

What is the output of logger when this flow executes?

Options:

A.

Result INFOpayload

B.

Result INFO{"student":{"name":"Anay","age":6}}

C.

1. 1. "You called the function '++' with these arguments:

2. 2. 1: String ("INFO")

3. 3: Object ({student: {name: "Anay" as String {class: "java.lang.String"},age: 6 as Numbe...)

D.

Error : You evaluated inline expression # without ++

Question 7

Where are values of query parameters stored in the Mule event by the HTTP Listener?

Options:

A.

Inbound Properties

B.

Variables

C.

Attributes

D.

Payload

Question 8

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?

Options:

A.

Select both the 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

C.

Select only below option 2) Include project module and dependencies

D.

Select only below option 1) Attach project sources

Question 9

What is the correct syntax for a Logger component to output a message with the contents of a 3SON Object payload?

Options:

A.

The payload is: $(payload)

B.

#["The payload is: " ++ payload]

C.

The payload is: #[payload]

D.

#["The payload is: " + payload]

Question 10

Refer to the exhibit.

All three of the condition for the Choice router are true. What log messages are written?

Options:

A.

Route 1

B.

Route2

C.

Route1, Route2

D.

Route1, Route2, Default

Question 11

Refer to the exhibits. In the choice router, the When expression for the domestic shipping route is set to "#[payload= "FR"]".

What is the output of logger after the execution of choice router is completed?

Options:

A.

"Domestic"

B.

"International"

C.

"US"

D.

A dataweave syntax error

Question 12

Refer to the exhibit. APIkit is used to generate flow components for the RAML specification.

How many apikit:router XML elements are generated to handle requests to every endpoint defined in the RAML specification?

Options:

A.

3

B.

5

C.

2

D.

1

Question 13

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?

Options:

A.

RAML file to define SOAP services

B.

WSDL file

C.

JSON file

D.

plain text file documenting API's

Question 14

What is output of Dataweave flatten function?

Options:

A.

Object

B.

Map

C.

Array

D.

LInkedHashMap

Question 15

An API has been created in Design Center. What is the next step to make the API discoverable?

Options:

A.

Publish the API to Anypoint Exchange

B.

Publish the API from inside flow designer

C.

Deploy the API to a Maven repository

D.

Enable autodiscovery in API Manager

Question 16

According to Semantic Versioning, which version would you change for incompatible API changes?

Options:

A.

No change

B.

MINOR

C.

MAJOR

D.

PATCH

Question 17

Where is metadata stored in a Mule project

Options:

A.

Config.yaml file

B.

POM.xml file

C.

application-types.xml

D.

Global Element

Question 18

Refer to the exhibits.

The Mule application implements a REST API that accepts GET requests from web clients on the URLs: http://acme com/order/status and http:Vacme.com/customer/status.

What path value can be set in the HTTP GE~ event source to accept web client requests from both of these URLs?

Options:

A.

*[order,customer]/status

B.

*/status

C.

?[order,customer]/status

D.

*status

Question 19

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?

Options:

A.

/accounts/retail/finance

B.

/accounts?account_type=retail&industry=finance

C.

/accounts/account_type=retail/industry=finance

D.

/accounts?account_type:retail&industry:finance

Question 20

Refer to the exhibits. In the color flow , both the variable named color and payload are set to "red".

An HTTP POST request is then sent to the decideColor flow's HTTP Listener.

What is the payload value at the Logger component after the HTTP request completes?

Options:

A.

white

B.

red

C.

blue

D.

Error message

Question 21

An On Table Row Database listener retrieves data from a table that contains record_id, an increasing numerical column.

How should the listener be configured so it retrieves new rows at most one time?

Options:

A.

Set the target to store the last retrieved record_id value

B.

Set the ObjectStore to store the last retrieved record_id value

C.

Set the target to the record_id column

D.

Set the watermark column to the record id column

Question 22

Refer to the exhibit.

The Database Select operation returns five rows from a database. What is logged by the Logger component?

Options:

A.

"Array"

B.

"Object"

C.

"LinkedHashMap"

D.

"CaselnsensitrveHashMap"

Question 23

Which of the below is not the mandatory configurations for HTTP Listener?

Options:

A.

Path

B.

Allowed methods

C.

HTTP port in Connector Configuration

D.

HTTP host in Connector Configuration

Question 24

Refer to the exhibits.

The Batch Job scope contains two Batch Steps scopes with different accept expression.

The input payload is passed to the Batch Job scope.

After the entire payload is processed by the batch job scope , what messages have been logged by the Logger component?

Options:

A.

1.{amount=140}

2.{amount=102}

3.{step2amount=100}

B.

1.{amount=140}

2.{amount=102}

3.{step2amount=100}

4.{step2amount=40}

C.

1.{amount=140}

2.{amount=102}

3.{step2amount=100}

4.{step2amount=140}

D.

1.{amount=140}

2.{amount=102}

3.{step2amount=100}

4.{step2amount=140}

5.{step2amount=102}

Question 25

A flow needs to combine and return data from two different data sources. It contains a Database SELECT operation followed by an HTTP Request operation.

What is the method to capture both payloads so the payload from the second request does not overwrite that from the first?

Options:

A.

Put the Database SELECT operation inside a Cache scope

B.

Put the Database SELECT operation inside a Message Enricher scope

C.

Nothing, previous payloads are combined into the next payload

D.

Save the payload from the Database SELECT operation to a variable

Question 26

How are query parameters dynamically passed to an outbound REST request using an HTTP Request operation?

Options:

A.

As query parameters in the HTTP Request operation

B.

As URI parameters in the HTTP Request operation

C.

In the Mule event's payload

D.

As flow variables

Question 27

How can you call a subflow from Dataweave?

Options:

A.

Not possible in Mule 4

B.

Import function

C.

Lookup function

D.

Include function

Question 28

What path setting is required for an HTTP Listener endpoint to route all requests to an APIkit router?

Options:

A.

/(*)

B.

/

C.

/()

D.

“/*”

Question 29

Which of the following is invalid type of event processor which can be used as a router ?

Options:

A.

Choice

B.

Round Robin

C.

Pick First

D.

First Successful

Question 30

Refer to the exhibits. A web client sends a POST request to the HTTP Listener and the Validation component in the Try scope throws an error.

What response message is returned to the web client?

Options:

A.

Validation Error

B.

"END"

C.

"ERROR1"

D.

''ERROR2"

E.

Validation Error

F.

"END"

G.

"ERROR1"

Question 31

A company has an API to manage departments, with each department identified by a unique deptld. The API was built with RAML according to MuleSoft best practices.

What is valid RAML to specify a method to update the details for a specific department?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 32

What are the latest specification of RAML available?

Options:

A.

1.2

B.

1

C.

0.8

D.

2

Question 33

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

Options:

A.

8082

B.

8080

C.

7777

D.

6666

Question 34

According to MuleSoft, what is the Center for Enablement’s role in the new IT operating model?

Options:

A.

Implements line of business projects to enforce common security requirements

B.

Creates and manages discoverable assets to be consumed by line of business developers

C.

Centrally manages partners and consultants to implement line of business projects

D.

Implements line of business projects to enforce common security requirements

Question 35

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?

Options:

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

Question 36

Mule application contains ActiveMQ JMS dependency. Mule application was compiled and run successfully in Anypoint Studio. The mule application must now be exported from Anypoint Studio and shared with other developer. What export options should be selected to create the smallest JAR file that can be imported into other developer's Anypoint Studio and run successfully?

Options:

A.

Select only Attach Project Sources only

B.

Select both Attach Project Sources and Include project modules and dependencies option

C.

Select the Include project modules and dependencies option only

D.

De-select both Attach Project Sources and Include project modules and dependencies option

Question 37

How are multiple conditions used in a Choice router to route events?

Options:

A.

To route the same event to the matched route of EVERY true condition

B.

To find the FIRST true condition, then distribute the event to the ONE matched route.

C.

None of these

D.

To find the FIRST true condition, then route the same event to the matched route and ALL FOLLOWING routes

Question 38

What is the main purpose of flow designer in Design Center?

Options:

A.

To design and develop fully functional Mule applications in a hosted development environment

B.

To design API RAML files in a graphical way

C.

To design and mock Mule application templates that must be implemented using Anypoint Studio

D.

To define API lifecycle management in a graphical way

Question 39

Refer to the 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?

Options:

A.

Success - main flow

B.

Error - main flow

C.

Error - Try scope

D.

Validation Error

Question 40

How many Mule applications can run on a CloudHub worker?

Options:

A.

At most one

B.

At least one

C.

Depends

D.

None of these

Question 41

Refer to the exhibits.

A web client sends sale data in a POST request to the Mule application. The Transform Message component then enrich the payload by prepending a vendor name to the sale data.

What is written to the sales.csv file when the flow executes?

Options:

A.

The enriched payload in JSON format

B.

The enriched payload in XML format

C.

The enriched payload in CSV format

D.

An error message

Question 42

Which Mule component provides a real-time, graphical representation of the APIs and mule applications that are running and discoverable?

Options:

A.

API Notebook

B.

Runtime Manager

C.

Anypoint Visualizer

D.

API Manager

Question 43

A shopping API contains a method to look up store details by department.

To get the information for a particular store, web clients will submit requests with a query parameter named department and uri parameter named storeId

What is valid RAML snippet that supports requests from a web client to get a data for a specific storeId and department name?

Options:

A.

1./department:

2. get:

3. uriParameter:

4. storeId:

B.

1.get:

2.uriParameter:

3.{storeId}:

4.queryParameter:

5.department:

C.

1.get:

2. queryParameter:

3. department:

4. uriParameter:

5. {storeId}:

D.

1./{storeId}:

2. get:

3. queryParameter:

4. department:

Question 44

Refer to the exhibit.

How many private flows does APIKIT generate from the RAML specification?

Options:

A.

1

B.

2

C.

3

D.

4

Question 45

Refer to the exhibits.

The Set Payload transformer In the addltem subflow uses DataWeave to create an order object.

What is the correct DataWeave code for the Set Payload transformer in the createOrder flow to use the addltem subflow to add a router cable with the price of 100 to the order?

Options:

A.

addltemf { payload: { price: "100", item: "router", itemType: "cable" } > )

B.

lookupf "addltem", { payload: { price: "100", item: "router", itemType: "cable" } } )

C.

addltemf { price: "100", item: "router", itemType: "cable" })

D.

lookupf "addltem", { price: "100", item: "router", itemType: "cable" } )

Question 46

What is the correct syntax to define and call a function in Database?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 47

What execution model is used by For Each and Batch Job scopes?

Options:

A.

For Each is single-threaded and Batch Job is multi-threaded

B.

Both are single-threaded

C.

Both are multi-threaded

D.

Batch Job is single-threaded and For Each Is multi-threaded

Question 48

How we can scale deployed Mule application vertically on cloudhub?

Options:

A.

Changing worker size

B.

Adding multiple workers

C.

Mule applications can be scaled only horizontally

D.

Option 1 and 2 both can be used

Question 49

Refer to the exhibit.

What should be changed to fix the 415 error?

Options:

A.

set the response Content-Type header to text/plain

B.

set the response Content-Type header to application/json

C.

Set the request Content-Type header to application/] son

D.

set the request Content-Type header to text/plain

Question 50

Refer to the exhibits.

A Mule application is being developed to process web client POST requests with payloads containing order information including the user name and purchased items The Shipping connector returns a shipping address for the input payloads user name The Shipping connector's Shipping Address operation is configured with a target named shippingAddress.

The Set Payload transformer needs to set an item key equal to the items value from the original received payload and a shippinglnfo key equal to the the ShippingAddress operation's response

What is a straightforward way to property configure the Set Payload transformer with the required data?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 51

What is the output type of the DataWeave map operator?

Options:

A.

String

B.

Array

C.

Map

D.

Object

Question 52

Where would you create SLA Tiers for an API?

Options:

A.

Exchange

B.

API Manager

C.

Anypoint Studio

D.

In RAML specifications

Question 53

Pick the component with which DataWeave is tightly integrated.

Options:

A.

All APIs

B.

Mule runtime

C.

Exchange

D.

Flow Designer

Question 54

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?

Options:

A.

${training.host}

B.

${training:host}

C.

#[training:host]

D.

#[training.host]

Question 55

Refer to the exhibits.

How many private flows does APIKIt generate from RAML specification?

Options:

A.

1

B.

2

C.

3

D.

4

Question 56

What is the purpose of the api:router element in APIkit?

Options:

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

Question 57

Refer to the exhibits.

This main mule application calls a separate flow called as ShippingAddress which returns the address corresponding to the name of the user sent to it as input. Output of this ShippingAddress is stored in a target variable named address.

Next set of requirement is to have a setPayload transformer which will set below two values

1) orderkey which needs to set to be equal to the order element received in the original request payload.

2) addressKey which needs to be set to be equal to the address received in response of ShippingAddress flow

What is the straightforward way to properly configure the Set Payload transformer with the required data?

A mule application is being developed which will process POST requests coming from clients containing the name and order information. Sample request is as below

Options:

A.

1. 1. {

2. 2. orderkey: "payload.order",

3. 3. addresskey: "vars.address"

4. 4. }

B.

1. 1. {

2. 2. orderkey: "attributes.shippingaddress.order",

3. 3. addresskey: "payload"

4. }

C.

1. 1. {

2. 2. orderkey: "payload.order",

3. 3. addresskey: "address"

4. }

D.

1. 1. {

2. 2. orderkey: "attributes.order",

3. 3. addresskey: "vars.address"

4. }

Question 58

A Mule project contains a DataWeave module called MyModule.dwl that defines a function named formatString. The module is located in the project's src/main/resources/modules folder.

What is the correct way in DataWeave code to import MyModule using a wildcard and then call the module's formatString function?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 59

Which of the below is not a valid category for connector type?

Options:

A.

Gold

B.

Select

C.

Premium

D.

Community

Question 60

Refer to exhibits.

What message should be added to Logger component so that logger prints "The city is Pune" (Double quote should not be part of logged message)?

Options:

A.

#["The city is" ++ payload.City]

B.

The city is + #[payload.City]

C.

The city is #[payload.City]

D.

#[The city is ${payload.City}

Question 61

What is minimal requirement in a flow for a Mule application to compile?

Options:

A.

Event Source

B.

Event Processors

C.

Error handlers

D.

Source and processors both

Question 62

A web client submits a request to http://localhost:8081?accountType=personal. The query parameter is captured using a Set Variable transformer to a variable named accountType.

What is the correct DataWeave expression to log accountType?

Options:

A.

Account Type: #[flowVars.accountType]

B.

Account Type: #[message.inboundProperties.accountType]

C.

Account Type: # [attributes.accountType]

D.

Account Type: #[vars.accountType]

Question 63

A Scatter-Gather processes three separate HTTP requests. Each request returns a Mule event with a JSON payload. What is the final output of the Scatter-Gather?

Options:

A.

An Array of the three Mule event Objects

B.

An Object containing all three Mule event Objects

C.

An Array of the three JSON payload Objects

D.

An Object containing all three JSON payload Objects

Question 64

Refer to the exhibit.

What payload is returned from a request to http//localhost.8081/

Refer to the exhibits, what payload is returned from a request to http://localhost;8081/?

Options:

A.

1

B.

2

C.

3

D.

4

Question 65

Refer to the exhibits.

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

Options:

A.

[[1,2,3,4], 14]

B.

[[order1, order2, order3, order4], 14]

C.

[[1,2,3,4], 10]

D.

[orderlorder2order3order4,14]

Question 66

From which application , Organization Administrators can approve/revoke/delete SLA tier access requests

Options:

A.

API Exchange

B.

API Portal

C.

API Gateway

D.

API Manager

Question 67

Refer to the exhibit.

The Mule application's connectors are configured with property placeholders whose values are set in the config.yaml file

What must be added to the Mule application to link the config.yaml file's values with the property placeholders?

Options:

A.

A configuration-properties element in the acme-app xml file

B.

A dependency element in the pom xml file

C.

A file-config element in the acrne-app xml file

D.

A propertiesFile key/value pair in the mule-artifact json file

Question 68

Refer to the exhibits. The main flow contains an HTTP Request in the middle of the flow. The HTTP Listeners and HTTP Request use default configurations.

A web client submits a request to the main flow's HTTP Listener that includes query parameters for the pedigree of the piano.

What values are accessible to the Logger component at the end of the main flow?

Options:

A.

payload

B.

payload

pedigree query params

C.

payload

producer var

D.

payload

pedigree query params producer var

Question 69

Refer to the exhibits.

The Mule application does NOT define any global error handlers.

The Validation component in the private flow throws an error

What response message is returned to a web client request to the main flow's HTTP Listener?

Options:

A.

''Child error"

B.

"Parent error"

C.

"Validation Error"

D.

"Parent completed"

Question 70

Refer to the exhibit.

What is the correct syntax to add an employee ID as a URI parameter in an HTTP Listener path?

Options:

A.

(employeelD)

B.

${emp!oyeelD}

C.

{employeelD}

D.

# [employeelD]

Demo: 70 questions
Total 235 questions