Pre-Winter Special Sale - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

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

Page: 1 / 24
Total 235 questions

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

Testing Engine

  • Product Type: Testing Engine
$42  $119.99

PDF Study Guide

  • Product Type: PDF Study Guide
$36.75  $104.99
Question 1

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?

Options:

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)

Question 2

Which of the below activity doesn't support parallel execution?

Options:

A.

Scatter-Gather Router

B.

First Successful Router

C.

Parallel For Each

D.

Batch job

Question 3

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 4

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 5

What is the correct Syntax to add a customer ID as a URI parameter in the HTTP listener's path attribute?

Options:

A.

#[customerID]

B.

$[customerID]

C.

{customerID}

D.

(customerID)

Question 6

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 7

Refer to the exhibits. The webClient flow sends requests to the mockServer Row's HTTP Listener.

An HTTP: METHOD_NOT ALLOWED error is thrown each time the webClient flow executes.

What attribute value must be changed in the webClient flow's HTTP Request operation to prevent this error from being thrown?

Options:

A.

Change the method attribute's value to "POSL

B.

Change the path attribute's value to 7api/partners/fastShopping"

C.

Change the protocol attribute's value to "HTTPS"

D.

Change the method attribute's value to "*"

Question 8

Refer to the exhibit.

What is the output payload in the On Complete phase

Options:

A.

summary statistics with NO record data

B.

The records processed by the last batch step: [StepTwol, StepTwo2, StepTwo3]

C.

The records processed by all batch steps: [StepTwostepOnel, stepTwostepOne2, StepTwoStepOne3]

D.

The original payload: [1,2,31

Question 9

What is the output type of the DataWeave map operator?

Options:

A.

String

B.

Array

C.

Map

D.

Object

Question 10

What should this endpoint return? &surname=Bell

Options:

A.

Patient with name as John

B.

Patient with surname as bell

C.

Patients with either name as John or surname as Bell

D.

Patients with name as John and surname as Bell

Question 11

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 12

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 13

Refer to the exhibits.

The web client sends a POST request to the ACME Order API with an XML payload. An error is returned.

What should be changed in the request so that a success response code is returned to the web client?

Options:

A.

Set a request header with the name Content-Type to a value of applicatron/octet-stream

B.

Set a request header with the name Content-Type to a value of application/xml

C.

Set a response header with the name Content-Type to a value of applkation/xml

D.

Set a response header with the name Content-Type to a value of application/octet-stream

Question 14

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 15

Refer to the exhibits.

A web client submits the request to the HTTP Listener. What response message would be returned to web client?

Options:

A.

End

B.

String is not blank

C.

No response would be sent back to client and request will get errored out in Mule

D.

Start

Question 16

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 17

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 18

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)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 19

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 20

In the Database On Table Row operation, what does the Watermark column enable the On Table Row operation to do?

Options:

A.

To avoid duplicate processing of records in a database.

B.

To delete the most recent records retrieved from a database to enable database caching

C.

To enable duplicate processing of records in a database

D.

To save the most recent records retrieved from a database to enable database caching

Question 21

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

To get information for a particular store, web clients will submit requests with a query parameter named department and a URI parameter named storeld.

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

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 22

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

Options:

A.

Mule event attributes

B.

Mule event message

C.

Mule application properties

D.

Mule event

Question 23

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 24

A Mule application's HTTP Listener is configured with the HTTP protocol. The HTTP listeners port attribute is configured with a property placeholder named http.port. The mule application sets the http.port property placeholder's value to 9090

The Mule application is deployed to CloudHub without setting any properties in the Runtime manager Properties tab and a log message reports the status of the HTTP listener after the Mule application deployment completes.

After the mule applications is deployed, what information is reported in the worker logs related to the port on which the Mule application's HTTP Listener listens?

Options:

A.

The HTTP Listener is listening on port 80

B.

The HTTP Listener is listening on port 9090

C.

The HTTP Listener is listening on port 8081

D.

The HTTP Listener failed to bind to the port and is not listening for connections

Question 25

Which one of them is NOT a flow in Mule?

Options:

A.

sync flow

B.

subflow

C.

async sub flow

D.

async flow

Question 26

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 27

Refer to the exhibit. The input array of strings is passed to the batch job, which does NOT do any filtering or aggregating. What payload is logged by the Logger component?

Options:

A.

Summary report of processed records

B.

[ "Apple", "Banana" ]

C.

[ "Apptel2", "Bananal2" ]

D.

[ "Apptel", "Bananal", 2 ]

Question 28

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?

Options:

A.

"End"

B.

"Start"

C.

-...

D.

"Siring is not blank"

Question 29

A Database On Table Row listener retrieves data from a CUSTOMER table that contains a primary key userjd column and an increasing kxjin_date_time column. Neither column allows duplicate values.

How should the listener be configured so it retrieves each row at most one time?

Options:

A.

Set the watermark column to the bgin_date_time column

B.

Set the target value to the last retrieved login_date_time value

C.

Set the target value to the last retrieved user_jd value

D.

Set the watermark column to the user_Id column

Question 30

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?

Options:

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

Question 31

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 32

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 33

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 34

What valid RAML retrieves details on a specific by its orderld as a URL parameter?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 35

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 36

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?

Options:

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

Question 37

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?

Options:

A.

vars "customer first"

B.

"customer first"

C.

customer first

D.

vars "customer" "first"

