Big Halloween Sale Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

Salesforce Salesforce-MuleSoft-Developer-I Salesforce Certified MuleSoft Developer (Mule-Dev-201) Exam Practice Test

Page: 1 / 23
Total 230 questions

Salesforce Certified MuleSoft Developer (Mule-Dev-201) Questions and Answers

Question 1

What DataWeave expressiontransforms the array a to the XML output?

Question # 1

Options:

A.

1.1. trains:2.2. {(3.3. a map ((engId, index) ->4.4. train: {5.5. TrainNumber: engId6.6.7.7. }8.8. )9.9. )}

B.

1.1. trains:2.2. a map ((engId, index) ->3.3. train: {4.4. TrainNumber:engId5.5.6.6. }7.7. )

C.

1.1. {(2.2. trains:3.3. a map ((engId, index) ->4.4. train: {5.5. TrainNumber: engId6.6.7.7. }8.8. )9.)}

D.

1.1. {2.2. trains:3.3. a map ((engId, index) ->4.4. train: {5.5. TrainNumber: engId6.6.7.7. }8.8. )9.}

Question 2

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)

Question # 2

B)

Question # 2

C)

Question # 2

D)

Question # 2

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 3

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 4

Refer to the exhibits.

A web client sends sale data ina 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?

Question # 4

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 5

Refer to the exhibits.

Question # 5

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

A)

Question # 5

B)

Question # 5

C)

Question # 5

D)

Question # 5

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 6

Refer to the exhibit.

Question # 6

What DataWeave expression transforms the conductorlds arrayto the XML output?

A)

Question # 6

B)

Question # 6

C)

Question # 6

D)

Question # 6

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 7

A flowcontains 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 8

Refer to the exhibits.

Larger image

Question # 8

Larger image

Question # 8

Larger image

Question # 8

The Mule application configures and uses two HTTP Listener global configuration elements.

Mule application is run in Anypoint Studio.

If the mule application starts correctly, what URI and port numbers can receive web client requests? If the mule applications fails to start , what is the reason for the failure?

Options:

A.

The mule application fails to startThere is URL path conflict because both HTTP Listeners are configured with same path

B.

The mule applicationstart successfullyWeb client requests can only be received at URI on port 2222 but not on port 3333

C.

The mule application fails to start because of the port binding conflict as HTTP request also use same port i.e. 3333

D.

The mule application start successfullyWeb client requests can be received at URI on port 2222 and on port 3333.

Question 9

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 10

Which of the below functionality is provided by zip operator in DataWeave?

Options:

A.

Merges elements of two lists (arrays) into a single list

B.

Used for sending attachments

C.

Minimize the size of long text using encoding.

D.

All of the above

Question 11

What are the latest specification of RAML available?

Options:

A.

1.2

B.

1

C.

0.8

D.

2

Question 12

Refer to the exhibits.

Question # 12

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 13

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 14

An SLA based policy has been enabled in API Manager. What is the next step to configure the API proxy to enforce the new SLA policy?

Options:

A.

Add new property placeholders and redeploy the API proxy

B.

Add new environment variables and restart the API proxy

C.

Restart the API proxy to clear the API policy cache

D.

Add required headers to the RAML specification and redeploy the new API proxy

Question 15

Refer to the exhibits.

Question # 15

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 16

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

Options:

A.

Depends on requirement

B.

Not required

C.

Always required

D.

None of these

Question 17

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?

Question # 17

Options:

A.

Validation Error

B.

"END"

C.

"ERROR1"

D.

''ERROR2"

E.

Validation Error

F.

"END"

G.

"ERROR1"

Question 18

Refer to the exhibits.

Question # 18

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

What is the correct DataWeave code for the Set Payloadtransformer 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 19

Refer tothe exhibit.

Question # 19

Question # 19

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?

Options:

A.

APP:API RESOURCE NOT FOUND

B.

HTTP: NOT FOUND

C.

other error

D.

success - main flow

Question 20

Refer to the exhibits.

Question # 20

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?

Options:

A.

"none"

B.

The entire CSV file

C.

The database response

D.

100

Question 21

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 22

Refer to the exhibits.

Question # 22

The Set Payload transformer's value is set to {'year': '2020'}.

What message value should be added to the Logger component to output the message 'The year is 2020', withouthardcoding 2020?

Options:

A.

'#[The year is $(pay load .year)]*

B.

The year is #[payload.year]'

C.

'#[The year is " + paytoad.year]'

D.

#["The year is "++ payload.year].

Question 23

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 24

Refer to the exhibits.

Question # 24

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: engId5. 5. }6. 6. )

B.

