Questão 1
Questão
How would you debug Mule applications?
Questão 2
Questão
What does to the attributes of a Mule event happen in a flow after an outbound HTTP Request is made?
Responda
-
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.
Questão 3
Questão
The new RAML spec has been published to Anypoint Exchange with client credentials. What is the next step to gain access to the API?
Responda
-
Email the owners of the API.
-
Create a new client application.
-
No additional steps needed.
-
Request access to the API in Anypoint Exchange.
Questão 4
Questão
What is the difference between a subflow and a sync flow?
Responda
-
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.
Questão 5
Questão
What is not an asset?
Responda
-
Exchange
-
Template
-
Example
-
Connector
Questão 6
Questão
How to import Core (dw::Core) module into your DataWeave scripts?
Responda
-
import dw::core
-
Not needed
-
None of these
-
import core
Questão 7
Questão
What is the value of the stepVar variable after the processing of records in a Batch Job?
Responda
-
-1
-
0
-
Null
-
Last value from flow
Questão 8
Questão
Refer to the exhibit. What is the object type returned by the File List operation?
Responda
-
Object of String file names
-
Array of String file names
-
Object of Mule event objects
-
Array of Mule event objects
Questão 9
Questão
Where are values of query parameters stored in the Mule event by the HTTP Listener?
Responda
-
Payload
-
Attributes
-
Inbound Properties
-
Variables
Questão 10
Questão
DataWeave is tightly integrated with ____________.
Responda
-
Mule runtime
-
All APIs
-
Flow Designer
-
Exchange
Questão 11
Questão
In the Database On Table Row operation, what does the Watermark column enable the On Table Row operation to do?
Responda
-
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.
Questão 12
Questão
What is the correct way to format the decimal 200.1234 as a string to two decimal places?
Responda
-
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#"
Questão 13
Questão
How is policy defined in terms of classloader of an API?
Responda
-
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.
Questão 14
Questão
According to Mulesoft, how are Modern APIs treated as?
Responda
-
Products
-
Code
-
SOAP services
-
Organizations
Questão 15
Questão
According to Semantic Versioning, which version would you change for incompatible API changes?
Responda
-
MINOR
-
PATCH
-
MAJOR
-
No change
Questão 16
Questão
What is the use of DevKit in Mule 4?
Responda
-
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.
Questão 17
Questão
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?
Responda
-
An Object containing three Mule event Objects.
-
An Array of three Mule event Objects.
-
An Object containing three JSON payload Objects.
-
An array of three JSON payload Objects.
Questão 18
Questão
What are the latest specification of RAML available?
Questão 19
Questão
http://dev.acme.com/api/patients?year=2021
What should this endpoint return?
Responda
-
Patient with id 2021
-
All patients
-
No patients
-
Patients from year 2021
Questão 20
Questão
According to MuleSoft, what is the Center for Enablement's role in the new IT operating model?
Responda
-
Implements line of business projects to enforce common security requirements.
-
Centrally manages partners and consultants to implement line of business projects.
-
Produces and manages API policies for line of business deployments
-
Creates and manages discoverable assets to be consumed by line of business developers.
Questão 21
Questão
Which one of them is NOT a flow in Mule?
Responda
-
Sync flow
-
Subflow
-
Async flow
-
Async sub flow
Questão 22
Questão
How are multiple conditions used in a Choice router to route events?
Responda
-
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.
Questão 23
Questão
What asset can NOT be created by using Design Center?
Responda
-
API
-
API Portals
-
Mule Apps
-
API Fragments
Questão 24
Questão
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?
Responda
-
Publish consume: Synchronous. Publish: Asynchronous.
-
Publish consume: Asynchronous. Publish: Synchronous.
-
Publish consume: Asynchronous. Publish: Asynchronous.
-
Publish consume: Synchronous. Publish: Synchronous.
Questão 25
Questão
What is the use of API Notebooks?
Responda
-
None of these
-
Test Policies
-
Test API functions
-
Test RAML
Questão 26
Questão
What is the DataWeave expression to log the Content-Type header using a Logger component?
Responda
-
#["Content-Type: " ++ attributes.headers.'content-type']
-
#["Content-Type: " ++ headers.'content-type']
-
#["Content-Type: " + headers.'content-type']
-
#["Content-Type: " + attributes.headers.'content-type']
Questão 27
Questão
What is the trait name you would use for specifying client credentials in RAML?
Questão 28
Questão
What is the purpose of API autodiscovery?
Responda
-
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.
Questão 29
Questão
What is NOT part of a Mule 4 event?
Responda
-
Attributes
-
Payload
-
inboundProperties
-
Message
Questão 30
Questão
What is the main purpose of flow designer in Design Center?
Responda
-
To design and develop fully functional Mule applications in a hosted development environment.
-
To design API RAML files in a graphical way.
-
To design and mock Mule application templates that must be implemented using Anypoint Studio.
-
To define API lifecycle management in a graphical way.
Questão 31
Questão
What DataWeave 2.0 type can be used as input to a mapObject operation?
Questão 32
Questão
Why would you use SOAP instead of HTTP?
Responda
-
If the architecture mandates.
-
It is up to the integration specialist.
-
Successful/retry logic for reliable messaging functionality.
-
It is part of agile methodology.
Questão 33
Questão
What does the Mule runtime use to enforce policies and limit access to APIs?
Questão 34
Questão
Which keyword do you use to create a new function in DataWeave?
Responda
-
function
-
fun
-
func
-
None of these
Questão 35
Questão
What are the features of CloudHub Fabric?
Responda
-
Non-persistent queue
-
Horizontal Scaling
-
VPN Mock Services
-
None of these
Questão 36
Questão
How many Mule applications can run on a CloudHub worker?
Responda
-
At most one
-
None of these
-
Depends
-
At least one
Questão 37
Questão
What is the purpose of the api:router element in APIkit?
Responda
-
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.
Questão 38
Questão
When using MuleSoft’s API-led connectivity approach, what HTTP method in a RESTful web service is generally recommended to be used to completely replace an existing resource?
Questão 39
Questão
What module and operation will throw an error if a Mule event's payload is not a number?
Responda
-
Validation module's Is number operation
-
Filter module's Is number operation
-
None of these
-
Validation module's Is not a number operation
Questão 40
Questão
A Set Variable component saves the current payload to a variable. What is the DataWeave parent expression to access the variable?
Responda
-
#[value]
-
#[vars]
-
#[var]
-
#[values]
Questão 41
Questão
A batch job is defined by a Batch Job scope that contains three batch steps. The Batch Job scope and Batch Step scopes are configured with default acceptPolicy values. An event processor in the second Batch Step scope throws an error because the input data is incomplete. What is the default behavior of the batch job after the error is thrown?
Responda
-
The Batch Job scope stops processing all records
-
The second Batch Step scope is retried with the same data
-
All existing in-flight records are discardeed, but new records are still passed to the first Batch Step scope and processed.
-
The second Batch Step scope’s error is reversed and the repaired records are passed to the third Batch Step scpoe for processing.
Questão 42
Questão
What does the minus operator do in DataWeave?
Responda
-
Decrements the value by one.
-
Removes items from a list.
-
Increments the value by one.
-
Removes characters from a string.
Questão 43
Questão
What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?
Responda
-
Data layer
-
System layer
-
Process layer
-
Experience layer
Questão 44
Questão
How does Runtime Manager Console connect with App Data and Logs of a Mule app?
Responda
-
None of these
-
Integration Apps
-
CloudHub Workers
-
Rest API
Questão 45
Questão
Where does a deployed flow designer application run in Anypoint Platform?
Responda
-
CloudHub worker
-
API Manager
-
Design Center
-
Exchange
Questão 46
Questão
What is the minimum required configuration in a flow for a Mule application to compile?
Responda
-
An event source
-
RAML file
-
An event processor
-
Logger Component
Questão 47
Questão
Where would you create SLA Tiers for an API?
Responda
-
Exchange
-
API Manager
-
Anypoint MQ
-
Within the API
Questão 48
Questão
What DataWeave 2.0 type can be used as input to a map operation?
Questão 49
Questão
What MuleSoft product enables publishing, sharing, and searching of APIs?
Responda
-
Runtime Manager
-
Exchange
-
API Notebook
-
API Designer
Questão 50
Questão
What does the zip operator do in DataWeave?
Responda
-
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.
Questão 51
Questão
What is the face of CloudHub and integrates with Platform Services?
Responda
-
None of these
-
Runtime Manager Console
-
Integration Apps
-
CloudHub Workers
Questão 52
Questão
What is a core characteristic of the Modern API?
Responda
-
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.
Questão 53
Questão
Anypoint MQ FIFO queues are limited to how many in flight messages per queue?
Questão 54
Questão
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?
Responda
-
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
Questão 55
Questão
Refer to the exhibit.
The error occurs when a Mule project is imported into and run in Anypoint Studio. The Mule project has a dependency that is not in a MuleSoft Maven repository, but the Mule Project succesfully ran on the original computer where the Mule Project was developed.
What is the next step to fix the error to get the project to run successfully?
Responda
-
Ass 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
Questão 56
Questão
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?
Responda
-
/orders/{PO5555}
-
/orders/order=PO5555
-
/orders?order=PO5555
-
/orders/PO5555
Questão 57
Questão
A web client sends a request to http://localhost:8081?dept=sales. What is the correct DataWeave expression to access the value of dept?
Questão 58
Questão
By default, what happens to a file after it is read using an FTP connector Read operation?
Responda
-
The file is moved to a different folder
-
The file stays in the same folder unchanged
-
The file is renamed in the same folder
-
The file is deleted from the folder
Questão 59
Questão
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?
Questão 60
Questão
What execution model is used by For Each and Batch Job scopes?
Questão 61
Questão
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?
Responda
-
fun newProdCode(itemID: Number, productCategory: String) = "PC?" ++ productCategory ++ (itemID as String)
-
var newProdCode(itemID: Number, productCategory: String) -> "PC-" ++ productCategory ++ (itemID as String)
-
fun newProdCode(itemID: Number, productCategory: String) -> "PC-" ++ productCategory ++ (itemID as String)
-
function newProdCode(itemID: Number, productCategory: String) = "PC-" ++ productCategory ++ (itemID as String)
Questão 62
Questão
Refer to the exhibit.
What can be added to the flow to persist data across different flow executions?
Responda
-
Properties of the Mule runtime app object
-
Key-value pairs in the ObjectStore
-
Session variables
-
Properties of the Mule runtime flow object
Questão 63
Questão
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?
Responda
-
"#[
{
oid: payload.oid,
custId: payload.custId,
status: payload.status
}
]"
-
"#[
{
orderId: payload.oid,
customerName: payload.custId,
status: payload.status
}
]"
-
"#[
inputParams: [
payload.oid,
payload.custId,
payload.status
]
]"
-
"#[
[
payload.oid,
payload.custId,
payload.status
]
]"
Questão 64
Questão
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?
Questão 65
Questão
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?
Questão 66
Questão
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?
Questão 67
Questão
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?
Questão 68
Questão
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?
Responda
-
‘The year is #[payload.year]’
-
‘#[The year is $(payload.year)]’
-
‘#[‘The year is ++ payload.year’]’
-
‘#[‘The year is ‘ + payload.year]’
Questão 69
Questão
Refer to the exhibit.
What is the correct syntax to add a customer ID as a URI parameter in an HTTP Listener path?
Responda
-
(customerID)
-
#[customerID]
-
{customerID}
-
${customerID}
Questão 70
Questão
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?
Responda
-
Validation Error
-
'END''
-
''ERROR1''
-
''ERROR2''
Questão 71
Questão
In a RAML specification, what attribute defines a query parameter to be optional for a resource?
Responda
-
required: false
-
optional: true
-
provided: false
-
mandatory: false
Questão 72
Questão
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?
Questão 73
Questão
A Mule application 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 should be done to or with the Mule application to preserve the current vCore usage while still allowing the Mule application to be managed by API Manager?
Responda
-
Modify the Mule application to use autodiscovery to register with API Manager
-
Deploy the Mule application 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 Mule application in Runtime Manager to connect to API Manager
Questão 74
Questão
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?
Responda
-
/accounts?account_type:retail&industry:finance
-
/accounts/retail/finance
-
/accounts/account_type=retail/industry=finance
-
/accounts?account_type=retail&industry=finance
Questão 75
Questão
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. To what valid expression can the HTTP Request host value be set to so that it is no longer hardcoded?
Responda
-
${training:host}
-
#[training:host]
-
${training.host}
-
#[training.host]
Questão 76
Questão
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 sends a GET request to the main flow's HTTP Listener. The GET request includes query for the pedigree of a piano. What values are accessible to the Logger component at the end of the main flow?
Questão 77
Questão
Refer to the exhibits.
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?
Responda
-
Set a request header with the name Content-Type to a value of application/octet-stream
-
Set a request header with the name Content-Type to a value of application/xml
-
Set a response header with the name Content-Type to a value of application/xml
-
Set a response header with the name Content-Type to a value of application/octet-stream
Questão 78
Questão
Refer to the exhibits.
Each route in the Scatter-Gather sets the payload to the number shown in the label. What response is returned to a web client request to the HTTP Listener?
Responda
-
[
{
"attributes": ...,
"payload": "100"
},
{
"attributes": ...,
"payload": "200"
}
]
-
{
"0": "100",
"1": "200"
}
-
["100", "200"]
-
{
"0": {
"attributes": ...,
"payload": "100"
},
"1": {
"attributes": ...,
"payload": "200"
}
}
Questão 79
Questão
Refer to the exhibits.
The input array of strings is processed by the batch job that processes, filters, and aggregates the values. What is the last message logged by the Logger component after the batch job completes processing?
Responda
-
[["A", "C", "D"], ["E"]]
-
[''E'']
-
[''D", "E"]
-
["A", "C, "D", "E"]
Questão 80
Questão
Refer to the exhibit.
The Mule application is debugged in Anypoint Studio and stops at the breakpoint. What is the value of the payload displayed in the debugger at this breakpoint?
Responda
-
0
-
"Processing"
-
"Start"
-
"Complete"
Questão 81
Questão
Refer to the exhibits.
A web client sends a GET request that includes a destination query parameter to the flow's HTTP Listener. The Web Service Consumer throws a WSC:BAD_REQUEST error. What should be set in the getFlights Flow to fix this error?
Responda
-
A header in the Consume operation equal to the destination query parameter
-
A SOAP payload before the Consume operation that contains the destination query parameter
-
A property in the Consume operation equal to the destination query parameter
-
A JSON payload before the Consume operation that contains the destination query parameter
Questão 82
Questão
An SLA-based policy has been enabled in API Manager. What should now be changed in the RAML specification and/or the API proxy to enforce the new SLA-based policy?
Responda
-
Restart the API proxy to clear the API policy cache
-
Add new property placeholders and redeploy the API proxy
-
Add required headers to the RAML specification and redeploy the new API proxy
-
Add new environment variables and restart the API proxy
Questão 83
Questão
A client submits a GET request to a Mule 4 application to the endpoint /customers?id=48493. Where is the ID in the Mule event by the HTTP Listener?
Responda
-
Inbound Properties
-
Variables
-
Attributes
-
Payload
Questão 84
Questão
Refer to the exhibit.
What DataWeave expression transforms the conductorIds array to the XML output?
Responda
-
{
trains: conductorIds map ( (engId, index) ->
train: {
engineerId: engId
}
)
)}
-
trains:
{(
conductorIds map ( (engId, index) ->
train: {
engineerId: engId
}
)
)}
-
{(
trains: conductorIds map ( (engId, index) ->
train: {
engineerId: engId
}
)
)}
-
trains:
conductorIds map ( (engId, index) ->
train: {
engineerId: engId
}
)
Questão 85
Questão
Refer to the exhibit.
The input array of strings is passed to the batch job, which does NOT do any filtering or aggregating. What payload is logged by the Logger component?
Questão 86
Questão
Refer to the exhibits.
The <when> expression for the Choice router needs to be written. What is a valid <when> expression to route Mule events to the non-default flow?
Responda
-
#[ ‘MuleSoft’ == payload.’company’ ]
-
#[ if ( ‘MuleSoft’ == payload.company ) ]
-
#[ company = "MuleSoft" ]
-
#[ if( company = "MuleSoft" ) ]
Questão 87
Questão
Refer to the exhibit.
A Mule event is composed of a hierarchy of objects. Where in the hierarchy are variables stored?
Responda
-
Mule message attributes
-
Mule message
-
Mule message payload
-
Mule event
Questão 88
Questão
Refer to the exhibits.
A company has defined this Book data type and Book example to be used in APIs. What is valid RAML for an API that uses this Book data type and Book example?
Responda
-
#%RAML 1.0
title: Books
Book: BookDataType.raml
/books:
post:
body:
application/json:
type: Book
examples:
input: BookExample.raml
responses:
201:
body:
application/json:
example:
message: Book added
-
#%RAML 1.0
title: Books
Book: !include BookDataType.raml
/books:
post:
body:
application/json:
type: Book
examples:
input: !include BookExample.raml
responses:
201:
body:
application/json:
example:
message: Book added
-
#%RAML 1.0
title: Books
types:
Book: ABC/DataTypes/BookDataType.raml
/books:
post:
body:
application/json:
type: Book
examples:
input: ABC/examples/BookExample.raml
responses:
201:
body:
application/json:
example:
message: Book added
-
#%RAML 1.0
title: Books
types:
Book: !include BookDataType.raml
/books:
post:
body:
application/json:
type: Book
examples:
input: !include BookExample.raml
responses:
201:
body:
application/json:
example:
message: Book added
Questão 89
Questão
Refer to the exhibits.
A web client sends a GET request to the HTTP Listener. What response message is returned to the web client?
Responda
-
""
-
"End"
-
"Start"
-
"String is not blank"
Questão 90
Questão
What asset can NOT be created using Anypoint Platform Design Center?
Responda
-
API Specifications
-
Mule Applications
-
API Fragments
-
API Portals
Questão 91
Questão
What message processor can set the HTTP response status code to 200?
Responda
-
Variable
-
Set Payload
-
Property
-
Record Variable
-
Attachment
Questão 92
Questão
Refer to the exhibit.
How many private flows does APIkit generate from the RAML specification?
Questão 93
Questão
A Mule application properties file named training-DEV.properties has been defined. How is the properties file referenced in the Mule application?
Responda
-
In an attribute in the main mule element
-
In a Property Placeholder element
-
As a -M-D placeholder when starting the Mule runtime
-
In an attribute in the HTTP Listener element
Questão 94
Questão
A development 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 another team 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?
Responda
-
Center for Enablement
-
Center of Excellence
-
Central API Review Board
-
MuleSoft Support Center
Questão 95
Questão
Refer to the exhibits.
A web client sends a GET request to the HTTP Listener and the HTTP Request throws an error. What payload and status code are returned to the web client.
Responda
-
Response body: "START" Default response status code: 200
-
Response body: "ERROR1" Default response status code: 200
-
Response body: "END" Default response status code: 200
-
Error response body: error.description Default error response status code: 500
Questão 96
Questão
According to MuleSoft, what is the first step to create a Modern API for use in an application network?
Responda
-
Performance tune and optimize the backend systems and network
-
Create an API specification and get feedback from stakeholders
-
Create a prototype of the API implementation
-
Gather a list of requirements to secure the API
Questão 97
Questão
What is the format of documents exchanged in a SOAP request/response interaction?
Questão 98
Questão
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?
Responda
-
%dw 2.0
output application/json
import * from modules::MyModule
---
MyModule::formatString("annie point")
-
%dw 2.0
output application/json
import * from modules.MyModule
---
MyModule.formatString("annie point")
-
%dw 2.0
output application/json
import * from modules::MyModule
---
MyModule.formatString("annie point")
-
%dw 2.0
output application/json
import * from modules.MyModule
---
formatString("annie point")
Questão 99
Questão
What is the maximum number of Mule applications that can run in a Cloud Hub Worker?
Questão 100
Questão
Refer to the exhibits.
The Validation component in the private flow throws an error. What response message is returned to a web client request to the main flow's HTTP Listener?
Responda
-
“Error - private flow”
-
“Validation Error”
-
”Error – main flow”
-
“Success - main flow”
Questão 101
Questão
Refer to the exhibits.
What payload and quantity are logged at the end of the main flow?
Responda
-
[[order1, order2, order3, order4], 14]
-
[[1,2,3,4], 10]
-
[[1,2,3,4], 14]
-
[order1order2order3order4, 14]
Questão 102
Questão
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 bookISBN. What is the DataWeave expression to access bookISBN later in the flow?
Responda
-
attributes.bookISBN
-
flowVars.bookISBN
-
vars.bookISBN
-
bookISBN
Questão 103
Questão
In what file does the Mule project keep track of all of its dependencies?
Responda
-
mule-artifact.json
-
Pom.xml
-
mule-app.properties
-
global.xml
Questão 104
Questão
Refer to the exhibit.
What data is expected by the POST /accounts endpoint?
Responda
-
<item>
<id>48292</id>
<name>Geordi La Forge</name>
<address>1 Forge Way, Midgard, CA 95928</address>
<customer_since>2014-01-04</customer_since>
<balance>4829.29</balance>
</item>
-
<item>
<name>Geordi La Forge</name>
<address>1 Forge Way, Midgard, CA 95928</address>
<customer_since>2014-01-04</customer_since>
<balance>4829.29</balance>
<bank_agent_id>48SJT-282924-KL</bank_agent_id>
</item>
-
{
"name": "Geordi La Forge",
"address": "1 Forge Way, Midgard, CA 95928",
"customer_since": "2014-01-04",
"balance": 4829.29,
"bank_agent_id": "48SJT-282924-KL"
}
-
{
"id": "48292",
"name": "Geordi La Forge",
"address": "1 Forge Way, Midgard, CA 95928",
"customer_since": "2014-01-04",
"balance": 4829.29
}
Questão 105
Questão
Refer to the exhibits.
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?
Responda
-
"FILE:CONNECTIVITY"
-
"ORDER:NOT_CREATED"
-
"OTHER ERROR"
-
"File written"
Questão 106
Questão
What statement is part of MuleSoft's description network?
Responda
-
Create reusable APIs and assets designed to be consumed by other business units
-
Create and manage high availability and fault tolerent services and infrastructure
-
Central IT delivers complete point-to-point solutions with master data management
-
Create and manage a collection of JMS messaging services and infrastructure
Questão 107
Questão
Refer to the exhibits.
The Set Payload transformer in the addItem 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 addItem child flow to add a router cal with the price of 100 to the order?
Responda
-
lookup( "addltem", { price: "100", item: "router", itemType: "cable" } )
-
lookup( "addltem", { payload: { price: "100", item: "router", itemType: "cable" } > )
-
addltem( { payload: { price: "100", item: "router", itemType: "cable" > } )
-
addltem( { price: "100", item: "router", itemType: "cable" } )
Questão 108
Questão
Refer to the exhibits.
A JSON payload is set in the Set Payload transformer. What is logged by the Logger?
Responda
-
"String"
-
"Object"
-
"Array"
-
"JSON"
Questão 109
Questão
Refer to the exhibits.
A web client sends sale data in a POST request to the Mule application. The Transform Message component then enriches the payload by prepending a vendor name to the sale data. What is written to the sales.csv file when the flow executes?
Responda
-
The enriched payload in JSON format
-
The enriched payload in XML format
-
The enriched payload in CSV format
-
An error message
Questão 110
Questão
Refer to the exhibit.
What DataWeave expression transforms the example XML input to the CSV output?
Responda
-
payload.sale.*item map ( (value,index) -> {
index: index,
sale: value.@saleId,
itemName: value.desc,
itemPrice: (value.price) * (value.quantity),
item: value.@itemId
})
-
payload.sale.*item map ( (value,index) -> {
index: index,
sale: value.@saleId,
itemName: value.desc,
itemPrice: (value.price) * (value.quantity),
item: value.itemId
})
-
payload.sale.item map ( (value,index) -> {
index: index,
sale: value.@saleId,
itemName: value.desc,
itemPrice: (value.price) * (value.quantity),
item: value.@itemId
})
-
payload.sale.item map ( (value,index) -> {
index: index,
sale: value.saleId,
itemName: value.desc,
itemPrice: (value.price) * (value.quantity),
item: value.itemId
})
Questão 111
Questão
An inbound Database connector is configured to select rows from a MySQL database. What is the format of results returned from the database query?
Questão 112
Questão
Refer to the exhibits.
The Mule application contains a Choice router. What is logged when the flow completes?
Responda
-
US
-
"REGION"
-
EU
-
["US", "EU"]
Questão 113
Questão
A RAML example fragment named BankAccountsExample.raml is placed in the examples folder in an API specification project. What is the correct syntax for to reference the fragment?
Responda
-
example: !include BankAccountsExample.raml
-
example: #import BankAccountsExample.raml
-
example: !include examples/BankAccountsExample.raml
-
example: #import examples/BankAccountsExample.raml
Questão 114
Questão
Determine which response message is allowed to pass back from the API backend service. What happens to the outbound properties of a Mule message after completing an outbound HTTP Request?
Responda
-
New outbound properties are added from the HTTP response headers
-
Previous outbound properties are passed through unchanged
-
Outbound properties are replaced with all the previous inbound properties
-
All previous outbound properties are removed
Questão 115
Questão
Refer to the exhibits.
The main flow contains a Flow Reference to the child flow. A web client sends a GET request to the main flow's HTTP Listener that includes a make query parameter. What values are accessible in the child flow?
Questão 116
Questão
Refer to the exhibit.
The Database Select operation returns five rows from a database. What is logged by the Logger component?
Responda
-
"Array"
-
"Object"
-
"LinkedHashMap"
-
"CaseInsensitiveHashMap"
Questão 117
Questão
A company has an API to manage departments, with each department identified by a unique deptId. The API was built with RAML according to MuleSoft best practices. What is valid RAML to specify a method to update the details for a specific department?
Responda
-
/departments:
/deptId:
patch:
-
/departments:
patch:
/deptId:
-
/departments:
patch:
queryParameters:
deptId:
-
/departments:
/{deptId}:
patch:
Questão 118
Questão
What is the purpose of the router element in APIkit?
Responda
-
Routes requests to API implementations, but does not validate them against RAML API specifications
-
Routes responses to the caller, but does not validate them against RAML API specifications
-
Validates requests against RAML API specifications and routes them to API implementations
-
Validates responses returned from API requests and routes them to the caller.
Questão 119
Questão
What out-of-the-box policy can safeguard against Denial of Service type attacks?
Questão 120
Questão
What file type is required to configure a Web Service Consumer to consume a SOAP web service?
Questão 121
Questão
Refer to the exhibit. The API specification supports searching for articles on the searchworld.org site. What is the most idiomatic (used for its intended purpose) URL and method to retrieve articles about "einstein" in XML format?
Responda
-
https://www.searchworld.org/s/api.php?action=search&query=einstein&format=xml
(GET - AUTH)
-
https://www.searchworld.org/s/api.php?query=einstein&format=xml
(GET - AUTH)
-
https://www.searchworld.org/s/api.php?action=search&query=einstein&format=xml
(GET)
-
https://www.searchworld.org/s/api.php?action=search&query=einstein&format=xml
(POST - AUTH)
Questão 122
Questão
Refer to the exhibit. What is the correct URL to submit a GET request to /patients?
Responda
-
http://dev.acme.com/patients?year=2016
-
http://dev.acme.com/api/patients
-
http://dev.acme.com/patients
-
http://dev.acme.com/api/patients?year=2016
Questão 123
Questão
Refer to the exhibit.
#%RAML 1.0
version: v1
title: American Flight API
/flights:
get:
/{flight_id}:
get:
This RAML file generates an error. What needs to be done to make this valid RAML?
Responda
-
Remove the blank line on row 7
-
Enclose the {flight_id} resource in parentheses () instead of curly braces {}
-
Indent the get method under {flight_id} resource
-
Outdent the {flight_id} resource
Questão 124
Questão
Refer to the exhibits. What is the syntax to define this datatype in RAML?
Responda
-
music: collection: Classic Rock artists: - Deep Purple - Rainbow
-
music: collection: Classic Rock artists: Deep Purple Rainbow
-
music: collection: Classic Rock artists: Deep Purple, Rainbow
-
music: collection: Classic Rock artists: artist: Deep Purple artist: Rainbow
Questão 125
Questão
What reserved property can be used in a Mule application to allow an HTTPS Listener to be accessed by external web clients after the Mule application is deployed to CloudHub?
Responda
-
${ssl.port}
-
${ssl.listener.port}
-
${https.listener.port}
-
${https.port}
Questão 126
Questão
What port number is used to expose the domain URL of a Mule application deployed to CloudHub?
Questão 127
Questão
What is NOT a role of an API proxy application running in a Mule runtime?
Responda
-
Determine which request message is allowed to pass through to the API backend service
-
Apply runtime policies to enforce governance
-
Measure the traffic flowing through to the API backend service
-
Determine which response message is allowed to pass back from the API backend service
Questão 128
Questão
A web service implements an API to handle requests to http://acme.com/customers/{state}. A web client makes a request to this API implementation at http://acme.com/customers/CA. What is the correct DataWeave expression to retrieve the value CA?
Responda
-
#[message.payload.inboundProperties.'http.uri.params'.state]
-
#[attributes.uriParams.state]
-
#[attributes.'http.uri.params'.state]
-
#[message.inboundProperties.'http.uri.params'.state]
-
#[state]
Questão 129
Questão
What is the correct MEL expression to retrieve the value CA?
Responda
-
#[message.payload.inboundProperties.'http.query.params'.state]
-
#[message.inboundProperties.'http.uri.params'.state]
-
#[message.payload.inboundProperties].
-
#[message.inboundProperties.state]
Questão 130
Questão
What property of a Mule message is immutable?
Responda
-
Attachments
-
Outbound properties
-
Session variables
-
Payload
-
Inbound properties
-
Flow variables
Questão 131
Questão
A Mule application has two flows named parentFlow and childFow. A flow variable is defined in parentFlow. What is the scope of the flow variable when the parentFlow calls childFlow using a flow reference?
Responda
-
The flow variable is accessible in childFlow but is immutable
-
The flow variable is accessible in childFlow, can be changed, and changes are seen back in parentFlow
-
The flow variable is NOT accessible in childFlow
-
The flow variable is accessible in childFlow, can be changed, but changes are NOT seen back in parentFlow
Questão 132
Questão
What is true for a Mule subflow?
Responda
-
It can have its own exception strategy
-
It is executed synchronously
-
An external client can send messages directly to it
-
It must be in the same configuration file as the parent flow
Questão 133
Questão
What is the default processing strategy of a one-way flow?
Questão 134
Questão
What is required for two Mule applications to share data using a VM connector component?
Responda
-
Put the Mule applications in the same Anypoint Platform environment
-
Put the Mule applications in the same Anypoint Platform business group
-
Put the Mule applications in the same non-default Mule domain
-
Put the Mule applications in the same default Mule domain
Questão 135
Questão
A WSDL defines a conversionRate operation with an input message that requires two parts: fromCurrency and toCurrency. How are fromCurrency and toCurrency set in the flow in order to call the conversionRate operation using a Web Service Consumer component?
Responda
-
In two flow variables
-
As outbound properties
-
As inbound properties
-
In the message payload
-
As attachments
Questão 136
Questão
What is NOT a way to pass data to a RESTful web service in a flow using an outbound HTTP Request component?
Responda
-
Set URI parameters in the HTTP Request component
-
Set inbound properties before the HTTP Request component
-
Set query parameters in the HTTP Request component
-
Set outbound properties before the HTTP Request component
Questão 137
Questão
An exception is caught by a choice exception strategy. How is the exception routed?
Responda
-
To all exceptions whose conditions evaluate to true
-
To the first exception strategy whose condition evaluates to true
-
To the first exception strategy whose condition evaluates to true and to the default exception strategy
-
To the first exception strategy whose condition evaluates to true and to the global exception strategy
Questão 138
Questão
How is a default exception strategy set in a Mule application?
Responda
-
In a configuration global element in any Mule configuration XML file
-
In the mule-app.properties file
-
As an attribute of one or more flow configuration elements in one or more Mule configuration XML files
-
As an attribute of a global exception strategy
-
As a JVM system environment variable
Questão 139
Questão
How are conditions used in a Choice flow control?
Responda
-
To find the first true condition, then routes the message to that and all subsequent target message processors.
-
To select a set of target message processors to which to route the same message
-
To find the first true condition, then routes the message to the matched Choice target message processor
-
To select from the responses after routing the message to every Choice target message processor
Questão 140
Questão
A Scatter-Gather flow control sends the inbound message to three separate HTTP re-quests. Each request returns a JSON object. What is the final output of the Scatter-Gather flow control?
Questão 141
Questão
How is a data collection routed in a Scatter-Gather flow control?
Responda
-
The entire message is sent to each route and processed sequentially
-
The message is split and different pieces are routed and processed in parallel
-
The message is split and different pieces are routed and processed sequentially
-
The entire message is sent to each route and processed in parallel
Questão 142
Questão
A Payload filter is configured to test for type java.lang.String. What happens when the filter is passed a message with the payload null?
Responda
-
The Mule application stops
-
The message is replayed from the start of the flow
-
The message is passed to subsequent message processors
-
All subsequent message processors are skipped
Questão 143
Questão
What message processor will throw an exception if a message payload is not a number?
Responda
-
Is Number validator
-
Is Not Number validator
-
Is Number filter
-
Is Not Number filter
Questão 144
Questão
A Mule flow has a JMS queue listener as the message source. Where can the next message processor access a JMS message's header?
Responda
-
Outbound property
-
Inbound property
-
Payload
-
Attachment
-
Flow variable
Questão 145
Questão
What part of a Mule flow can contain a Poll scope?
Responda
-
Async scope
-
Message source
-
For Each scope
-
Message Enricher scope
Questão 146
Questão
How is a Poll scope's watermark accessed from a message processor in a flow?
Responda
-
In a session variable
-
In an outbound property
-
In an inbound property
-
In a flow variable
-
In a header
Questão 147
Questão
A File connector is configured to read files from a /mule/input directory. All other File connector settings are the default settings. What happens to a file after it is processed by the File connector?
Responda
-
The file is moved to /mule/output
-
The file is deleted from the input directory, but is not moved anywhere
-
The file is moved to /tmp
-
The file stays in the input directory
Questão 148
Questão
What phase of a batch job using a Batch scope must contain at least one message processor?
Responda
-
Input
-
Load and Dispatch
-
Process Records
-
On Complete
Questão 149
Questão
A message payload is modified using a Message Enricher scope with an empty target. What is true about the message payload that leaves the Message Enricher scope?
Responda
-
The payload is changed to the modified payload
-
The modified payload is stored in a flow variable
-
The modified payload is stored as an inbound property
-
The payload returns to the original payload
-
The modified payload is stored as an outbound property
Questão 150
Questão
A Batch scope has three batch steps. A message processor in the second batch step throws an exception because the input data is incomplete. What is the default behavior after the exception is thrown?
Responda
-
Continues to the third batch step
-
Stops processing the entire batch job
-
Retries the second batch step
-
Retries the first batch step
Questão 151
Questão
What is the scope of a record variable in a Batch scope?
Responda
-
In a single batch step, but not in the other batch steps
-
In all batch steps, but not in the On Complete phase
-
In the message source, each batch step, and the On Complete phase
-
In all batch steps, and the On Complete phase
Questão 152
Questão
An API has been created in Design Center. What is the next step to make the API discoverable?
Responda
-
Deploy the API to a Maven repository
-
Enable autodiscovery in API Manager
-
Publish the API from inside flow designer
-
Publish the API to Anypoint Exchange
Questão 153
Questão
What is NOT part of a Mule 4 event?
Responda
-
Message
-
Payload
-
OutboundProperties
-
Attributes
Questão 154
Questão
How does APIkit determine the number of flows to generate from a RAML specification?
Responda
-
Creates a separate flow for each resource
-
Creates a separate flow for each resource that contains child resources
-
Creates a separate flow for each HTTP method
-
Creates one flow for the entire API spec
-
Creates a separate flow for each response status code
Questão 155
Questão
API Manager has been configured to enforce an SLA policy and the RAML spec has been updated with the required client_id and client_secret header requirements. The new RAML spec has been published to Anypoint Exchange. What is the next step to gain access to the API?
Responda
-
POST a JSON object to the /api/register endpoint of the API proxy
-
Request access to the API in Anypoint Exchange
-
Email the organization administrators to request access to the API
-
Add a client application to the Anypoint Platform organization
Questão 156
Questão
What happens to the attributes of a Mule event in a flow after an outbound HTTP Request is made?
Responda
-
New attributes may be added from the HTTP response headers, but no headers are ever removed
-
Previous attributes are passed unchanged
-
Attributes do not change
-
Attributes are replaced with new attributes from the HTTP Request response (which might be null)
Questão 157
Questão
A Set Variable component saves the current payload to a variable with the name: images. What is the DataWeave expression to access the images variable?
Responda
-
#[payload.images]
-
#[images]
-
#[flowVars.images]
-
#[vars.images]
Questão 158
Questão
A flow contains an HTTP Listener as the event source. What is the DataWeave expression to log the Content-Type header using a Logger component?
Responda
-
#["Content-Type: " ++ attributes.headers.'content-type']
-
#["Content-Type: " + headers.'content-type']
-
#["Content-Type: " + attributes.headers.'content-type']
-
#["Content-Type: " ++ headers.'content-type']
Questão 159
Questão
A Mule application has two flows named parentFlow and childFlow. The childFlow begins with an HTTP Listener. A variable is defined in parentFlow, then an HTTP Request is made to childFlow's HTTP Listener with some headers set. What is the scope of the variable and attributes in the parentFlow after childFlow returns a response?
Responda
-
The variable is accessible. All the attributes passed to childFlow are removed or replaced.
-
The variable is NOT accessible. All the attributes passed to childFlow are removed or replaced.
-
The variable is NOT accessible. All the attributes passed to childFlow are preserved.
-
The variable is accessible. All the attributes passed to childFlow are preserved.
Questão 160
Questão
A Mule application has a flow named parentFlow. The parentFlow contains an HTTP Re-quest operation at the end of the flow. The parentFlow also contains a Set Variable operation right before the HTTP Request operation. What is the scope of the variable to the ser-ver receiving the HTTP Request from parentFlow?
Responda
-
The variable is accessible in the server but is immutable
-
The variable is accessible in the server, can be changed, and changes are seen back in parentFlow
-
The variable is NOT accessible in the server
-
The variable is accessible in the server, can be changed, but changes are NOT seen back in parentFlow
Questão 161
Questão
A Mule application has two flows named parentFlow and childFlow. A variable is defined in parentFlow. What is the scope of the variable when the parentFlow calls childFlow using a Flow Reference?
Responda
-
The variable is accessible in childFlow but is immutable
-
The variable is accessible in childFlow, can be changed, and changes are seen back in parentFlow
-
The variable is NOT accessible in childFlow
-
The variable is accessible in childFlow, can be changed, but changes are NOT seen back in parentFlow
Questão 162
Questão
Refer to the exhibit. In the deployable archive's /classes folder, there are two properties files named dev.properties and prod.properties. The Mule application fails to deploy to CloudHub through Runtime Manager with the following error message. What could be causing this error?
Responda
-
error: ${env}.properties cannot be opened because it does not exist
-
The property files were NOT saved at the root level of the deployable archive
-
The env property is NOT set in the Runtime Manager in the Mule application's Pro-perties tab
-
A file named ${env}.properties is NOT included in the deployable archive file
-
The dev.properties and prod.properties files were NOT uploaded to Runtime Manager
Questão 163
Questão
Why must a Mule application's deployable archive package all its dependencies in order to be deployed to CloudHub?
Responda
-
The online logging service requires access to ALL project dependencies to log the appropriate Java classes used in the Mule application
-
CloudHub workers CANNOT download ALL possible project dependencies a pro-ject may contain
-
CloudHub workers needs to compare the current dependencies with the LATEST project dependencies from the MuleSoft repository
-
MuleSoft support requires access to ALL project dependencies for future online troubleshooting
Questão 164
Questão
What can ONLY be done with VM connectors, and NOT with Flow References, in a single Mule application?
Responda
-
Preserve variables as the Mule event gets passed to another flow
-
Allow a flow to pass events to another flow synchronously
-
Preserve the original payload when the VM connector returns a response from a flow
-
Allow a flow to pass events to another flow asynchronously
Questão 165
Questão
How are query parameters dynamically passed to an outbound REST request using an HTTP Request operation?
Responda
-
As query parameters in the HTTP Request operation
-
As URI parameters in the HTTP Request operation
-
In the Mule event's payload
-
As flow variables
-
As attributes in a Transform Message component before the HTTP Request operation
-
As attributes in the HTTP Listener operation
Questão 166
Questão
Refer to the exhibit. The flow calls a SOAP endpoint using the Consume operation of the Web Service Consumer. The SOAP service has a required input parameter. What event processor can be used to build the SOAP envelope with the required argument to pass to the SOAP service?
Responda
-
Set Property
-
Build SOAP
-
Transform Message
-
JSON to XML
-
Set Attachment
Questão 167
Questão
An HTTP Request operation returns a JSON array of objects. In the Transform Message component, what is the process to convert the array of objects to an array of custom Java Account objects?
Responda
-
Add the Account object metadata to the output and use the drag-and-drop feature to transform the incoming JSON data
-
Change the output type to the Java Account object type
-
Add the Account object metadata to the input and the Transform Message
component will automatically convert the JSON objects to Account objects
-
Change the input type to the Java Account object type
Questão 168
Questão
What is the process to create a connector using REST Connect?
Responda
-
Develop the API in flow designer and publish the API to Exchange
-
Design the API in Anypoint Studio and upload the API to Runtime Manager
-
Design the API in Design Center and publish the API to Exchange
-
Develop the API in Anypoint Studio and export the connector as a jar file
Questão 169
Questão
An event contains a payload that is an nothing needs. How is the event routed in a Scatter-Gather?
Responda
-
The ENTIRE event is sent to each route and processed SEQUENTIALLY
-
The event is SPLIT and different SMALLER events are routed and processed in PARALLEL
-
The event is SPLIT and different SMALLER events are routed and processed SEQUENTIALLY
-
The ENTIRE event is sent to each route and processed in PARALLEL
Questão 170
Questão
Refer to the exhibits. What happens to this flow when the Validation module's Is not null operator throws an error?
Responda
-
The flow silently stops processing its Mule event
-
The flow stops processing its Mule event and returns an error message to the HTTP Listener operation
-
The flow logs the error message in the console and continues processing its Mule event
-
The flow continues processing its Mule event and appends the error message to the end of the payload
Questão 171
Questão
On error continue/consume
Questão 172
Questão
On error propagate
Questão 173
Questão
On error propagate inside of a private flow uses what error message
Questão 174
Questão
How can an error scope be configured to catch all errors in the HTTP namespace?
Questão 175
Questão
What is the correct way to format the decimal 20.3844 as a string to two decimal places?
Responda
-
20.3844 as String ({format: ".0#"})
-
20.3844 {format: ".0#" as String}
-
20.3844 as String {format: ".0#"}
-
20.3844 format (String: ".0#")
Questão 176
Questão
Refer to the exhibit. An event payload contains an unordered array of flight objects, where every object has a price key and a toAirport key. What is valid DataWeave code to return flights with price under 500, grouped by toAirport in ascending order, with the lowest price first?
Responda
-
payload groupBy $.toAirport filter $.price < 500 orderBy $.price
-
payload groupBy $.toAirport filter $.price > 500 orderBy $.price
-
payload filter $.price < 500 orderBy $.price groupBy $.toAirport
-
payload filter $.price > 500 orderBy $.price groupBy $.toAirport
Questão 177
Questão
A Mule application has a main flow and a combineNames flow. In the main flow, a varia-ble named fullName is set to the object {firstName: "Max", lastName: "Mule"}. What is valid DataWeave code to call the combineNames flow with the input object stored in the fullName variable?
Responda
-
#[ dw::Flow::lookup( "combineNames", vars.fullName ) ]
-
#[ dw::Runtime::lookup( "combineNames", vars.fullName ) ]
-
#[ lookup( "combineNames", vars.fullName ) ]
-
#[ combineNames( vars.fullName ) ]
-
#[ lookup( combineNames( vars.fullName ) ) ]
Questão 178
Questão
What is NOT part of a Mule 3 message?
Responda
-
Payload
-
Inbound properties
-
Outbound properties
-
Variables
-
Attachments
Questão 179
Questão
A Flow Reference component sends a non-empty JSON object payload to another flow named childFlow, which then returns an XML body. A Flow Reference component saves the payload returned from childFlow to its target attribute named payload. Refer to the ex-hibit. What is true about the Mule event's payload at the next event processor after the Flow Reference component?
Responda
-
The payload is the XML response body
-
The payload is a non-empty Java object
-
The payload is the original JSON object
-
The payload is null
Questão 180
Questão
A database table contains a recordID column that increases as new records get added to the table. A Mule application is created to read from this database table.
What is the key process to enable manual watermarking for requests to this database using the Scheduler endpoint and a Database Select operation?
Responda
-
Save the max recordID from the set of recordIDs in an ObjectStore and reference this recordID in subsequent database requests
-
Enable automatic watermarking in the Database Select operation
-
Set the Watermark column in the Scheduler endpoint to the recordID
-
Save the max recordID from the set of recordIDs in a variable and reference this variable in subsequent database requests
Questão 181
Questão
What does an API proxy application NOT do?
Responda
-
Determine which request Mule event is allowed to pass through to the API backend service
-
Apply runtime policies to enforce governance
-
Determine which response Mule event is allowed to pass through to the API backend service
-
Meters the traffic flowing through the proxy
Questão 182
Questão
A flow contains a Database Select operation followed by an HTTP Request operation. The Flow must combine and return data received from these two connector operations.
What is a valid and idiomatic (used for it’s intended purpose) way to capture both payloads so the payload output from the second HTTP Request operation does not overwrite the payload output from the first Database Select operation?
Responda
-
Put the Database Select operation in a Try scope configured with a transaction.
-
Save the payload from the Database Select operation to a variable.
-
Set the combinedPayloads attribute to true in the Database Select operation configuration.
-
Put the Database Select operation inside a Cache scope
Questão 183
Questão
Refer to the exhibit. What is the correct DataWeave expression for accessing the city Cleveland from JSON payload?
[
{
"orderID": 592,
"shipping": "international",
"city": Tokyo,
"price": 5922345
},
{
"orderID": 678,
"shipping": "domestic",
"city": Cleveland,
"price": 5123456
},
{
"orderID": 253,
"shipping": "international",
"city": Berlin,
"price": 57654543
},
Responda
-
#[payload[2].city]
-
#[payload[1].city]
-
#[payload.city[1]]
-
#[payload.city[2]]
Questão 184
Questão
A Mule application contains two HTTP Listeners, each configured for different API endpoints: http://trainingdemo.com/apis/orders and http://trainingdemo.com/apis/customers. What base path value should be set in an HTTP Listener config element so that it can be used to receive requests for both the API endpoints mentioned above?
Responda
-
/apis/
-
/apis/?
-
/apis/orders|customers
-
/apis/*
Questão 185
Questão
Refer to the exhibit. DataWeave code needs to be written to transform the input payload to the output payload. What is valid DataWeave code to perform this transformation?
Responda
-
%dw 2.0
output application/xml
---
employees:
employee
@(
firstName: payload[0].employee1.firstName[0],
lastName: payload[0].employee1.firstName[0]
) : null
-
%dw 2.0
output application/xml
---
employees:
employee
(
firstName: payload[0].employee1.firstName[0],
lastName: payload[0].employee1.firstName[0]
) : ""
-
%dw 2.0
output application/xml
---
employees:
employee
@(
firstName: payload[0].employee1.firstName[0],
lastName: payload[0].employee1.firstName[0]
) : null
-
%dw 2.0
output application/xml
---
employees:
employee
(
firstName: payload[0].employee1.firstName[0],
lastName: payload[0].employee1.firstName[0]
) : ""
Questão 186
Questão
A RAML specification is defined to manage customers with a unique identifier for each customer record.
What URI does MuleSoft recommend to uniquely Access the customer identified with the unique ID 1234?
Questão 187
Questão
Refer to the exhibit. A shopping API contains a method to look up store details by department. According to this RAML specification, what is a valid URL for a web client to submit a GET request for etails about the pharmacy department at the store with storeID 23?
Responda
-
/stores/${23}?store_id=23&department=”pharmacy”
-
/stores/23?store_id=23&department="pharmacy”
-
/stores/{23}?store_id=23&department=”pharmacy”
-
/stores/${23}/store_id=23&department=”pharmacy”
Questão 188
Questão
An HTTP Request operation sends an HTTP Request with a non-empty JSON-formatted object payload to an external HTTP endpoint. The respons from the external HTTP endpoint returns an XML-formatted body. The result is stores in a target named theResult.
What is the format of the payload that is input to the next event processor after the HTTP Request?
Responda
-
application/xml
-
application/dw
-
application/json
-
application/java
Questão 189
Questão
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?
Responda
-
Process layer
-
Experience layer
-
Data layer
-
System layer
Questão 190
Questão
Refer to the exhibits. The validation component in the Try scope block throws an error. What response message is returned to a client request sent to the main flow's HTTP Listener?
Responda
-
Validation Error
-
Error - Try Scope
-
Error - main flow
-
Success - main flow
Questão 191
Questão
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. What values are accessible to the Logger at the end of the main flow after a web client submits the request to http://localhost:8080/order?color=red?