MuleSoft Certified Developer - Level 1 (Mule 4)

Description

Digital Technologies Quiz on MuleSoft Certified Developer - Level 1 (Mule 4), created by Laura Sánchez on 13/12/2021.
Laura Sánchez
Quiz by Laura Sánchez, updated more than 1 year ago
Laura Sánchez
Created by Laura Sánchez over 2 years ago
4544
0

Resource summary

Question 1

Question
How would you debug Mule applications?
Answer
  • Using breakpoints
  • Checking RAML
  • By Deploying apps on production
  • Cannot do it

Question 2

Question
What does to the attributes of a Mule event happen in a flow after an outbound HTTP Request is made?
Answer
  • 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.

Question 3

Question
The new RAML spec has been published to Anypoint Exchange with client credentials. What is the next step to gain access to the API?
Answer
  • Email the owners of the API.
  • Create a new client application.
  • No additional steps needed.
  • Request access to the API in Anypoint Exchange.

Question 4

Question
What is the difference between a subflow and a sync flow?
Answer
  • 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.

Question 5

Question
What is not an asset?
Answer
  • Exchange
  • Template
  • Example
  • Connector

Question 6

Question
How to import Core (dw::Core) module into your DataWeave scripts?
Answer
  • import dw::core
  • Not needed
  • None of these
  • import core

Question 7

Question
What is the value of the stepVar variable after the processing of records in a Batch Job?
Answer
  • -1
  • 0
  • Null
  • Last value from flow

Question 8

Question
Refer to the exhibit. What is the object type returned by the File List operation?
Answer
  • Object of String file names
  • Array of String file names
  • Object of Mule event objects
  • Array of Mule event objects

Question 9

Question
Where are values of query parameters stored in the Mule event by the HTTP Listener?
Answer
  • Payload
  • Attributes
  • Inbound Properties
  • Variables

Question 10

Question
DataWeave is tightly integrated with ____________.
Answer
  • Mule runtime
  • All APIs
  • Flow Designer
  • Exchange

Question 11

Question
In the Database On Table Row operation, what does the Watermark column enable the On Table Row operation to do?
Answer
  • 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.

Question 12

Question
What is the correct way to format the decimal 200.1234 as a string to two decimal places?
Answer
  • 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#"

Question 13

Question
How is policy defined in terms of classloader of an API?
Answer
  • 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.

Question 14

Question
According to Mulesoft, how are Modern APIs treated as?
Answer
  • Products
  • Code
  • SOAP services
  • Organizations

Question 15

Question
According to Semantic Versioning, which version would you change for incompatible API changes?
Answer
  • MINOR
  • PATCH
  • MAJOR
  • No change

Question 16

Question
What is the use of DevKit in Mule 4?
Answer
  • 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.

Question 17

Question
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?
Answer
  • 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.

Question 18

Question
What are the latest specification of RAML available?
Answer
  • 0.8
  • 1
  • 2
  • 1.8

Question 19

Question
http://dev.acme.com/api/patients?year=2021 What should this endpoint return?
Answer
  • Patient with id 2021
  • All patients
  • No patients
  • Patients from year 2021

Question 20

Question
According to MuleSoft, what is the Center for Enablement's role in the new IT operating model?
Answer
  • 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.

Question 21

Question
Which one of them is NOT a flow in Mule?
Answer
  • Sync flow
  • Subflow
  • Async flow
  • Async sub flow

Question 22

Question
How are multiple conditions used in a Choice router to route events?
Answer
  • 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.

Question 23

Question
What asset can NOT be created by using Design Center?
Answer
  • API
  • API Portals
  • Mule Apps
  • API Fragments

Question 24

Question
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?
Answer
  • Publish consume: Synchronous. Publish: Asynchronous.
  • Publish consume: Asynchronous. Publish: Synchronous.
  • Publish consume: Asynchronous. Publish: Asynchronous.
  • Publish consume: Synchronous. Publish: Synchronous.

Question 25

