Special New Year Discount Limited Time 65% Offer - Ends in 0d 00h 00m 00s - Coupon code: netdisc

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

Page: 1 / 21
Total 210 questions

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

Question 1

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?

Options:

A.

booklSBN

B.

attributes.booklSBN

C.

flowVars.booklSBN

D.

vars. booklSBN

Question 2

Refer to the exhibits.

A web client submits a request to below flow. What is the output at the end of the flow?

Options:

A.

String

B.

Object

C.

Java

D.

XML

Question 3

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 4

Refer to the exhibit. The Batch Job processes, filters and aggregates records, What is the expected output from the Logger component?

Options:

A.

[10. 20, 30. 40, 50, 60]

B.

[10. 20] [30, 40] [50, 60]

C.

[20, 40, 60]

D.

[20. 40] [60]

Question 5

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 6

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?

Options:

A.

examples: !include StudentExample.raml

B.

examples: #import StudentExample.raml

C.

examples: !include examples/StudentExample.raml

D.

examples: #import examples/StudentExample.raml

Question 7

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 8

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 9

Refer to the exhibits.

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

Options:

A.

EU

B.

US

C.

"REGION"

D.

["US", "EU"]

Question 10

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 11

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 12

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 13

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 14

Which one of them is NOT a flow in Mule?

Options:

A.

sync flow

B.

subflow

C.

async sub flow

D.

async flow

Question 15

What asset cannot be created using Design Center?

Options:

A.

Mule Applications

B.

API fragments

C.

API specifications

D.

API portals

Question 16

Following Mulesoft's recommended API-led connectivity approach , an organization has created an application network. The organization now needs to create API's to transform , orchestrate and aggregate the data provided by the other API's in the application network. This API should be flexible enought ot handle the data from additional API's in future.

According to Mulesoft's recommended API-led connectivity approach , what is the best layer for this new API?

Options:

A.

Process layer

B.

System layer

C.

Experience layer

D.

Data layer

Question 17

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 18

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 19

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?

Options:

A.

Incoming array objects would be split into three and each part would be sent to one route each in sequential manner

B.

Incoming array objects would be split into three and each part would be sent to one route each in parallel

C.

Entire event would be sent to each route sequentially

D.

Entire event would be sent to each route in parallel

Question 20

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 21

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 22

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 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 Set Payload transformer in the addltem child flow 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 child flow to add a router call with the price of 100 to the order?

Options:

A.

lookup( "addltern", { price: "100", item: "router", itemType: "cable" } )

B.

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

C.

lookup( "addltem", { payload: { price: "100", item: "router", itemType: "cable" } > )

D.

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

Question 25

Which keyword do you use to create a new function in DataWeave?

Options:

A.

function

B.

fun

C.

func

D.

map

Question 26

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 27

By default, what happens to a file after it is read using an FTP connector Read operation?

Options:

A.

The file is deleted from the folder

B.

The file is moved to a different folder

C.

The file stays in the same folder unchanged

D.

The file is renamed in the same folder

Question 28

A Mule project contains a DataWeave module like WebStore.dwl that defines a function named loginUser. The module file is located in the project's src/main/resources/libs/etl folder.

What is correct DataWeave code to import all of the WebStore.dwl file's functions and then call the loginUser function for the login

"Todd.Pal@mulesoft.com"?

Options:

A.

1. 1. import libs.etl

2. 2. ---

3. 3. WebStore.loginUser("Todd.Pal@mulesoft.com")

B.

1. 1. import * from libs::etl

2. 2. ---

3. 3. WebStore::loginUser("Todd.Pal@mulesoft.com")

C.

1. 1. import libs.etl.WebStore

2. 2. ---

3. 3. loginUser("Todd.Pal@mulesoft.com")

D.

1. 1. import * from libs::etl::WebStore

2. 2. ---

3. 3. loginUser("Todd.Pal@mulesoft.com")

Question 29

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?

"Domestic"

"International"

"US"

A dataweave syntax error

(Correct)

Options:

Question 30

A web client submits a request to http://localhost:8081?flrstName=john. What is the correct DataWeave expression to access the firstName parameter?

Options:

A.

#[attributes.queryParams.firstName]

B.

#[message.queryParams.hrstName]

C.

#[message.inboundProperties.'http.query.params'.firstName]

D.

#[attributes.'http.query.params'.firstName]

Question 31

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

Page: 1 / 21
Total 210 questions