wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Mulesoft Practice Test

Total questions: 59

Worksheet time: 2hrs 58mins

Name
Class
Date
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?

a)
b)
c)
d)
2.

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 transformFlow.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 theResult.What is the payload at the Logger component after the HTTP Request?

a)

A non-empty Java object

b)

The original XML payload

c)

The returned JSON response

d)

null

3.

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

a)

Properties of the Mule runtime app object

b)

Key/value pairs in the ObjectStore

c)

Session variables

d)

Properties of the Mule runtime flow object

4.

A Database On Table Row listener retrieves data from a CUSTOMER table that contains a primary key user_id column and an increasing login_date_time column. Neither column allows duplicate values.How should the listener be configured so it retrieves each row at most one time?

a)

Set the watermark column to the login_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_id value

d)

Set the watermark column to the user_id column

5.

A company has an API to manage purchase orders, with each record identified by a unique purchase order ID. The API was built with RAML according toMuleSoft best practices.What URI should a web client use to request order PO5555?

a)

/orders/{PO5555}

b)

/orders/order=PO5555

c)

/orders?order=PO5555

d)

/orders/PO5555

6.

The main flow contains an HTTP Request. The HTTP Listeners and HTTP Request use default configurations.A web client sends a GET request to the main flowג€™s HTTP Listener that includes a modelName query parameter.What values are accessible in the child flow?

a)

payload

b)

payload modelName query param

c)

payload planeModel var

d)

payload modelName query param planeModel var

7.

In the execution of the Scatter-Gather, the ג€sleep 1 secג€ Flow Reference takes about 1 second to complete, and the ג€sleep 5 secsג€ Flow Reference takes about 5 seconds to complete.About how many seconds does it take from the time the Scatter-Gather is called until Set Payload transformer is called?

a)

0

b)

1

c)

5

d)

6

8.

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

a)

attributes.queryParams.dept

b)

attributes.dept

c)

message.queryParams.dept

d)

vars.dept

9.

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

a)

(customerID)

b)

#[customerID]

c)

{customerID}

d)

${customerID}

10.

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

a)

Both are multi-threaded

b)

Both are single-threaded

c)

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

d)

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

11.

How would you debug Mule applications?

a)

Using breakpoints

b)

Checking RAML

c)

By Deploying apps on production

d)

Cannot do it

12.

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

a)

Attributes do not change.

b)

Previous attributes are passed unchanged.

c)

Attributes are replaced with new attributes from the HTTP Request response.

d)

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

13.

The new RAML spec has been published to Anypoint Exchange with client credentials. What is the next step to gain access to the API?

a)

Email the owners of the API.

b)

Create a new client application.

c)

No additional steps needed.

d)

Request access to the API in Anypoint Exchange.

14.

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

a)

Sync flow has no error handling of its own and subflow does.

b)

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

c)

Subflow is synchronous and sync flow is asynchronous.

d)

No difference.

15.

What is not an asset?

a)

Exchange

b)

Template

c)

Example

d)

Connector

16.

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

a)

import dw::core

b)

Not needed

c)

None of these

d)

import core

17.

What is the value of the stepVar variable after the processing of records in a Batch Job?

a)

-1

b)

0

c)

Null

d)

Last value from flow

18.

What is the object type returned by the File List operation?

a)

Object of String file names

b)

Array of String file names

c)

Object of Mule event objects

d)

Array of Mule event objects

19.

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

a)

Payload

b)

Attributes

c)

Inbound Properties

d)

Variables

20.

How can you call a flow from Dataweave?

a)

Not allowed

b)

Include function

c)

Look up function

d)

Tag function

21.

DataWeave is tightly integrated with ____________.

a)

Mule runtime

b)

All APIs

c)

Flow Designer

d)

Exchange

22.

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

a)

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

b)

To enable duplicate processing of records in a database.

c)

To avoid duplicate processing of records in a database.

d)

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

23.

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

a)

Deploy the API to a Maven repository.

b)

Publish the API from inside flow designer.

c)

Publish the API to Anypoint Exchange.

d)

Enable autodiscovery in API Manager.

24.

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

a)

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

b)

200.1234 as string as format: ".0#"

c)

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

d)

200.1234 as String as format: ".0#"

25.

How is policy defined in terms of classloader of an API?

a)

Classloader isolation does not exist between the application, the runtime and connectors, and policies.

b)

Classloader isolation exists between the application, the runtime and connectors, and policies.

c)

None of these.

d)

Classloader isolation partially exists between the application, the runtime and connectors, and policies.

26.

According to Mulesoft, how are Modern APIs treated as?

a)

products

b)

code

c)

soap services

d)

organizations

27.

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

a)

MINOR

b)

PATCH

c)

MAJOR

d)

No change

28.

What is the use of DevKit in Mule 4?

a)

Facilitates communication between third-party systems and Mule applications.

b)

No use.

c)

Offers connector end user support in a few aspects of Mule app design.

d)

Enables the development of Anypoint Connectors.

29.

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

a)

An Object containing all Mule event Objects.

b)

An Array containing all Mule event Objects.

c)

None of these.

d)

The last Mule event object.

30.

What are the latest specification of RAML available?

a)