Question
What is the use of API Notebooks?
Answer
  • None of these
  • Test Policies
  • Test API functions
  • Test RAML

Question 26

Question
What is the DataWeave expression to log the Content-Type header using a Logger component?
Answer
  • #["Content-Type: " ++ attributes.headers.'content-type']
  • #["Content-Type: " ++ headers.'content-type']
  • #["Content-Type: " + headers.'content-type']
  • #["Content-Type: " + attributes.headers.'content-type']

Question 27

Question
What is the trait name you would use for specifying client credentials in RAML?
Answer
  • headers
  • client-id
  • client-id-required
  • we do not specify in RAML

Question 28

Question
What is the purpose of API autodiscovery?
Answer
  • 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.

Question 29

Question
What is NOT part of a Mule 4 event?
Answer
  • Attributes
  • Payload
  • inboundProperties
  • Message

Question 30

Question
What is the main purpose of flow designer in Design Center?
Answer
  • 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.

Question 31

Question
What DataWeave 2.0 type can be used as input to a mapObject operation?
Answer
  • Array
  • Object
  • String
  • Map

Question 32

Question
Why would you use SOAP instead of HTTP?
Answer
  • If the architecture mandates.
  • It is up to the integration specialist.
  • Successful/retry logic for reliable messaging functionality.
  • It is part of agile methodology.

Question 33

Question
What does the Mule runtime use to enforce policies and limit access to APIs?
Answer
  • API Manager
  • The proxy created by API Manager
  • The Mule runtime's embedded API Gateway
  • Anypoint Access Control

Question 34

Question
Which keyword do you use to create a new function in DataWeave?
Answer
  • function
  • fun
  • func
  • None of these

Question 35

Question
What are the features of CloudHub Fabric?
Answer
  • Non-persistent queue
  • Horizontal Scaling
  • VPN Mock Services
  • None of these

Question 36

Question
How many Mule applications can run on a CloudHub worker?
Answer
  • At most one
  • None of these
  • Depends
  • At least one

Question 37

Question
What is the purpose of the api:router element in APIkit?
Answer
  • 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.

Question 38

Question
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?
Answer
  • GET
  • PATCH
  • POST
  • PUT

Question 39

Question
What module and operation will throw an error if a Mule event's payload is not a number?
Answer
  • Validation module's Is number operation
  • Filter module's Is number operation
  • None of these
  • Validation module's Is not a number operation

Question 40

Question
A Set Variable component saves the current payload to a variable. What is the DataWeave parent expression to access the variable?
Answer
  • #[value]
  • #[vars]
  • #[var]
  • #[values]

Question 41

Question
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?
Answer
  • 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.

Question 42

Question
What does the minus operator do in DataWeave?
Answer
  • Decrements the value by one.
  • Removes items from a list.
  • Increments the value by one.
  • Removes characters from a string.

Question 43

Question
What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?
Answer
  • Data layer
  • System layer
  • Process layer
  • Experience layer

Question 44

Question
How does Runtime Manager Console connect with App Data and Logs of a Mule app?
Answer
  • None of these
  • Integration Apps
  • CloudHub Workers
  • Rest API

Question 45

Question
Where does a deployed flow designer application run in Anypoint Platform?
Answer
  • CloudHub worker
  • API Manager
  • Design Center
  • Exchange

Question 46

Question
What is the minimum required configuration in a flow for a Mule application to compile?
Answer
  • An event source
  • RAML file
  • An event processor
  • Logger Component

Question 47

Question
Where would you create SLA Tiers for an API?
Answer
  • Exchange
  • API Manager
  • Anypoint MQ
  • Within the API

Question 48

Question
What DataWeave 2.0 type can be used as input to a map operation?
Answer
  • Object
  • Array
  • String
  • Map

Question 49

Question
What MuleSoft product enables publishing, sharing, and searching of APIs?
Answer
  • Runtime Manager
  • Exchange
  • API Notebook
  • API Designer

Question 50

Question
What does the zip operator do in DataWeave?
Answer
  • 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.