1. 1. { trains:2. 2.3. 3. conductorIds map ((engId, index) ->4. 4. train: {5. 5. engineerId: engId6. 6. }7. 7. )8. 8. }

C.

1. 1. trains:2. 2. {(3. 3. conductorIds map ((engId, index) ->4. 4. train: {5. 5. engineerId: engId6. 6. }7. 7. )8. 8. )}

D.

1. 1. {( trains:2. 2.3. 3. conductorIds map ((engId, index) ->4. 4. train: {5. 5. engineerId: engId6. 6. }7. 7. )8. 8. )}

Question 25

Refer to theexhibits The Mule application does NOT define any global error handlers.

A web client sends a POST request to the Multi application with this input payload The File Write operation throws a FILECONNECTIVITY error

What response message is returned to the web client?

Question # 25

Question # 25

Options:

A.

"ORDER NOT_CREATED"

B.

"OTHER ERROR"

C.

"File written"

D.

"FILECONNECTIVITY"

Question 26

Refer to the exhibits. A database Address table contains a ZIPCODE column and an increasing ID column. The Address table currently contains tour (4) records. The On Table Row Database listener is configured with its watermark set to the Address table's ZIPCODE column and then the Mule application is run in Anypoint Studio tor the first time, and the On Table Row Database listener polls the Address table.

Anew row is added to the database with 1D=5 and ZIPCODE-90006, and then the On Table Row Database listener polls the database again.

Alter the next execution of the On Table Row Database listener polling, what database rows have beenprocessed by the Mule flow since the Mule application was started?

Question # 26

Options:

A.

ID ZIPCODE1 900012 900053 900094 90001

B.

ID ZIPCODE1 900012 900053 900095 90006

C.

ID ZIPCODE1 900012 900053 90009

D.

ID ZIPCODE1 900012 900053 900094 900015 90006

Question 27

Refer to the exhibit.

Question # 27

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

Options:

A.

Mule event

B.

Mule message payload

C.

Mule message

D.

Mule message attributes

Question 28

A Mule application contains aglobal error handler configured to catch any errors.

Where must the global error handler be specified so that the global error handler catches all errors from flows without their own error handlers?

Options:

A.

A configuration properties file

B.

Nowhere, the global error handler is automatically used

C.

A global element

D.

The pom.xml file

Question 29

Refer to the exhibit.

Question # 29

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 30

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

Options:

A.

/(*)

B.

/

C.

/()

D.