Question 38

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?

Options:

A.

#[training.host]

B.

${http.host}

C.

#{training.host}

D.

${training.host}

Question 39

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 40

Refer to the exhibit. What is the output of logger component?

Options:

A.

String

B.

Object

C.

Array

D.

Map

Question 41

A REST connect module is generated for a RAML specification. and then the rest connect module is imported in mule application in Anypoint Studio. For each method of the RAML specification , what does the REST connect module provide?

Options:

A.

A scope

B.

A flow

C.

An operation

D.

An event source

Question 42

A web client sends a request to http;//localhost:8081?dept=sales. What is the correct DataWeave expression to access the value of dept?

Options:

A.

attributes.queryParams.dept

B.

attributes.dept

C.

message.queryParams.dept

D.

vars.dept

Question 43

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

Options:

A.

Centre for Empowerment

B.

Centre for Engagement

C.

Centre for Enablement

D.

Centre for Excellence

Question 44

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 45

According to MuleSoft. what is the first step to create a Modern API?

Options:

A.

Gather a list of requirements to secure the API

B.

Create an API specification and get feedback from stakeholders

C.

Performance tune and optimize the backend systems and network

D.

Create a prototype of the API implementation

Question 46

Refer to the exhibit.

What is the correct way to create a user?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 47

Refer to the exhibit.

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

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 48

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 49

In the execution of scatter gather, the "sleep 2 sec" Flow Reference takes about 2 sec to complete, and the "sleep 8 sec" Flow Reference takes about 8 sec to complete.

About how many sec does it take from the Scatter-Gather is called until the "Set Payload" transformer is called?

Options:

A.

8

B.

0

C.

2

D.

10

Question 50

An organization's Center for enablement (C4E)has built foundational assets (API specifications and implementation templates, common frameworks, and best practices guides) and published them to Anypoint Exchange.

What is a metric related to these foundational assets that helps the organization measure the success of it's C4E efforts?

Options:

A.

Utilization counts of foundational assets in production applications

B.

Correlation of each foundational asset with the counts of developers that download such asset

C.

Correlation of key performance indicators (KPI) of production applications with foundational assets

D.

Count how many Lines Of Business (LoBs) onsumed each foundational asset

Question 51

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 52

Refer to the exhibit.

What data is expected by the POST /accounts endpoint?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 53

What is not true about application properties?

Options:

A.

Application properties can be encrypted

B.

Application properties can be overridden with system properties

C.

Application properties can be defined in .yaml file only

D.

Application properties provide easier way to manage configurable values

Question 54

An HTTP Request operation sends an HTTP request with a non-empty JSON object payload to an external HTTP endpoint. The response from the external HTTP endpoint returns an XML body. The result is stored in a target named the Result.

What is the payload at the event processor after the HTTP Request?

Options:

A.

The XML response body

B.

null

C.

The original JSON request body

D.

A non-empty Java object

Question 55

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 56

What asset cannot be created using Design Center?

Options:

A.

Mule Applications

B.

API fragments

C.

API specifications

D.

API portals

Question 57

Refer to the exhibits.

A web client sends a POST request to the HTTP Listener with the payload "Hello-". What response is returned to the web client?

What response is returned to the web client?

Options:

A.

Hello- HTTP-] MS2-Three

B.

HTTP-JMS2-Three

C.

Helb-JMS1-HTTP-JMS2 -Three

D.

Hello-HTTP-Three

Question 58

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 59

Refer to the exhibit.

What is a valid expression for the Choice router’s when expression to route events to the documenticShipping flow?

Options:

A.

0#[ payload = 'US' ]

B.

#[ payload == 'US' J

C.

#[ if(payload = 'US') J

D.

#[ if(payload == "US") ]

Question 60

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

Options:

A.

[order1, order2, order3, order4]

B.

[1, 2, 3, 4]

C.

order4

D.

order1order2order3order4

Question 61

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?

Options:

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']

Question 62

Refer to the exhibits.

The main flow contains an HTTP Request. The HTTP Listeners and HTTP Request use default configurations.

What values are accessible in the child flow after a web client submits a request to col or = red?

Options:

A.

payload

B.

payload

quantity var

C.

payload

color query param

D.

payload

quantity var color query param

Question 63

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 64

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 65

Refer to the exhibits.

How many private flows does APIKIt generate from RAML specification?

Options:

A.

1

B.

2

C.

3

D.

4

Question 66

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 67

Refer to the exhibits.

The expression for the Choice router needs to be written.

What is a valid expression to route Mule events to the non-default flow?

Options:

A.

#['MuleSoft' == paytoad.company]

B.

#[ company = "MuleSoft" ]

C.

#[ if( company = "MuleSoft") ]

D.

#[ if( 'MuleSoff == payload.company) ]

Question 68

Refer to the exhibit.

What is the correct syntax to add a customer ID as a URI parameter in an HTTP Listener's path attribute?

Options:

A.

(customerlD)

B.

{customerlD}

C.

#[customerlD]

D.

${ customerID}

Question 69

To avoid hard-coding values, a flow uses some property placeholders and the corresponding values are stored in a configuration file.

Where does the configuration file's location need to be specified in the Mule application?

Options:

A.

The pom.xml file

B.

A global element

C.

The mule-art if act .json file

D.

a flow attribute

Question 70

Refer to the exhibits.

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

Options:

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. )}

Page: 1 / 24
Total 235 questions