Question 51

Question
What is the face of CloudHub and integrates with Platform Services?
Answer
  • None of these
  • Runtime Manager Console
  • Integration Apps
  • CloudHub Workers

Question 52

Question
What is a core characteristic of the Modern API?
Answer
  • 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.

Question 53

Question
Anypoint MQ FIFO queues are limited to how many in flight messages per queue?
Answer
  • 120000
  • 10
  • 100
  • 1000

Question 54

Question
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?
Answer
  • 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

Question 55

Question
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?
Answer
  • 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

Question 56

Question
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?
Answer
  • /orders/{PO5555}
  • /orders/order=PO5555
  • /orders?order=PO5555
  • /orders/PO5555

Question 57

Question
A web client sends a request to http://localhost:8081?dept=sales. What is the correct DataWeave expression to access the value of dept?
Answer
  • attributes.queryParams.dept
  • attributes.dept
  • message.queryParams.dept
  • vars.dept

Question 58

Question
By default, what happens to a file after it is read using an FTP connector Read operation?
Answer
  • 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

Question 59

Question
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?
Answer
  • A non-empty Java object
  • The original XML payload
  • The returned JSON response
  • null

Question 60

Question
What execution model is used by For Each and Batch Job scopes?
Answer
  • 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

Question 61

Question
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?
Answer
  • 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)

Question 62

Question
Refer to the exhibit. What can be added to the flow to persist data across different flow executions?
Answer
  • Properties of the Mule runtime app object
  • Key-value pairs in the ObjectStore
  • Session variables
  • Properties of the Mule runtime flow object

Question 63

Question
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?
Answer
  • "#[ { 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 ] ]"

Question 64

Question
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?
Answer
  • payload
  • payload modelName query param
  • payload planeModel var
  • payload modelName query param planeModel var

Question 65

Question
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?
Answer
  • 0
  • 1
  • 5
  • 6

Question 66

Question
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?
Answer
  • 1
  • 2
  • 3
  • 4

Question 67

Question
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?
Answer
  • A global element
  • The mule-artifact.json file
  • A flow attribute
  • The pom.xml file

Question 68

Question
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?
Answer
  • ‘The year is #[payload.year]’
  • ‘#[The year is $(payload.year)]’
  • ‘#[‘The year is ++ payload.year’]’
  • ‘#[‘The year is ‘ + payload.year]’

Question 69

Question
Refer to the exhibit. What is the correct syntax to add a customer ID as a URI parameter in an HTTP Listener path?
Answer
  • (customerID)
  • #[customerID]
  • {customerID}
  • ${customerID}

Question 70

Question
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?
Answer
  • Validation Error
  • 'END''
  • ''ERROR1''
  • ''ERROR2''

Question 71

Question
In a RAML specification, what attribute defines a query parameter to be optional for a resource?
Answer
  • required: false
  • optional: true
  • provided: false
  • mandatory: false

Question 72

Question
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?
Answer
  • Hello-HTTP-JMS2-Three
  • HTTP-JMS2-Three
  • Hello-JMS1-HTTP-JMS2-Three
  • Hello-HTTP-Three

Question 73

Question
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?
Answer
  • 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

Question 74

Question
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?
Answer
  • /accounts?account_type:retail&industry:finance
  • /accounts/retail/finance
  • /accounts/account_type=retail/industry=finance
  • /accounts?account_type=retail&industry=finance

Question 75

Question
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?
Answer
  • ${training:host}
  • #[training:host]
  • ${training.host}
  • #[training.host]

Question 76

Question
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?
Answer
  • payload
  • payload pedigree query params
  • payload producer var
  • payload pedigree query params producer var

Question 77

Question
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?
Answer
  • 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

Question 78

Question
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?
Answer
  • [ { "attributes": ..., "payload": "100" }, { "attributes": ..., "payload": "200" } ]
  • { "0": "100", "1": "200" }
  • ["100", "200"]
  • { "0": { "attributes": ..., "payload": "100" }, "1": { "attributes": ..., "payload": "200" } }

