MuleSoft MCD - Level 1 Practice Test - Questions Answers, Page 18
List of questions
Question 171

In the Database On Table Row operation, what does the Watermark column enable the On Table Row operation to do?
Explanation:
The correct answer is To avoid duplicate processing of records in a database.
If a watermark column is provided, the values taken from that column are used to filter the contents of the next poll, so that only rows with a greater watermark value are returned. If an ID column is provided, this component automatically verifies that the same row is not picked twice by concurrent polls.
Mule doc reference : https://docs.mulesoft.com/db-connector/1.8/database-documentation#listener
Question 172

Refer to the exhibits.
What DataWeave expression transforms the conductorIds array to the XML output?
Explanation:
Points to remember:
* XML must have a root element.
* XML only allows one root element
* To avoid multiple root issues, you must create a root element for the XML output, whenever we transform output
* When mapping array elements (JSON or JAVA) to XML, wrap the map operations in {(..)}
-{ } are defining the object
( ) are transforming each element in the array as a key/value pair
* The transformation to XML would fail if the above mentioned considerations were not taken into account.
* Thus the transformation script declares a root element as trains and wraps the data in ''{( )}''.
Whenever you see such type of question, always look out for root element followed by {( )} wrapping map.
I call this a 'Wrap The Map' scenario. Hope it would help you remember !
Question 173

Refer to the exhibits.
The Mule application does NOT define any global error handlers.
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?
Question 174

Refer to the exhibits.
The my-app xml file contains an Error Handier scope named 'global-error-handler'
The Error Handler scope needs to be set to be the default error handler for every flow in the Mule application
Where and how should the value 'global-error-handler' be added in the Mule project so that the Error Handler scope is the default error handler of the Mule application?
Question 175

Refer to the exhibits.
A Mule application is being developed to process web client POST requests with payloads containing order information including the user name and purchased items The Shipping connector returns a shipping address for the input payloads user name The Shipping connector's Shipping Address operation is configured with a target named shippingAddress.
The Set Payload transformer needs to set an item key equal to the items value from the original received payload and a shippinglnfo key equal to the the ShippingAddress operation's response
What is a straightforward way to property configure the Set Payload transformer with the required data?
A)
B)
C)
D)
Question 176

Refer to the exhibits.
The main flow contains a Flow Reference component configured to call the child flow What part(s) of a Mule event passed to the Flow Reference component are available in the child flow?
Question 177

Refer to the exhibit.
How should the WHERE clause be changed to set the city and state values from the configured input parameters?
A)
B)
C)
D)
Question 178

Refer to the exhibits.
The Batch Job scope processes the array of strings
After the Batch Job scope completes processing the input payload what information is logged by the Logger component?
A)
B)
C)
D)
Question 179

A Mule project contains a DataWeave module file WebStore dvA that defines a function named loginUser The module file is located in the projects src/main/resources/libs/dw folder
What is correct DataWeave code to import all of the WebStore.dwl file's functions and then call the loginUser function for the login '[email protected]'?
A)
B)
C)
Question 180

Refer to the exhibits.
The Batch Job scope contains two Batch Step scopes with different accept expressions.
The input payload is passed to the Batch Job scope.
After the entire payload is processed by the Batch Job scope, what messages have been logged by the Logger components?
A)
B)
D)
Question