“/*”

Question 31

Refer to the exhibit.

Question # 31

What is the output payload in the On Complete phase

Options:

A.

summary statistics with NO record data

B.

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

C.

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

D.

The original payload: [1,2,31

Question 32

Refer to the exhibit.

Question # 32

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 33

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

Question # 33

Options:

A.

[order1, order2, order3, order4]

B.

[1, 2, 3, 4]

C.

order4

D.

order1order2order3order4

Question 34

Refer to the exhibit.

Question # 34

The Mule application's connectors areconfigured 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 35

In an application network. If the implementation but not the interface of a productAPI changes, what needs to be done to the other APIs that consume the product API?

Options:

A.

The applications associated with the other APIs must be restarted

B.

The applications associated with the other APIs must be recoded

C.

The other APIs must be updated toconsume the updated product API

D.

Nothing needs to be changed in the other APIs or their associated applications

Question 36

Refer to the exhibits.

Question # 36

The mule application is debugged in Anypoint Studio and stops at the breakpoint as shown in below exhibit.

What is the value of the payload displayed in the debugger at this breakpoint?

Options:

A.

Start

B.

Process

C.

Finished

D.

Payload is always empty at the breakpoint

Question 37

Refer to the exhibits.

Question # 37

Question # 37

The main flow contains a Flow Reference component configured to callthe child flow What part(s) of a Mule event passed to the Flow Reference component are available in the child flow?

Options:

A.

The payload and all attributes

B.

The payload and all variables

C.

The entire Mule event

D.

The payload

Question 38

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

Options:

A.

Filter modules Is Number operation

B.

Validation modules Is Number operation

C.

Validation modules Is not Number operation

D.

None of these

Question 39

Refer to the exhibit.

How should the WHERE clause be changed to set the city and state values from the configured input parameters?

Question # 39

A)

Question # 39

B)

Question # 39

C)

Question # 39

D)

Question # 39

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 40

Which one of them is NOT a flow in Mule?

Options:

A.

sync flow

B.

subflow

C.

async sub flow

D.

async flow

Question 41

Refer to the exhibits.

Question # 41

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

Options:

A.

Route1

B.

Route2

C.

Route1,Route2

D.

Route1,Route2,Default

Question 42

Refer to the exhibit.

Question # 42

What should be changed to fix the 415 error?

Options:

A.

set the response Content-Type header to text/plain

B.

set theresponse 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 43

Refer to the exhibits.

Question # 43

Question # 43

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

Options:

A.

"string"

B.

"Java"

C.

"object"

D.

"XML"

Question 44

Refer to the exhibits.

Question # 44

The Mule application implements a RESTAPI 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 45

Refer to the exhibit.

Question # 45

What can be added to the flow to persist data across different flow executions?

Options:

A.

Key/value pairs in the ObjectStore

B.

Properties of the Mule runtime flow object

C.

properties ofthe Mule runtime app object

D.

session variables

Question 46

An app team is developing a mobile banking app. It took them two months to create their own APIs to access transaction information from a central database. The app team later found out that anotherteam had already built an API that accesses the transaction information they need.

According to MuleSoft, what organization structure could have saved the app team two months of development time?

Options:

A.

Center of Excellence

B.

Center for Enablement

C.

MuleSoft Support Center

D.

Central API Review Board

Question 47

Refer to the exhibits.

Question # 47

Question # 47

The Batch Job scope processes the array of strings

After the Batch Job scope completes processing the input payload what information is logged by the Logger component?

A)

Question # 47

B)

Question # 47

C)

Question # 47

D)

Question # 47

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 48

Refer to the exhibits.

Question # 48

The main flow contains anHTTP 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 http://localhost:8081/order? col or = red?

Options:

A.

payload

B.

payloadquantity var

C.

payloadcolor query param

D.

payloadquantity var color query param

Question 49

Refer to the exhibits.

Question # 49

Question # 49

Question # 49

The Batch Job scope contains two BatchStep scopes with different accept expressions.

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

A)

Question # 49

B)

Question # 49

C)

Question # 49

D)

Question # 49

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 50

Refer to the exhibits.

Question # 50

In the requestFlow an HTTP Request operation is configured to send an HTTP request with an XML payload. The request is sent to the HTTP Listener in the transform Flow.

That flow transforms the incoming payload into JSON format and returns the response to the HTTP request. The response of the request is stored in a target variable named the Result.

What is the payload at the Logger component after the HTTP Request?

Options:

A.

A non-empty Java object

B.

The original XML payload

C.

null

D.

The returned JSON response

Question 51

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 52

Pick the component with whichDataWeave is tightly integrated.

Options:

A.

All APIs

B.

Mule runtime

C.

Exchange

D.

Flow Designer

Question 53

Refer to the exhibits.

Question # 53

Question # 53

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 54

Which out of below is not an asset?

Options:

A.

Template

B.

Connector

C.

Exchange

D.

Example

Question 55

Refer to the exhibits.

Question # 55

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

Options:

A.

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

B.

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

C.

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

D.

[orderlorder2order3order4, 14]

Question 56

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

Question # 56

Question # 56

Options:

A.

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

B.

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

C.

[20, 40, 60]

D.

[20. 40] [60]

Question 57

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 58

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

Options:

A.

Attributes arereplaced 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

Question 59

The new RAML spec has been published to Anypoint Exchange with client credentials.

What is the next step to gain access to the API?

Options:

A.

Request access to the API in Anypoint Exchange

B.

Email the owners of the API

C.

Create a new client application

D.

No additional steps needed

Question 60

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 aremulti-threaded

D.

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

Question 61

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

Options:

A.

Publish theAPI 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 62

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 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 exhibits.

Question # 64

The input array of strings is processed by the batch job that processes, fitters, and aggregates the values.

What is the last message logged by the Logger component after thebatch job completes processing?

A)

Question # 64

B)

Question # 64

C)

Question # 64

D)

Question # 64

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 65

Refer to the exhibit.

Question # 65

What Database expression transforms theinput to the output?

A)

Question # 65

B)

Question # 65

C)

Question # 65

D)

Question # 65

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 66

Refer to the exhibits.

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

Question # 66

Question # 66

Options:

A.

Configure the correct host URL

B.

Configure the correct database name

C.

Configure the correct table name

D.

Configure the correct JDBC driver

Question 67

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 68

What is the difference between a subflow and a sync flow?

Options:

A.

No difference

B.

Subflow has no error handling of its own and sync flow does

C.

Sync flow has no error handlingof its own and subflow does

D.

Subflow is synchronous and sync flow is asynchronous

Question 69

What is the output type of the DataWeave map operator?

Options:

A.

String

B.

Array

C.

Map

D.

Object

Page: 1 / 23
Total 230 questions