Question 79

Question
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?
Answer
  • [["A", "C", "D"], ["E"]]
  • [''E'']
  • [''D", "E"]
  • ["A", "C, "D", "E"]

Question 80

Question
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?
Answer
  • 0
  • "Processing"
  • "Start"
  • "Complete"

Question 81

Question
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?
Answer
  • 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

Question 82

Question
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?
Answer
  • 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

Question 83

Question
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?
Answer
  • Inbound Properties
  • Variables
  • Attributes
  • Payload

Question 84

Question
Refer to the exhibit. What DataWeave expression transforms the conductorIds array to the XML output?
Answer
  • { 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 } )

Question 85

Question
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?
Answer
  • Summary report of processed records
  • ["Apple", "Banana"]
  • ["Apple12", "Banana12"]
  • ["Apple1", "Banana1", 2]

Question 86

Question
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?
Answer
  • #[ ‘MuleSoft’ == payload.’company’ ]
  • #[ if ( ‘MuleSoft’ == payload.company ) ]
  • #[ company = "MuleSoft" ]
  • #[ if( company = "MuleSoft" ) ]

Question 87

Question
Refer to the exhibit. A Mule event is composed of a hierarchy of objects. Where in the hierarchy are variables stored?
Answer
  • Mule message attributes
  • Mule message
  • Mule message payload
  • Mule event

Question 88

Question
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?
Answer
  • #%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

Question 89

Question
Refer to the exhibits. A web client sends a GET request to the HTTP Listener. What response message is returned to the web client?
Answer
  • ""
  • "End"
  • "Start"
  • "String is not blank"

Question 90

Question
What asset can NOT be created using Anypoint Platform Design Center?
Answer
  • API Specifications
  • Mule Applications
  • API Fragments
  • API Portals

Question 91

Question
What message processor can set the HTTP response status code to 200?
Answer
  • Variable
  • Set Payload
  • Property
  • Record Variable
  • Attachment

Question 92

Question
Refer to the exhibit. How many private flows does APIkit generate from the RAML specification?
Answer
  • 1
  • 2
  • 3
  • 5

Question 93

Question
A Mule application properties file named training-DEV.properties has been defined. How is the properties file referenced in the Mule application?
Answer
  • 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

Question 94

Question
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?
Answer
  • Center for Enablement
  • Center of Excellence
  • Central API Review Board
  • MuleSoft Support Center

Question 95

Question
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.
Answer
  • 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

Question 96

Question
According to MuleSoft, what is the first step to create a Modern API for use in an application network?
Answer
  • 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

Question 97

Question
What is the format of documents exchanged in a SOAP request/response interaction?
Answer
  • RAML
  • JSON
  • WSDL
  • YAML

Question 98

Question
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?
Answer
  • %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")

Question 99

Question
What is the maximum number of Mule applications that can run in a Cloud Hub Worker?
Answer
  • 1
  • 2
  • 4
  • 8

Question 100

Question
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?
Answer
  • “Error - private flow”
  • “Validation Error”
  • ”Error – main flow”
  • “Success - main flow”

Question 101

Question
Refer to the exhibits. What payload and quantity are logged at the end of the main flow?
Answer
  • [[order1, order2, order3, order4], 14]
  • [[1,2,3,4], 10]
  • [[1,2,3,4], 14]
  • [order1order2order3order4, 14]

Question 102

Question
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?
Answer
  • attributes.bookISBN
  • flowVars.bookISBN
  • vars.bookISBN
  • bookISBN

Question 103

Question
In what file does the Mule project keep track of all of its dependencies?
Answer
  • mule-artifact.json
  • Pom.xml
  • mule-app.properties
  • global.xml

Question 104

Question
Refer to the exhibit. What data is expected by the POST /accounts endpoint?
Answer
  • <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 }

Question 105

Question
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?
Answer
  • "FILE:CONNECTIVITY"
  • "ORDER:NOT_CREATED"
  • "OTHER ERROR"
  • "File written"

