Labour Day Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > MuleSoft > MuleSoft Certified Developer > MCD-Level-1

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

Question # 4

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?

A.

3

B.

5

C.

2

D.

1

Full Access
Question # 5

A web client sends one GET request to the test flow's HTTP Listener, which causes the test flow to call the updateTemp flow After the test flow returns a response, the web client then sends a different GET request to trie getTemp flow's HTTP Listener The test flow is not called a second time.

What response is returned from the request to the getTemp flow's HTTP Listener?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 6

What HTTP method in a RESTful web service is typically used to completely replace an existing resource?

A.

GET

B.

PATCH

C.

PUT

D.

POST

Full Access
Question # 7

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

A.

No change

B.

MINOR

C.

MAJOR

D.

PATCH

Full Access
Question # 8

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

A.

Path

B.

Allowed methods

C.

HTTP port in Connector Configuration

D.

HTTP host in Connector Configuration

Full Access
Question # 9

Refer to the exhibits.

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

A.

The JSON payload

B.

An error message

C.

Nothing

D.

The payload convert to CVS

Full Access
Question # 10

How we can scale deployed Mule application vertically on cloudhub?

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

Full Access
Question # 11

Refer to the exhibit.

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

A.

(employeelD)

B.

${emp!oyeelD}

C.

{employeelD}

D.

# [employeelD]

Full Access
Question # 12

A RAML example fragment named StudentExample.raml is placed in the examples folder in an API specification project. What is the correct syntax to reference the fragment?

A.

examples: !include StudentExample.raml

B.

examples: #import StudentExample.raml

C.

examples: !include examples/StudentExample.raml

D.

examples: #import examples/StudentExample.raml

Full Access
Question # 13

Which file is used to define the interface contract to invoke a web service implemented as a SOAP service

A.

RAML

B.

WSDL

C.

JSON

D.

OAS

Full Access
Question # 14

Refer to the exhibits.

A web client submits a request to http://localhQst:8081. What is the structure of the payload at the end of the flow?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 15

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)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 16

Refer to the exhibit.

A Mule event is composed of a hierarchy of objects. Where in the hierarchy are variables stored?

A.

Mule event

B.

Mule message payload

C.

Mule message

D.

Mule message attributes

Full Access
Question # 17

Refer to the exhibits.

The main flow contains a Flow Reference to the child flow.

A web client sends a GET request to the main flow's HTTP Listener that includes a make query parameter.

What values are accessible in the child flow?

A.

payload

B.

payload

make query param

C.

payload

model var

D.

payload

make query param model var

Full Access
Question # 18

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

B.

Route2

C.

Route1,Route2

D.

Route1,Route2,Default

Full Access
Question # 19

Refer to the exhibit.

What data is expected by the POST /accounts endpoint?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 20

Refer to the exhibits.

The Batch job processes an array of strings.

What information is logged by the logger component after the batch job scope completes processing of the input payload?

A.

Total Records Processed: 3

Successful Records: 3

Failed Records: 0

payload: ["A","B","C"]

B.

["A","B","C"]

C.

Total Records Processed: 3

Successful Records: 3

Failed Records: 0

payload: ["a", "b", "c"]

D.

Total Records Processed: 3

Successful Records: 3

Failed Records: 0

Full Access
Question # 21

Refer to the exhibit.

The main flow is configured with their error handlers. A web client submit a request to the HTTP Listener and the HTTP Request throws an HTTP:NOT_FOUND error.

What response message is returned?’’

What response message is returned?

A.

APP: API RESOURCE NOT FOUND

B.

HTTP: NOT FOUND

C.

other error

D.

success - main flow

Full Access
Question # 22

Refer to the exhibits.

Mule application has an HTTP request configuration where host name is hardcoded. Organization is looking to move host and port values to configuration file. What valid expression can be used to so that HTTP configuration can pick the value from configuration file?

A.

#[training.host]

B.

${http.host}

C.

#{training.host}

D.

${training.host}

Full Access
Question # 23

A function named newProdCode needs to be defined that accepts two input parameters, an integer value for itemID and a string value for productCategory, and returns a new product code.

What is the correct DataWeave code to define the newProdCode function?

A.

fun newProdCode{itemID: Number, productCategory: String) —> "PC-" ++ productCategory ++ (itemID as String)

B.

fun newProdCode(itemID: Number, productCategory: String) = "PC-" ++ productCategory ++ (itemID as String)

C.

function newProdCode(itemID: Number, productCategory: String) =

"PC-" ++ productCategory ++ (itemID as String)

D.

var newProdCode(itemID: Number, productCategory: String) ->

"PC-" ++ productCategory ++ (itemID as String)

Full Access
Question # 24

Refer to the exhibits.

The Set Variable transformer is set with value #[ [ first "Max" last "Mule"} ].

What is a valid DataWeave expression to set as the message attribute of the Logger to access the value "Max" from the Mule event?

A.

vars "customer first"

B.

"customer first"

C.

customer first

D.

vars "customer" "first"

Full Access
Question # 25

Refer to the exhibits.

What is valid text to set the field in the Database connector configuration to the username value specified in the config.yaml file?

