MULESOFT DEVELOPER
How are query parameters dynamically passed to an outbound REST request using HTTP Request operation? - As flow variables - In the Mule event's payload - As query parameters in the HTTP Request operation - As attributes in a Transform Message component before the HTTP Request operation - As URI parameters in the HTTP Request operation - As attributes in the HTTP Listener operation.
As query parameters in the HTTP Request operation
In an application network, the implementation, not the interface of a product API is being changed. Does anything need to change in the other API's or the associated applications that consume the product API, and if so, what are these changes? The applications associated with the other API's must be recorded Nothing needs to be changed in the other APIs or their associated applications The other APIs must be updated to consume the updated product API The applications associated with the other APIs must be restarted.
Nothing needs to be changed in the other APIs or their associated applications.
A web client sends 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 a valid DataWeave expression to access the bookISBN variable later in the flow? variables.bookISBN bookISBN vars.bookISBN attributes.bookISBN
vars.bookISBN
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? #[images] #[flowVars.images] #[payload.images] #[vars.images]
#[vars.images]
What reserved property can be defined and 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? - ${ssl.port} - ${https.listener.port} -${https.port} -${ssl.listener.port}
${https.port}
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? - #[message.payload.inboundProperties.'http.query.params'.state] - #[message.inboundProperties.'http.uri.params'.state] - #[attributes.uriParams.state] - #[state]
- #[attributes.uriParams.state]
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? - Change the input type to 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. - 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 thje Java Account object type.
- Add the Account object metadata to the output and use the drag-and-drop feature to transform the incoming JSON data
What can ONLY be done with VM connectors, and NOT with Flow References, in a single Mule application? - Allow a flow to pass events to another flow asynchronously - Allow a flow to pass events to another flow synchronously - Preserve the original payload when the VM connector retrurns a response from a flow - Preserve variables as the Mule event gets passed to another flow.
- Allow a flow to pass events to another flow asynchronously
What happens to the attributes of a Mule event in a flow after an outbound HTTP Request is made? - Attributes do not change - New attributes may be added from the HTTP response, but previous attributes are passed through unchanged - Attributes are replaced with new attributes from the HTTP Request response (which might be null) - New attributes may be added from the HTTP response headers, but no headers are ever removed.
- Attributes are replaced with new attributes from the HTTP Request response (which might be null)
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 - Produces and manages API policies for line of business deployments - Centrally manages partners and consultants to implement line of business projects. - Creates and manages discoverable assets to be consumed by line of business developers.
- Creates and manages discoverable assets to be consumed by line of business developers.
What statement is part of MuleSoft's description of an application network? - Leverages Central IT to deliver complete point-to-point solutions with master data management. - Creates and manages high availability and fault tolerant services and infrastructure. - Creates and manages a collection of JMS messaging services and infrastructure. - Creates reusable API's and assets designed to be consumed by other business units.
- Creates reusable API's and assets designed to be consumed by other business units.
What is the process to create a connector using REST Connect? - Develop the API in Flow Designer and publish the API to Exchange - 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. - 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
An API has been created in Design Center. What is the next step to make the API discoverable? - Publish the API from inside Flow Designer - Deploy the API to a Maven repository - Enable autodiscovery in API Manager - Publish the API to Anypoint Exchange
- Publish the API to Anypoint Exchange
What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic? - System - Process - Experience - Data - Security
- System
A Mule application has a flow named parentFlow. The parentFlow contains an HTTP Request 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 server receiving the HTTP Request from parentFlow? - The variable is NOT accesible in the server. - The variable is accessible in the server but is immutable - The variable is accessible in the server, can be changed, but changes are NOT seen back in parentFlow - The varaible is accessible in the server, can be changed, and changes are seen back in parentFlow.
- The variable is NOT accesible in the server.
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? - The variable is NOT accesible in childFlow - The variable is accessible in childFlow, can be changed, but changes are NOT seen back in parentFlow. - The variable is accessible in childFlow, can be changed, and changes are seen back in parentFlow
- The variable is accessible in childFlow, can be changed, and changes are seen back in parentFlow
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 the 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? - 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 preserved. - The variable is accessible. All the attributes passed to the childFlow are removed or replaced. - The variable is accessible. All the attributes passed to the childFlow are preserved.
- The variable is accessible. All the attributes passed to the childFlow are removed or replaced.
What is the main purpose of Flow Designer in Design Center? - To design API RAML files in a graphical way - To design and develop fully functional Mule applications in a hosted development environment - To design and mock Mule application templates that must be implemented using Anypoint Studio - To define an API lifecycle management in a graphical way
- To design and develop fully functional Mule applications in a hosted development environment
How are multiple conditions used in a Choice router to route events? - To find the FIRST true condition. then route the same event to the matched route and ALL FOLLOWING routes. - To filter and aggregate the responses after copying the even to EVERY route. - To find the FIRST true condition, then distribute the event to the ONE matched route - To route the same event to the matched route of EVERY true condition.
- To find the FIRST true condition, then distribute the event to the ONE matched route
What is the purpose of the api:router element in APIkit? - Validates requests against RAML API specifications and routes them to API implementations - Serves as an API implementation - Validates responses returned from API requests and routes them back to the caller - Creates native connectors using a 3rd party Java library
- Validates requests against RAML API specifications and routes them to API implementations
What is NOT part of a Mule 4 event? - variables - atrributes - message - outboundProperties - payload
- outboundProperties
A Mule application contains two HTTP listeners, each configured for different API endpoints: http://acme.com/apis/orders and http://acme.com/apis/customers What base path value should be set in an HTTP Listener config element so that it can be used to configure both HTTP Listeners? /apis/ /apis/* /apis/orders|customers /apis/?
/apis/*
A RAML specification is defined to manage customers with a unique identifer for each customer record. What URI does MuleSoft reccomend to uniquely access the customer identified with the unique ID 1234? /customers/1234 /customers?operation=get&custid=1234 /customers/custid=1234 /customers?custid=true&custid=1234
/customers/1234
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 details about the pharmcy department at the store with storeid 23? /stores: post: get: /{storeId}: get: queryParameters: department: store_id: - /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"
/stores/23?store_id=23&department="pharmacy"
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? A flow attribue A global element the pom.xml file The mule-artifact.json file.
A global element.
What is the purpose of API autodiscovery? A.) Allows a deployed Mule application to connect with the API manager to download policies and act as its own API proxy. B.) Allows the Mule application to be automatically discovered on Anypoint Exchange. C.) Enables an API to be directly managed in API Manager. D.) Enables API Manager to discover the published API on Anypoint Exchange.
A. Allows a deployed Mule application to connect with the API manager to download policies and act as its own API proxy.
What asset can NOT be created using Design Center? - Mule Applications - API Specifications - API Fragments - API Portals
API Portals
What is the purpose of API autodiscovery? - Allows a deployed Mule application to connect with API Manager to download policies and act as its own API proxy - Allows the Mule application to be automatically discovered on Anypoint Exchange - Enables API Manager to discover the published API on Anypoint Exchange - Enables an API to b directly managed in API Manager
Allows a deployed Mule application to connect with the API manager to download polices and act as its own API proxy.
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? - An Array of three JSON payload Objects. -An Array of the three Mule event Objects - An Object containing all three JSON payload Objects - An Object containing all three Mule event Objects - The last JSON payload Object - The last Mule event Object
An Object containing all three Mule event Objects
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? An array of three Mule event objects An array of three JSON payload objects An object containing three JSON payload objects An object containing three Mule event objects
An array of three JSON payload objects
What payload is returned by an Anypoint Connector for Database Select operation that does not match any rows in the database. null false An empty array An exception
An empty array
What is the minimum required configuration in a flow for a Mule application to compile? - A logger component - An event processor - A project RAML file - An event source
An event processor
What MuleSoft product enables publishing, sharing, and searching of APIs? - Anypoint Exchange - Runtime Manager - API Notebook - API Designer
Anypoint Exchange
What is the output type of the DataWeave map function? String Map Array Object
Array
How many Mule applications can run on a CloudHub Worker? - At least one - At most one - Depends on the vCores of the worker - Depends on the number of CloudHub workers configured
At most one
How many Mule applications can run on a CloudHub worker? A. Depends on the vCores of the worker B. Depends on the number of CloudHub workers configured C. At least one D. At most one.
At most one.
A client submits a GET request to a Mule 4 application to the endpoint /customers?id=48493 Where is the ID stored in the Mule event by the HTTP Listener? Variables Attributes Payload Inbound Properties
Attributes
A web client submits a GET request to a Mule 4 application to the endpoint /customers?id=48493 Where is the id stored in the Mule event by the HTTP Listener? - Inbound Properties - Variables - Attributes - Payload
Attributes
What does the Mule runtime use to enforce policies and limit access to APIs? A. API Manager B. The proxy created by API Manager C. The Mule runtime's embedded API Gateway D. Anypoint Access Control
C. The Mule runtime's embedded API Gateway.
A Mule application uses the ${http.port} property placeholder for its HTTP Listener port when it is deployed to CloudHub. What benefit does this Mule application configuration enable? CloudHub to automatically manange the HTTP port to allow external clients to connect to the HTTP Listener Clients to VPN directly to the Mule application at the Mule application's configured HTTP port MuleSoft Support to troubkleshoot the application by connecting directly to the HTTP Listener CloudHub to automatically register the application with API Manager.
CloudHub to automaticaly manage the HTTP port to allow external clients to connect to the HTTP Listener.
Where does a deployed Flow Designer application run in Anypoint Platform? - Design Center - CloudHub worker - API Manager - Exchange
CloudHub worker
Why must a Mule application's deployable archive package all its dependencies in order to be deployed to CloudHub? - CloudHub workers needs to compare the current dependencies with the LATEST project dependencies from the MuleSoft repository - The online logging service requires access to ALL project dependencies to og the appropriate Java classes used in the Mule application - Mulesoft support requires access to ALL project dependences for future online troubleshooting. - CloudHub workers CANNOT download ALL possible project dependencies a project may contain.
CloudHub workers CANNOT download ALL possible project dependencies a project may contain.
According to MuleSoft, what is the first step to create a Modern API for use in an application network? Create an API specification and get feedback from stakeholders Gather a list of requirements to secure the API Create a prototype of the API implementation Performance tune and optimize the backend systems and network
Create an API specification and get feedback from stakeholders
How does APIkit determine the number of flows to generate from a RAML specification? - Creates a separate flow for each HTTP method - Creates one flow for the entire API spec - Creates a separate flow for each resource that contains chid resources - Creates a separate flow for each resource. - Creates a separate flow for each response status code
Creates a separate flow for each resource.
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 SLA based policy? A.) Add new property placeholders and redeploy the API proxy. B.) Add new environment variables and restart the API proxy. C.) Restart the API proxy to clear the API policy cache. D.) Add required headers to the RAML specification and redeploy the new API proxy.
D. Add required headers to the RAML specification and redeploy the new API proxy.
What does an API proxy application NOT do? A. Determine which response Mule event is allowed to pass through to the API backend service. B. Determine which request Mule event is allowed to pass through the API backend service. C. Apply runtime policies to enforce governance. D. Meter the traffic flowing through the proxy.
Determine which response Mule event is allowed to pass through the API backend service.
What does an API proxy application NOT do? - Determine which response Mule event is allowed to pass through to the API backend service - Determine which request Mule event is allowed to pass through to the API backend service - Meter the traffic flowing through the proxy - Apply runtime policies to enforce governance
Determine which response Mule event is allowed to pass through to the API backend service.
A mule application contains a global error handler configured to catch any errors. Where must the global error handler be specified so that it catches all errors from flows that do not have their own error handlers? In a global element In a pom.xml file In the mule-artifact.json file In a configuration properties file.
In a global element.
A Database connector is configured to select rows from a MySQL database. What is the format of the array of results returned from the database query? - XML - CSV -JSON - Java
Java
A Mule application has been deployed to CloudHub and now needs to be governed. IT will not allocate additonal 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 the API Manager? -Modify the Mule application to use autodiscovery to register with the API Manager -Deploy the Mule application being a VPC and configure the VPC to connect to API Manager -Reigster the Mule application in Runtime Manager to connect to API Manager -Upload the Mule application's JAR file to the API instance in API Manager.
Modify the Mule application to use autodiscovery to register with the API Manager
What HTTP method in a RESTful web service is typically used to replace a resource completely? - PATCH - PUT - POST - GET
PUT
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? POST PATCH GET PUT
PUT
An API specification is defined using RAML. What is the next step to create a REST Connect connector from this API specification. Add the specification to a Mule project's src/main/resources/api folder Implement the API specification using Flow Designer Download the API specification and build the interface using APIkit Publish the API specification to Anypoint Exchange.
Publish the API specification to Anypoint Exchange
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? -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
Request access to the API in Anypoint Exchange
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? A.) POST a JSON object to the /api/register endpoint of the API proxy B.) Request access to the API in Anypoint Exchange C.) Email the organization administrators to request access to the API D. ) Add a client application to the Anypoint Platform organization
Request access to the API in Anypoint Exchange.
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 manaual watermarking for request to this database table using a Scheduler event source and a Database Select operation? Enable automatic watermarking in the Database Select operation. Set the Watermark column in the Scheduler to the recordID Save the max recordID from the set of recordIDs in an Object Store and reference this recordID in subsequent database requests. Save the max recordID from the set of recordIDs in a variable and reference this variable in subsequent database requests.
Save the max recordID from the set of recordIDs in an Object Store and reference this recordID in subsequent database requests.
A flow contains a Database Select operation followed by HTTP Request operation. The flow must combine and return data received from these two connector operations. What is a valid and idiomatic (used for its 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? Set the combinedPayloads attribute to true in the Database Select operation configuration Save the payload from the Database Select operation to a variable Put the Database Select operation in a Try scope configured with a transaction Put the Database Select operation inside a Cache scope
Save the payload from the Database Select operation to a variable.
What is a core characteristic of the Modern API? - API is rapidly produced by following AGILE methodology. - API is designed first using an API specification for rapid feedback - API has a mechanism to accept feedback and suggestions for improvement. - API follows the RESTful architecture
The API is designed first using an API specification for rapid feedback.
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. All existing in-flight records are discarded. 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 scope for processing The Batch Job scope stops processing all records The second Batch Step scope is retired with the same data.
The Batch Job scope stops processing all records.
An event contains a payload that is an Array of Objects. How is the event routed in a Scatter-Gather? 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
The ENTIRE event is sent to each route and processed in PARALELL
What does the Mule runtime use to enforce policies and limit access to APIs? - Anypoint Access Control - API Manager - The proxy created by API Manager - The Mule runtime's embedded API gateway
The Mule runtime's embedded API Gateway
How can an error scope be configured to catch all errors in the HTTP namespace? Answers Type: HTTP When: Type: HTTP* When: Type: When: #[ error.errorType.namespace == "HTTP" ] Type: When: #[ contains "HTTP" ]
Type: When: #[ error.errorType.namespace == "HTTP" ]
What module and operation will throw an error if a Mule event's payload is not a number? - Validation modules is number operation - Filter modules Is number operation - Validation modules Is not number operation - Filter modules Is not number operation
Validation modules Is Number operation
What file type is required to configure a Web Service Consumer to consume a SOAP webservice? - RAML - WSDL - OAS - JSON
WSDL
A Mule project contains a MySQL Database dependency. The project is exported from Anypoint Studio so it can be deployed to CloudHub. What export options create the smallest deployable archive that will succesfully deploy to CloudHub? [x]Attach project sources [x]Include project modules and dependencies []Attach project sources []Include project modules and dependencies []Attach project sources [x]Include project modules and dependencies [x]Attach project sources []Include project modules and dependencies
[]Attach project sources [x]Include project modules and dependencies A lightweight package generated without modules and dependencies won't be deployable to CloudHub but can be imported into Studio.
An HTTP Request operation sends an HTTP request with a non-empty JSON-formatted object payload to an external HTTP endpoint. The response from the external HTTP endpoint returns an XML-formatted body. The result is stored in a target named the Result. What is the format of the payload that is input to the next event porcoessor after the HTTP Request? - application/dw - application/xml - application/java - application/json
application/json
A RAML example fragment named BankAccountsExample.raml is placed in the examples folder in an API specification project. What is the correct syntax to reference the fragment? - examples: #import BankAccountsExample.raml - examples: !include BankAccountsExample.raml - examples: #import examples/BankAccountsExample.raml - examples: !include examples/BankAccountsExample.raml
examples: !include examples/BankAccountsExample.raml
A RAML example fragment named BankAccountsExample.raml is placed in the examples folder in an API specification project. What is the correct syntax to reference the fragment? examples: #import BankAccountsExample.raml examples: !include BankAccountsExample.raml examples: #import examples/BankAccountsExample.raml examples: !include examples/BankAccountsExample.raml
examples: !include examples/BankAccountsExample.raml
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? fun newProdCode(itemID: Number, productCatgeory: String) = "PC-" ++ productCatgeory ++ (itemID as String) function newProdCode(itemID: Number, productCatgeory: String) = "PC-" ++ productCatgeory ++ (itemID as String) fun newProdCode(itemID: Number, productCatgeory: String) -> "PC-" ++ productCatgeory ++ (itemID as String) var newProdCode(itemID: Number, productCatgeory: String) -> "PC-" ++ productCatgeory ++ (itemID as String)
fun newProdCode(itemID: Number, productCatgeory: String) = "PC-" ++ productCatgeory ++ (itemID as String)
What is NOT a part of a Mule 4 event? - message - attributes - payload - inboundProperties
inboundProperties
In what file does the Mule project keep track of all its dependencies? - pom.xml - global.xml - mule-app.properties - mule-artifact.json
pom.xml