Question 106

Question
What statement is part of MuleSoft's description network?
Answer
  • 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

Question 107

Question
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?
Answer
  • 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" } )

Question 108

Question
Refer to the exhibits. A JSON payload is set in the Set Payload transformer. What is logged by the Logger?
Answer
  • "String"
  • "Object"
  • "Array"
  • "JSON"

Question 109

Question
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?
Answer
  • The enriched payload in JSON format
  • The enriched payload in XML format
  • The enriched payload in CSV format
  • An error message

Question 110

Question
Refer to the exhibit. What DataWeave expression transforms the example XML input to the CSV output?
Answer
  • 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 })

Question 111

Question
An inbound Database connector is configured to select rows from a MySQL database. What is the format of results returned from the database query?
Answer
  • Java
  • JSON
  • XML
  • CSV

Question 112

Question
Refer to the exhibits. The Mule application contains a Choice router. What is logged when the flow completes?
Answer
  • US
  • "REGION"
  • EU
  • ["US", "EU"]

Question 113

Question
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?
Answer
  • example: !include BankAccountsExample.raml
  • example: #import BankAccountsExample.raml
  • example: !include examples/BankAccountsExample.raml
  • example: #import examples/BankAccountsExample.raml

Question 114

Question
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?
Answer
  • 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

Question 115

Question
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?
Answer
  • payload
  • payload make query param
  • payload model var
  • payload make query param model var

Question 116

Question
Refer to the exhibit. The Database Select operation returns five rows from a database. What is logged by the Logger component?
Answer
  • "Array"
  • "Object"
  • "LinkedHashMap"
  • "CaseInsensitiveHashMap"

Question 117

Question
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?
Answer
  • /departments: /deptId: patch:
  • /departments: patch: /deptId:
  • /departments: patch: queryParameters: deptId:
  • /departments: /{deptId}: patch:

Question 118

Question
What is the purpose of the router element in APIkit?
Answer
  • 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.

Question 119

Question
What out-of-the-box policy can safeguard against Denial of Service type attacks?
Answer
  • Rate limiting
  • Throttling
  • Cross-origin resource sharing
  • LDAP security manager

Question 120

Question
What file type is required to configure a Web Service Consumer to consume a SOAP web service?
Answer
  • RAML
  • WSDL
  • JSON
  • OAS

Question 121

Question
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?
Answer
  • 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)

Question 122

Question
Refer to the exhibit. What is the correct URL to submit a GET request to /patients?
Answer
  • 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

Question 123

Question
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?
Answer
  • 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

Question 124

Question
Refer to the exhibits. What is the syntax to define this datatype in RAML?
Answer
  • 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

Question 125

Question
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?
Answer
  • ${ssl.port}
  • ${ssl.listener.port}
  • ${https.listener.port}
  • ${https.port}

Question 126

Question
What port number is used to expose the domain URL of a Mule application deployed to CloudHub?
Answer
  • 8081
  • 81
  • 80
  • 8080

Question 127

Question
What is NOT a role of an API proxy application running in a Mule runtime?
Answer
  • 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

Question 128

Question
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?
Answer
  • #[message.payload.inboundProperties.'http.uri.params'.state]
  • #[attributes.uriParams.state]
  • #[attributes.'http.uri.params'.state]
  • #[message.inboundProperties.'http.uri.params'.state]
  • #[state]

Question 129

Question
What is the correct MEL expression to retrieve the value CA?
Answer
  • #[message.payload.inboundProperties.'http.query.params'.state]
  • #[message.inboundProperties.'http.uri.params'.state]
  • #[message.payload.inboundProperties].
  • #[message.inboundProperties.state]

Question 130

Question
What property of a Mule message is immutable?
Answer
  • Attachments
  • Outbound properties
  • Session variables
  • Payload
  • Inbound properties
  • Flow variables

Question 131

Question
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?
Answer
  • 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

Question 132

Question
What is true for a Mule subflow?
Answer
  • 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

Question 133