A.

${db.username>

B.

#[db.username]

C.

#[db:username]

D.

${db:username>

Full Access
Question # 26

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

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 27

Does a root element required when creating a XML response using Dataweave?

A.

Depends on requirement

B.

Not required

C.

Always required

D.

None of these

Full Access
Question # 28

An API specification is designed using RAML. What is the next step to create a REST Connector from this API specification?

A.

Download the API specification and build the interface using APIkit

B.

Publish the API specification to Any point Exchange

C.

Implement the API specification using flow designer in Design Center

D.

Add the specification to a Mule project's src/main/resources/api folder

Full Access
Question # 29

Refer to the exhibits. The Mule application does NOT define any global error handler elements. A web client sends a GET request to the HTTP Listener. What response message is returned to the web client?

A.

"End"

B.

"Start"

C.

-...

D.

"Siring is not blank"

Full Access
Question # 30

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

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

Full Access
Question # 31

An API was designed in API Designer, published to Anypoint Exchange, then imported into API Manager.

A Mule application implements this API and is deployed to CloudHub. API Manager manages this deployed API implementation.

What is the easiest and most idiomatic (used for its intended purpose) way to enforce a Client ID Enforcement policy on this Mule application?

A.

In API Manager, apply a Client ID Enforcement policy for the API instance

B.

In Anypoint Studio, code a custom policy tor Client ID Enforcement and then add the custom policy to Runtime Manager for the Mule application deployment

C.

In Anypoint Design Center, code a custom policy for Client ID Enforcement and then publish the custom policy to the API portal in Anypoint Exchange

D.

In API Designer, add Client ID Enforcement policy requirements to the API specification

Full Access
Question # 32

Which of the below is used by Mule application to manage dependencies which make sharing the projects lightweight and easier?

A.

Configuration file

B.

Global element

C.

POM.xml

D.

Cloudhub

Full Access
Question # 33

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

A.

Event Source

B.

Event Processors

C.

Error handlers

D.

Source and processors both

Full Access
Question # 34

A flow has a JMS Publish consume operation followed by a JMS Publish operation. Both of these operations have the default configurations. Which operation is asynchronous and which one is synchronous?

A.

Publish consume: Synchronous. Publish: Asynchronous.

B.

Publish consume: Asynchronous. Publish: Synchronous

C.

Publish consume: Asynchronous. Publish: Asynchronous

D.

Publish consume: Synchronous. Publish: Synchronous

Full Access
Question # 35

Refer to the exhibits.

Each route in the Scatter-Gather sets the payload to the number shown in the label. What response is returned to a web client request to the HTTP Listener?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 36

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?

A.

Validation Error

B.

"END"

C.

"ERROR1"

D.

''ERROR2"

E.

Validation Error

F.

"END"

G.

"ERROR1"

Full Access
Question # 37

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

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

Full Access
Question # 38

What happens to the attributes of a Mule event in a flow after an outbound HTTP Request is made?

A.

Attributes are replaced with new attributes from the HTTP Request response (which might be null)

B.

New attributes may be added from the HTTP response headers, but no headers are ever removed

C.

Attributes do not change

D.

Previous attributes are passed unchanged

Full Access
Question # 39

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

B.

WSDL file

C.

JSON file

D.

plain text file documenting API's

Full Access
Question # 40

Refer to the exhibits.

A Mule application contains a Choice router. What is logged when the flow completes?

A.

EU

B.

US

C.

"REGION"

D.

["US", "EU"]

Full Access
Question # 41

How can you call a subflow from Dataweave?

A.

Not possible in Mule 4

B.

Import function

C.

Lookup function

D.

Include function

Full Access
Question # 42

A Batch Job scope has five batch steps. An event processor throws an error in the second batch step because the input data is incomplete. What is the default behavior of the batch job after the error is thrown?

A.

All processing of the batch job stops.

B.

Event processing continues to the next batch step.

C.

Error is ignored

D.

Batch is retried

Full Access
Question # 43

A Mule application contains an ActiveMQ JMS dependency. The Mule application was developed in Anypoint Studio and runs successfully in Anypoint Studio.

The Mule application must now be exported from Anypoint Studio and shared with another developer.

What export options create the smallest JAR file that can be imported into the other developer's Anypoint Studio and run successfully?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 44

Refer to the exhibits.

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

A.

1. 1. trains:

2. 2. conductorIds map ((engId, index) ->

3. 3. train: {

4. 4. engineerId: engId

5. 5. }

6. 6. )

B.

1. 1. { trains:

2. 2.

3. 3. conductorIds map ((engId, index) ->

4. 4. train: {

5. 5. engineerId: engId

6. 6. }

7. 7. )

8. 8. }

C.

1. 1. trains:

2. 2. {(

3. 3. conductorIds map ((engId, index) ->

4. 4. train: {

5. 5. engineerId: engId

6. 6. }

7. 7. )

8. 8. )}

D.

1. 1. {( trains:

2. 2.

3. 3. conductorIds map ((engId, index) ->

4. 4. train: {

5. 5. engineerId: engId

6. 6. }

7. 7. )

8. 8. )}

Full Access
Question # 45

Refer to the exhibits.

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

A.

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

B.

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

C.

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

D.

[orderlorder2order3order4, 14]

Full Access
Question # 46

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)?

A.

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

B.

The city is + #[payload.City]

C.

The city is #[payload.City]

D.

#[The city is ${payload.City}

Full Access
Question # 47

How many Mule applications can run on a CloudHub worker?

A.

At most one

B.

At least one

C.

Depends

D.

None of these

Full Access
Question # 48

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

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

Full Access
Question # 49

Refer to the exhibits.

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

A.

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

B.

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

C.

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

D.

[orderlorder2order3order4,14]

Full Access
Question # 50

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

A.

Data layer

B.

Process layer

C.

Experience layer

D.

System layer

Full Access
Question # 51

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/?

A.

1

B.

2

C.

3

D.

4

Full Access
Question # 52

A flow contains an HTTP Listener as the event source. What is the DataWeave expression to log the Content-Type header using a Logger component?

A.

#["Content-Type: " ++ attributes.headers.'content-type']

B.

#["Content-Type: " + headers.'content-type']

C.

#["Content-Type: " + attributes.headers.'content-type']

D.

#["Content-Type: " ++ headers.'content-type']

Full Access
Question # 53

What is output of Dataweave flatten function?

A.

Object

B.

Map

C.

Array

D.

LInkedHashMap

Full Access
Question # 54

What module and operation will throw an error if a Mule events payload is not number ?

A.

Filter modules Is Number operation

B.

Validation modules Is Number operation

C.

Validation modules Is not Number operation

D.

None of these

Full Access
Question # 55

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

A.

Choice

B.

Round Robin

C.

Pick First

D.

First Successful

Full Access
Question # 56

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

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

Full Access
Question # 57

Refer to the exhibits.

The input array of strings is processed by the batch job that processes, filters, and aggregates the values. What is the last message logged by the Logger component after the batch job completes processing?

A.

[ ["A", "C", "D" ], ["E"] ]

B.

[''E'']

C.

[''D", "E"]

D.

[ "A", "C, "D", "E" ]

Full Access
Question # 58

Refer to the exhibits.

Set paylaod transformer is set the firstName and lastName of the customer as shown in below images.

What is the correct Dataweave expression which can be added in message attribute of a Logger activity to access firstName (which in this case is Madhav) from the incoming event?

A.

firstName

B.

customer.firstName

C.

vars."customer.firstName"

D.

vars."customer"."firstName"

Full Access
Question # 59

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

B.

attributes.booklSBN

C.

flowVars.booklSBN

D.

vars. booklSBN

Full Access
Question # 60

Where would you create SLA Tiers for an API?

A.

Exchange

B.

API Manager

C.

Anypoint Studio

D.

In RAML specifications

Full Access
Question # 61

Where is metadata stored in a Mule project

A.

Config.yaml file

B.

POM.xml file

C.

application-types.xml

D.

Global Element

Full Access
Question # 62

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

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

Full Access
Question # 63

Refer to the exhibits.

As a mulesoft developer, what you would change in Database connector configuration to resolve this error?

A.

Configure the correct host URL

B.

Configure the correct database name

C.

Configure the correct table name

D.

Configure the correct JDBC driver

Full Access
Question # 64

Refer to the exhibits.

The orders.csv file is read, then processed to look up the orders in a database. The Mule application is debugged in Any point Studio and stops at the breakpoint.

What is the payload shown in the debugger at this breakpoint?

A.

"none"

B.

The entire CSV file

C.

The database response

D.

100

Full Access
Question # 65

Refer to the exhibits.

The mule application implements a REST API that accepts GET request from two URL's which are as follows

1) http://acme.com/order/status

2) http://acme.com/customer/status

What path value should be set in HTTP listener configuration so that requests can be accepted for both these URL's using a single HTTP listener event source?

A.

*[order,customer]/status

B.

?[order,customer]/status

C.

*/status

D.

*status

Full Access
Question # 66

Refer to the exhibits. A company has defined this Book data type and Book example to be used in APIs. What is valid RAML for an API that uses this Book data type and Book example?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 67

Refer to the exhibit.

The error occurs when a project is run in Anypoint Studio. The project, which has a dependency that is not in the MuleSoft Maven repository, was created and successfully run on a different computer.

What is the next step to fix the error to get the project to run successfully?

A.

Edit the dependency in the Mule project's pom.xml file

B.

Install the dependency to the computer's local Maven repository

C.

Deploy the dependency to MuleSoft's Maven repository

D.

Add the dependency to the MULE_HOME/bin folder

Full Access
Question # 68

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?

A.

"Domestic"

B.

"International"

C.

"US"

D.

A dataweave syntax error

Full Access
Question # 69

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

A.

API Exchange

B.

API Portal

C.

API Gateway

D.

API Manager

Full Access
Question # 70

Refer to the exhibits. What payload is logged at the end of the main flow?

A.

[order1, order2, order3, order4]

B.

[1, 2, 3, 4]

C.

order4

D.

order1order2order3order4

Full Access