MuleSoft Developer Exam with Complete
Solutions
What DataWeave 2.0 type can be used as input to a map operation? Correct Ans-Array
What is the correct way to format the decimal 20.3844 as a string to two decimal places?
Correct Ans-20.3844 as String {format: ".0#"}
A Mule application has a main flow and a combineNames flow. In the main flow, a variable
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? Correct Ans-#[ lookup( "combineNames", vars.fullName ) ]
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 exhibit.
What is true about the Mule event's payload at the next event processor after the Flow
Reference component? Correct Ans-The payload is the original JSON object
In the Database On Table Row operation, what does the Watermark column enable the On Table
Row operation to do? Correct Ans-To avoid duplicate processing of records in a database
Assume that a database table contains a recordID column that always increases as new records
get added to the table.
In a Mule application, what is the key process to enable manual watermarking for requests to a
database using the Scheduler endpoint and the Database SELECT operation? Correct Ans-
Save the max recordID from the set of recordIDs in an ObjectStore and reference this recordID
in subsequent database requests
,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 (does not wait for a response before continuing to the next
event processor) and which operation is synchronous (blocks and waits for a response or
timeout before continuing to the next event processor)? Correct Ans-Publish consume:
Synchronous. Publish: Asynchronous
A Batch Job scope has three batch steps. An event processor in the second batch step throws an
error because the input data is incomplete.
What is the default behavior of the batch job after the error is thrown? Correct Ans-All
processing of the batch job stops
When do variables persist? Correct Ans-Variables persist through all flows unless the event
crosses a transport boundary (e.g. making a http request to another flow)
T/F: Subflows can have their own error handling strategy Correct Ans-False
Syntax to fetch a variable Correct Ans-#[vars.foo]
What persists when calling from a parent flow to another flow via http request? Correct Ans-
Not variables
API Interface definition file (API Specification) Correct Ans-defines what you call, what you
send it, and what you get back
A Web Service Correct Ans-The Actual API implementation you can make calls to or interface
of that API implementation
, An API Proxy Correct Ans-An application that controls access to the web service, restricting
access, and usage through an API gateway
What persists when calling from a parent flow to another flow via flow reference? Correct
Ans-Variables
JMS connector Correct Ans-connector capable of sending and receiving messages to and
from topics and queues
JMS Publish Correct Ans-Operation that allows the user to send a message to a JMS
Destination
JMS Publish - Consume Correct Ans-Operation that allows the user to send a message to a
JMS Destination and waits for response either to the provided replyTo destination or to a
dynamically created
Language for Choice Decisions Correct Ans-dataweave
#[payload.size != 0]
Execution order of functions Correct Ans-the last function in the chain is executed first
Calling flows from a DW Expression Correct Ans-use the lookup function
{a: lookup("myFlow",{b:"Hello"})}
How to import a function in a module Correct Ans-import dasherize from dw::core::Strings
Solutions
What DataWeave 2.0 type can be used as input to a map operation? Correct Ans-Array
What is the correct way to format the decimal 20.3844 as a string to two decimal places?
Correct Ans-20.3844 as String {format: ".0#"}
A Mule application has a main flow and a combineNames flow. In the main flow, a variable
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? Correct Ans-#[ lookup( "combineNames", vars.fullName ) ]
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 exhibit.
What is true about the Mule event's payload at the next event processor after the Flow
Reference component? Correct Ans-The payload is the original JSON object
In the Database On Table Row operation, what does the Watermark column enable the On Table
Row operation to do? Correct Ans-To avoid duplicate processing of records in a database
Assume that a database table contains a recordID column that always increases as new records
get added to the table.
In a Mule application, what is the key process to enable manual watermarking for requests to a
database using the Scheduler endpoint and the Database SELECT operation? Correct Ans-
Save the max recordID from the set of recordIDs in an ObjectStore and reference this recordID
in subsequent database requests
,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 (does not wait for a response before continuing to the next
event processor) and which operation is synchronous (blocks and waits for a response or
timeout before continuing to the next event processor)? Correct Ans-Publish consume:
Synchronous. Publish: Asynchronous
A Batch Job scope has three batch steps. An event processor in the second batch step throws an
error because the input data is incomplete.
What is the default behavior of the batch job after the error is thrown? Correct Ans-All
processing of the batch job stops
When do variables persist? Correct Ans-Variables persist through all flows unless the event
crosses a transport boundary (e.g. making a http request to another flow)
T/F: Subflows can have their own error handling strategy Correct Ans-False
Syntax to fetch a variable Correct Ans-#[vars.foo]
What persists when calling from a parent flow to another flow via http request? Correct Ans-
Not variables
API Interface definition file (API Specification) Correct Ans-defines what you call, what you
send it, and what you get back
A Web Service Correct Ans-The Actual API implementation you can make calls to or interface
of that API implementation
, An API Proxy Correct Ans-An application that controls access to the web service, restricting
access, and usage through an API gateway
What persists when calling from a parent flow to another flow via flow reference? Correct
Ans-Variables
JMS connector Correct Ans-connector capable of sending and receiving messages to and
from topics and queues
JMS Publish Correct Ans-Operation that allows the user to send a message to a JMS
Destination
JMS Publish - Consume Correct Ans-Operation that allows the user to send a message to a
JMS Destination and waits for response either to the provided replyTo destination or to a
dynamically created
Language for Choice Decisions Correct Ans-dataweave
#[payload.size != 0]
Execution order of functions Correct Ans-the last function in the chain is executed first
Calling flows from a DW Expression Correct Ans-use the lookup function
{a: lookup("myFlow",{b:"Hello"})}
How to import a function in a module Correct Ans-import dasherize from dw::core::Strings