Question
What is the default processing strategy of a one-way flow?
Answer
  • Queued-asynchronous
  • Synchronous
  • Non-blocking
  • Thread-per-processor
  • Queued-thread-per-processor

Question 134

Question
What is required for two Mule applications to share data using a VM connector component?
Answer
  • 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

Question 135

Question
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?
Answer
  • In two flow variables
  • As outbound properties
  • As inbound properties
  • In the message payload
  • As attachments

Question 136

Question
What is NOT a way to pass data to a RESTful web service in a flow using an outbound HTTP Request component?
Answer
  • 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

Question 137

Question
An exception is caught by a choice exception strategy. How is the exception routed?
Answer
  • 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

Question 138

Question
How is a default exception strategy set in a Mule application?
Answer
  • 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

Question 139

Question
How are conditions used in a Choice flow control?
Answer
  • 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

Question 140

Question
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?
Answer
  • An array of JSON objects
  • An array of array objects
  • An object that contains JSON objects
  • The last JSON object

Question 141

Question
How is a data collection routed in a Scatter-Gather flow control?
Answer
  • 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

Question 142

Question
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?
Answer
  • 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

Question 143

Question
What message processor will throw an exception if a message payload is not a number?
Answer
  • Is Number validator
  • Is Not Number validator
  • Is Number filter
  • Is Not Number filter

Question 144

Question
A Mule flow has a JMS queue listener as the message source. Where can the next message processor access a JMS message's header?
Answer
  • Outbound property
  • Inbound property
  • Payload
  • Attachment
  • Flow variable

Question 145

Question
What part of a Mule flow can contain a Poll scope?
Answer
  • Async scope
  • Message source
  • For Each scope
  • Message Enricher scope

Question 146

Question
How is a Poll scope's watermark accessed from a message processor in a flow?
Answer
  • In a session variable
  • In an outbound property
  • In an inbound property
  • In a flow variable
  • In a header

Question 147

Question
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?
Answer
  • 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

Question 148

Question
What phase of a batch job using a Batch scope must contain at least one message processor?
Answer
  • Input
  • Load and Dispatch
  • Process Records
  • On Complete

Question 149

Question
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?
Answer
  • 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

Question 150

Question
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?
Answer
  • Continues to the third batch step
  • Stops processing the entire batch job
  • Retries the second batch step
  • Retries the first batch step

Question 151

Question
What is the scope of a record variable in a Batch scope?
Answer
  • 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

Question 152

Question
An API has been created in Design Center. What is the next step to make the API discoverable?
Answer
  • 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

Question 153

Question
What is NOT part of a Mule 4 event?
Answer
  • Message
  • Payload
  • OutboundProperties
  • Attributes

Question 154

Question
How does APIkit determine the number of flows to generate from a RAML specification?
Answer
  • 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

Question 155

Question
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?
Answer
  • 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

Question 156

Question
What happens to the attributes of a Mule event in a flow after an outbound HTTP Request is made?
Answer
  • 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)

Question 157

Question
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?
Answer
  • #[payload.images]
  • #[images]
  • #[flowVars.images]
  • #[vars.images]

Question 158

Question
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?
Answer
  • #["Content-Type: " ++ attributes.headers.'content-type']
  • #["Content-Type: " + headers.'content-type']
  • #["Content-Type: " + attributes.headers.'content-type']
  • #["Content-Type: " ++ headers.'content-type']

Question 159

Question
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?
Answer
  • 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.

Question 160

Question
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?
Answer
  • 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

Question 161

Question
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?
Answer
  • 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

Question 162

Question
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?
Answer
  • 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

Question 163

Question
Why must a Mule application's deployable archive package all its dependencies in order to be deployed to CloudHub?
Answer
  • 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

Question 164

Question
What can ONLY be done with VM connectors, and NOT with Flow References, in a single Mule application?
Answer
  • 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

Question 165

Question
How are query parameters dynamically passed to an outbound REST request using an HTTP Request operation?
Answer
  • 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

Question 166

