Test2
MuleSoft Mastery Quiz
Test your knowledge of MuleSoft with our comprehensive quiz designed for aspiring developers and integration specialists. Dive into 75 challenging questions that cover various aspects of Mule applications, DataWeave, and API design.
Whether you're preparing for a certification or simply wish to enhance your skills, this quiz will provide you with valuable insights. Here are some key features:
- In-depth questions covering Mule 4 concepts
- Instant feedback on your answers
- Track your progress over time
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 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
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.
Which one of them is NOT a flow in Mule?
Sync flow
Subflow
Async flow
Async sub flow
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.
What asset can NOT be created by using Design Center?
API
API Portals
Mule Apps
API Fragments
A flow has a JMS Publish consume operation followed by a JMS Publish operation. Both of these operations have the default configurations. Which operation is asynchronous and which one is synchronous?
Publish consume: Synchronous. Publish: Asynchronous.
Publish consume: Asynchronous. Publish: Synchronous.
Publish consume: Asynchronous. Publish: Asynchronous.
Publish consume: Synchronous. Publish: Synchronous.
What is the use of API Notebooks?
None of these
Test Policies
Test API functions
Test RAML
What is the DataWeave expression to log the Content-Type header using a Logger component?
#["Content-Type: " ++ attributes.headers.'content-type']
#["Content-Type: " ++ headers.'content-type']
#["Content-Type: " + headers.'content-type']
#["Content-Type: " + attributes.headers.'content-type']
What is the trait name you would use for specifying client credentials in RAML?
Headers
Client-id
Client-id-required
We do not specify in RAML
What is the purpose of API autodiscovery?
Enables API Manager to discover the published API on Anypoint Exchange.
Allows a deployed Mule application to connect with API Manager to download policies and act as its own API proxy.
Enables an API to be directly managed in API Manager.
Allows the Mule application to be automatically discovered on Anypoint Exchange.
What DataWeave 2.0 type can be used as input to a mapObject operation?
Array
Object
String
Map
Why would you use SOAP instead of http?
If the architecture mandates.
It is up to the integration specialist.
Successful/retry logic for reliable messaging functionality.
It is part of agile methodology.
What statement is a part of MuleSoft's description of an application network?
Creates and manages high availability and fault tolerant services and infrastructure.
Creates reusable APIs and assets designed to be consumed by other business units.
Creates and manages a collection of JMS messaging services and infrastructure.
Leverages Central IT to deliver complete point-to-point solutions with master data management.
What does the Mule runtime use to enforce policies and limit access to APIs?
API Manager
The proxy created by API Manager
The Mule runtime's embedded API Gateway
Anypoint Access Control
What is the correct syntax to reference a fragment in RAML?
Examples: #include examples/BankAccountsExample.raml
Examples: $include examples/BankAccountsExample.raml
Examples: ?include examples/BankAccountsExample.raml
Examples: !include examples/BankAccountsExample.raml
Which keyword do you use to create a new function in DataWeave?
Function
Fun
Func
None of these
What are the features of CloudHub Fabric?
Non-persistent queue
Horizontal Scaling
VPN Mock Services
None of these
How many Mule applications can run on a CloudHub worker?
At most one
None of these
Depends
At least one
How would you debug Mule applications?
By Deploying apps on production
Checking RAML
Using logger component
Cannot do it
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.
What HTTP method in a RESTful web service is typically used to completely replace an existing resource?
GET
PATCH
POST
PUT
What module and operation will throw an error if a Mule event's payload is not a number?
Validation module's Is number operation
Filter module's Is number operation
None of these
Validation module's Is not a number operation
A Set Variable component saves the current payload to a variable. What is the DataWeave parent expression to access the variable?
#[value]
#[vars]
#[var]
#[values]
A Batch Job scope has three 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?
All processing of the batch job stops.
None of these.
Error is ignored.
Event processing continues to the next batch step.
What does the minus operator do in DataWeave?
Decrements the value by one.
Removes items from a list.
Increments the value by one.
Removes characters from a string.
Does a root element need when creating a response using Dataweave?
None of these
Sometimes
Never
Always
What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?
Data
System
Process
Experience
How does Runtime Manager Console connect with App Data and Logs of a Mule app?
None of these
Integration Apps
CloudHub Workers
Rest API
Where does a deployed flow designer application run in Anypoint Platform?
CloudHub worker
API Manager
Design Center
Exchange
What is the minimum required configuration in a flow for a Mule application to compile?
An event source
RAML file
An event processor
Logger Component
Where would you create SLA Tiers for an API?
Exchange
API Manager
Anypoint MQ
Within the API
What DataWeave 2.0 type can be used as input to a map operation?
Object
Array
String
Map
What MuleSoft product enables publishing, sharing, and searching of APIs?
Runtime Manager
Exchange
API Notebook
API Designer
What does the zip operator do in DataWeave?
Minifies the size of value using encoding.
None of these.
Merges elements of two objects into a single object.
Merges elements of two lists (arrays) into a single list.
What is the face of CloudHub and integrates with Platform Services?
None of these
Runtime Manager Console
Integration Apps
CloudHub Workers
What is a core characteristic of the Modern API?
API is rapidly prototyped following AGILE methodology.
API follows the RESTful architecture.
API is designed first using an API specification for rapid feedback.
API has a mechanism to accept feedback and suggestions for improvement.
Anypoint MQ FIFO queues are limited to how many in flight messages per queue?
120000
10
100
1000
Refer to the exhibit.
The error occurs when a project is run in Anypoint Studio. The project, which has a dependency that is not in the MuleSoft Maven repository, was created and successfully run on a different computer.
What is the next step to fix the error to get the project to run successfully?
The error occurs when a project is run in Anypoint Studio. The project, which has a dependency that is not in the MuleSoft Maven repository, was created and successfully run on a different computer.
What is the next step to fix the error to get the project to run successfully?
Pass the dependency to the MULE_HOME/bin folder
Edit the dependency in the Mule project's pom.xml file
Deploy the dependency to MuleSoft's Maven repository
Install the dependency to the computer's local Maven repository
Refer to the exhibits.
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?
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
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?
Refer to the exhibit.
What can be added to the flow to persist data across different flow executions?
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
Refer to the exhibits.
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 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 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 to MuleSoft best practices. What URI should a web client use to request order PO5555?
/orders/{PO5555}
/orders/order=PO5555
/orders?order=PO5555
/orders/PO5555
Refer to the exhibits.
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?
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
Refer to the exhibit.
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?
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
Refer to the exhibits.
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?
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
Refer to the exhibits.
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 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]'
Refer to the exhibit.
What is the correct syntax to add a customer ID as a URI parameter in an HTTP Listener path?
What is the correct syntax to add a customer ID as a URI parameter in an HTTP Listener path?
(customerID)
#[customerID]
{customerID}
${customerID}
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?
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
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
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?
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
An API implementation has been deployed to CloudHub and now needs to be governed. IT will not allocate additional vCores for a new Mule application to act as an API proxy. What is the next step to preserve the current vCore usage, but still allow the Mule application to be managed by API Manager?
Modify the API implementation to use auto-discovery to register with API Manager
Deploy the same API implementation behind a VPC and configure the VPC to connect to API Manager
Upload the Mule application's JAR file to the API instance in API Manager
Register the same API implementation in Runtime Manager to connect to API Manager
Refer to the exhibit.
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?
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?
/accounts?account_type:retail&industry:finance
/accounts/retail/finance
/accounts/account_type=retail/industry=finance
/accounts?account_type=retail&industry=finance
Refer to the exhibits.
This 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?
This 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?
${training:host}
#[training.host]
${training.host}
#[training.host]
{"name":"Test2", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of MuleSoft with our comprehensive quiz designed for aspiring developers and integration specialists. Dive into 75 challenging questions that cover various aspects of Mule applications, DataWeave, and API design.Whether you're preparing for a certification or simply wish to enhance your skills, this quiz will provide you with valuable insights. Here are some key features:In-depth questions covering Mule 4 conceptsInstant feedback on your answersTrack your progress over time","img":"https:/images/course8.png"}