0.8

b)

1

c)

2

d)

1.8

31.

http://dev.acme.com/api/patients?year=2016. What should this endpoint return?

a)

Patient with id 2016

b)

All patients

c)

No patients

d)

Patients from year 2016

32.

What asset can NOT be created by using Design Center?

a)

API

b)

API Portals

c)

Mule Apps

d)

API Fragments

33.

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

a)

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

b)

None of these.

c)

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

d)

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

34.

Which one of them is NOT a flow in Mule?

a)

sync flow

b)

subflow

c)

async flow

d)

async sub flow

35.

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)

Centrally manages partners and consultants to implement line of business projects.

c)

Implements line of business projects to enforce common security requirements.

d)

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

36.

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

a)

#[attributes.queryParams.firstName]

b)

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

c)

#[message.queryParams.hrstName]

d)

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

37.

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)

38.
a)

[1, 2, 3, 4]

b)

order4

c)

[order1, order2, order3, order4]

d)

order1order2order3order4

39.

A web client sends a POST request with the payload {"oid": "1000", "itemid": "AC200", "qty": "4" } to the Mule application. The File Write operation throws a FILE:CONNECTIVITY error. What response message is returned to the web client?

a)

''FILE:CONNECnvnY'

b)

"ORDER:NOT_CREATED"

c)

"OTHER ERROR"

d)

"File written"

40.

What Database expression transforms the input to the output?

a)
b)
c)
d)
41.

The Mule application Is debugged in Any point Studio and stops at the breakpoint What is the value of the payload displayed In the debugger at this breakpoint?

a)

"Processing"

b)

.Complete"

c)

0

d)

"Start"

42.

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)

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

c)

Implement the API specification using flow designer in Design Center

d)

Publish the API specification to Any point Exchange

43.

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

a)

None of these

b)

Filter modules Is Number operation

c)

Validation modules Is not Number operation

d)

Validation modules Is Number operation

44.

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

a)

Hello-HTTP-JMS2-Three

b)

HTTP-JMS2-Three

c)

Hello-JMS1-HTTP-JMS2-Three

d)

Hello-HTTP-Three

45.

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ג€™, without hardcoding 2020?

a)

ג€˜The year is #[payload.year]ג€™

b)

ג€˜#[The year is $(payload.year)]ג€™

c)

ג€˜#[ג€The year is ++ payload.yearג€]ג€™

d)

ג€˜#[ג€The year is ג€ + payload.year]ג€™

46.

The Mule application has multiple HTTP Listeners contained in various configuration XML files. Each HTTP Listener is configured with the same host and with the port number, path, and operation shown in its display name.What is the minimum number of global elements that must be defined to support all these HTTP Listeners?

a)

1

b)

2

c)

3

d)

4

47.

A web client sends a new order record {ג€oidג€: ג€100ג€, ג€custIdג€: ג€annie@acme.comג€, ג€statusג€: ג€NEW ORDERג€ } in the payload of a POST request to the Mule application.What value must be used in the Input Parameters field of the Database Insert operation to properly pass the order record values to the SQL statement?

a)
b)
c)
d)
48.
a)
b)
c)
d)
49.

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

a)

HTTP host in Connector Configuration

b)

HTTP port in Connector Configuration

c)

Allowed methods

d)

Path

50.

Refer to the below exhibit. A Mule application configures a property placeholder file named config.yaml to set some property placeholders for an HTTP connector. What is the valid properties placeholder file to set these values?

a)

1. http: 2. basepath: "api" 3. host : "localhost" 4. port : "8081" (Correct)

b)

1. http.host = localhost 2. http.port = 8081

c)

1. http: 2. host = "localhost" 3. port = "8081"

d)

1. { 2. http: 3. basePath: "api", 4. port: "8081", 5. host: " localhost"

51.

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?

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

52.

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

a)

Event Processors

b)

Source and processors both

c)

Event Source

d)

Error handlers

53.

A web client submits a request to the HTTP Listener and the HTTP Request throws an error. What payload and status code are returned to the web client? Refer to the exhibits. A web client submits a request to the HTTP Listener and the HTTP Request throws an error. What payload and status code are returned to the web client?

a)

Response body: "Error" Default response status code: 200

b)

Response body: "Success - Begin* Default response status code: 200

c)

Error response body: error, description Default error response status code: 500

d)

Response body: "Success - End" Default response status code: 200

54.

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)

plain text file documenting API's

b)

WSDL file

c)

JSON file

d)

RAML file to define SOAP services

55.

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 only below option 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 1) Attach project sources

d)

. Select both the options 1) Attach project sources 2) Include project module and dependencies

56.

Refer to the exhibits. The Validation component in the private flow throws an error. What response message is returned to a client request to the main flow's HTTP Listener?

a)

Error - private flow

b)

Error - main flow

c)

Validation Error

d)

Success - main flow

57.

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

a)

Serves as an API implementation

b)

Validates requests against RAML API specifications and routes them to API implementations

c)

Creates native connectors using a 3rd party Java library

d)

Validates responses returned from API requests and routes them back to the caller

58.

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?

a)

Process layer

b)

Experience layer

c)

Data layer

d)

System layer

59.

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ג€