Question
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?
Answer
  • Set Property
  • Build SOAP
  • Transform Message
  • JSON to XML
  • Set Attachment

Question 167

Question
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?
Answer
  • 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

Question 168

Question
What is the process to create a connector using REST Connect?
Answer
  • 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

Question 169

Question
An event contains a payload that is an nothing needs. How is the event routed in a Scatter-Gather?
Answer
  • 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

Question 170

Question
Refer to the exhibits. What happens to this flow when the Validation module's Is not null operator throws an error?
Answer
  • 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

Question 171

Question
On error continue/consume
Answer
  • The last message of the payload will continue to be used through the error catch
  • N/A

Question 172

Question
On error propagate
Answer
  • The last payload message is not used, the current message after error is used
  • N/A

Question 173

Question
On error propagate inside of a private flow uses what error message
Answer
  • The global one
  • N/A

Question 174

Question
How can an error scope be configured to catch all errors in the HTTP namespace?
Answer
  • Type: HTTP When:
  • Type: HTTP* When:
  • Type: When: #[ error.errorType.namespace == "HTTP" ]
  • Type: When: #[ contains "HTTP" ]

Question 175

Question
What is the correct way to format the decimal 20.3844 as a string to two decimal places?
Answer
  • 20.3844 as String ({format: ".0#"})
  • 20.3844 {format: ".0#" as String}
  • 20.3844 as String {format: ".0#"}
  • 20.3844 format (String: ".0#")

Question 176

Question
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?
Answer
  • 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

Question 177

Question
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?
Answer
  • #[ dw::Flow::lookup( "combineNames", vars.fullName ) ]
  • #[ dw::Runtime::lookup( "combineNames", vars.fullName ) ]
  • #[ lookup( "combineNames", vars.fullName ) ]
  • #[ combineNames( vars.fullName ) ]
  • #[ lookup( combineNames( vars.fullName ) ) ]

Question 178

Question
What is NOT part of a Mule 3 message?
Answer
  • Payload
  • Inbound properties
  • Outbound properties
  • Variables
  • Attachments

Question 179

Question
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?
Answer
  • 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

Question 180

Question
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?
Answer
  • 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

Question 181

Question
What does an API proxy application NOT do?
Answer
  • 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

Question 182

Question
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?
Answer
  • 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

Question 183

Question
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 },
Answer
  • #[payload[2].city]
  • #[payload[1].city]
  • #[payload.city[1]]
  • #[payload.city[2]]

Question 184

Question
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?
Answer
  • /apis/
  • /apis/?
  • /apis/orders|customers
  • /apis/*

Question 185

Question
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?
Answer
  • %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] ) : ""

Question 186

Question
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?
Answer
  • /customers/1234
  • /customers?operation=get&custid=1234
  • /customers/custid=1234
  • /customers?custid=true&custid=1234

Question 187

Question
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?
Answer
  • /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”

Question 188

Question
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?
Answer
  • application/xml
  • application/dw
  • application/json
  • application/java

Question 189

Question
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?
Answer
  • Process layer
  • Experience layer
  • Data layer
  • System layer

Question 190

Question
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?
Answer
  • Validation Error
  • Error - Try Scope
  • Error - main flow
  • Success - main flow

Question 191

Question
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?
Answer
  • payload
  • payload quantity var
  • payload color query param
  • payload quantity var color query param
Show full summary Hide full summary

Similar

01 Types of Computers
mc_2871
Explore EV3
Rebbecca Stanley
RoboCup Challenge: Assessment
Rebbecca Stanley
Golf Putter
Ysabelle Glori
Untitled
lb_
Digital Technologies
lb_
Geography - Unit 1A
NicoleCMB
GCSE Maths Symbols, Equations & Formulae
Andrea Leyden
Biology Unit 2 - DNA, meiosis, mitosis, cell cycle
DauntlessAlpha
Edexcel Additional Science Chemistry Topics 1+2
hchen8nrd
GCSE AQA Physics 2 Circuits
Lilac Potato