NEW
Font size
WorksheetsMulesoft Practice Test
Total questions: 59
Worksheet time: 2hrs 58mins
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?
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 non-empty Java object
The original XML payload
The returned JSON response
null
What can be added to the flow to persist data across different flow executions?
Properties of the Mule runtime app object
Key/value pairs in the ObjectStore
Session variables
Properties of the Mule runtime flow object
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?
Set the watermark column to the login_date_time column
Set the target value to the last retrieved login_date_time value
Set the target value to the last retrieved user_id value
Set the watermark column to the user_id column
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?
/orders/{PO5555}
/orders/order=PO5555
/orders?order=PO5555
/orders/PO5555
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?
payload
payload modelName query param
payload planeModel var
payload modelName query param planeModel var
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?
0
1
5
6
A web client sends a request to http://localhost:8081?dept=sales.What is the correct DataWeave expression to access the value of dept?
attributes.queryParams.dept
attributes.dept
message.queryParams.dept
vars.dept
What is the correct syntax to add a customer ID as a URI parameter in an HTTP Listener path?
(customerID)
#[customerID]
{customerID}
${customerID}
What execution model is used by For Each and Batch Job scopes?
Both are multi-threaded
Both are single-threaded
Batch Job is single-threaded and For Each is multi-threaded
For each is single-threaded and Batch Job is multi-threaded
How would you debug Mule applications?
Using breakpoints
Checking RAML
By Deploying apps on production
Cannot do it
What does to the attributes of a Mule event happen in a flow after an outbound HTTP Request is made?
Attributes do not change.
Previous attributes are passed unchanged.
Attributes are replaced with new attributes from the HTTP Request response.
New attributes may be added from the HTTP response headers, but no headers are ever removed.
The new RAML spec has been published to Anypoint Exchange with client credentials. What is the next step to gain access to the API?
Email the owners of the API.
Create a new client application.
No additional steps needed.
Request access to the API in Anypoint Exchange.
What is the difference between a subflow and a sync flow?
Sync flow has no error handling of its own and subflow does.
Subflow has no error handling of its own and sync flow does.
Subflow is synchronous and sync flow is asynchronous.
No difference.
What is not an asset?
Exchange
Template
Example
Connector
How to import Core (dw::Core) module into your DataWeave scripts?
import dw::core
Not needed
None of these
import core
What is the value of the stepVar variable after the processing of records in a Batch Job?
-1
0
Null
Last value from flow
What is the object type returned by the File List operation?
Object of String file names
Array of String file names
Object of Mule event objects
Array of Mule event objects
Where are values of query parameters stored in the Mule event by the HTTP Listener?
Payload
Attributes
Inbound Properties
Variables
How can you call a flow from Dataweave?
Not allowed
Include function
Look up function
Tag function
DataWeave is tightly integrated with ____________.
Mule runtime
All APIs
Flow Designer
Exchange
In the Database On Table Row operation, what does the Watermark column enable the On Table Row operation to do?
To save the most recent records retrieved from a database to enable database caching.
To enable duplicate processing of records in a database.
To avoid duplicate processing of records in a database.
To delete the most recent records retrieved from a database to enable database caching.
An API has been created in Design Center.What is the next step to make the API discoverable?
Deploy the API to a Maven repository.
Publish the API from inside flow designer.
Publish the API to Anypoint Exchange.
Enable autodiscovery in API Manager.
What is the correct way to format the decimal 200.1234 as a string to two decimal places?
200.1234 as string {format: ".0#"}
200.1234 as string as format: ".0#"
200.1234 as String {format: ".0#"}
200.1234 as String as format: ".0#"
How is policy defined in terms of classloader of an API?
Classloader isolation does not exist between the application, the runtime and connectors, and policies.
Classloader isolation exists between the application, the runtime and connectors, and policies.
None of these.
Classloader isolation partially exists between the application, the runtime and connectors, and policies.
According to Mulesoft, how are Modern APIs treated as?
products
code
soap services
organizations
According to Semantic Versioning, which version would you change for incompatible API changes?
MINOR
PATCH
MAJOR
No change
What is the use of DevKit in Mule 4?
Facilitates communication between third-party systems and Mule applications.
No use.
Offers connector end user support in a few aspects of Mule app design.
Enables the development of Anypoint Connectors.
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?
An Object containing all Mule event Objects.
An Array containing all Mule event Objects.
None of these.
The last Mule event object.
What are the latest specification of RAML available?
0.8
1
2
1.8
http://dev.acme.com/api/patients?year=2016. What should this endpoint return?
Patient with id 2016
All patients
No patients
Patients from year 2016
What asset can NOT be created by using Design Center?
API
API Portals
Mule Apps
API Fragments
How are multiple conditions used in a Choice router to route events?
To route the same event to the matched route of EVERY true condition.
None of these.
To find the FIRST true condition, then distribute the event to the ONE matched route.
To find the FIRST true condition, then route the same event to the matched route and ALL FOLLOWING routes.
Which one of them is NOT a flow in Mule?
sync flow
subflow
async flow
async sub flow
According to MuleSoft, what is the Center for Enablement's role in the new IT operating model?
Implements line of business projects to enforce common security requirements.
Centrally manages partners and consultants to implement line of business projects.
Implements line of business projects to enforce common security requirements.
Creates and manages discoverable assets to be consumed by line of business developers.
A web client submits a request to http://localhost:8081?flrstName=john. What is the correct DataWeave expression to access the firstName parameter?
#[attributes.queryParams.firstName]
#[attributes.'http.query.params'.firstName]
#[message.queryParams.hrstName]
. #[message.inboundProperties.'http.query.params'.firstName]
What is the correct syntax to add an employee ID as a URI parameter in an HTTP Listener path?
# [employeelD]
${emp!oyeelD}
{employeelD}
(employeelD)
[1, 2, 3, 4]
order4
[order1, order2, order3, order4]
order1order2order3order4
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?
''FILE:CONNECnvnY'
"ORDER:NOT_CREATED"
"OTHER ERROR"
"File written"
What Database expression transforms the input to the output?
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?
"Processing"
.Complete"
0
"Start"
An API specification is designed using RAML. What is the next step to create a REST Connector from this API specification?
Download the API specification and build the interface using APIkit
Add the specification to a Mule project's src/main/resources/api folder
Implement the API specification using flow designer in Design Center
Publish the API specification to Any point Exchange
What module and operation will throw an error if a Mule events payload is not number ?
None of these
Filter modules Is Number operation
Validation modules Is not Number operation
Validation modules Is Number operation
A web client sends a POST request to the HTTP Listener with the payload ג€Hello-ג€.What response is returned to the web client?
Hello-HTTP-JMS2-Three
HTTP-JMS2-Three
Hello-JMS1-HTTP-JMS2-Three
Hello-HTTP-Three
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?
ג€˜The year is #[payload.year]ג€™
ג€˜#[The year is $(payload.year)]ג€™
ג€˜#[ג€The year is ++ payload.yearג€]ג€™
ג€˜#[ג€The year is ג€ + payload.year]ג€™
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?
1
2
3
4
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?
Which of the below is not the mandatory configurations for HTTP Listener?
HTTP host in Connector Configuration
HTTP port in Connector Configuration
Allowed methods
Path
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?
1. http: 2. basepath: "api" 3. host : "localhost" 4. port : "8081" (Correct)
1. http.host = localhost 2. http.port = 8081
1. http: 2. host = "localhost" 3. port = "8081"
1. { 2. http: 3. basePath: "api", 4. port: "8081", 5. host: " localhost"
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?
Add new property placeholders and redeploy the API proxy
Add new environment variables and restart the API proxy
Restart the API proxy to clear the API policy cache
Add required headers to the RAML specification and redeploy the new API proxy
What is minimal requirement in a flow for a Mule application to compile?
Event Processors
Source and processors both
Event Source
Error handlers
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?
Response body: "Error" Default response status code: 200
Response body: "Success - Begin* Default response status code: 200
Error response body: error, description Default error response status code: 500
Response body: "Success - End" Default response status code: 200
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?
plain text file documenting API's
WSDL file
JSON file
RAML file to define SOAP services
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?
Select only below option 2) Include project module and dependencies
No need to select any of the below options 1) Attach project sources 2) Include project module and dependencies
Select only below option 1) Attach project sources
. Select both the options 1) Attach project sources 2) Include project module and dependencies
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?
Error - private flow
Error - main flow
Validation Error
Success - main flow
What is the purpose of the api:router element in APIkit?
Serves as an API implementation
Validates requests against RAML API specifications and routes them to API implementations
Creates native connectors using a 3rd party Java library
Validates responses returned from API requests and routes them back to the caller
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?
Process layer
Experience layer
Data layer
System layer
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?
Validation Error
ג€ENDג€
ג€ERROR1ג€
ג€ERROR2ג€
