ExamGecko
Home / MuleSoft / MCD - Level 1 / List of questions
Ask Question

MuleSoft MCD - Level 1 Practice Test - Questions Answers, Page 18

List of questions

Question 171

Report
Export
Collapse

In the Database On Table Row operation, what does the Watermark column enable the On Table Row operation to do?

To avoid 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
To delete the most recent records retrieved from a database to enable database caching
To enable duplicate processing of records in a database
To enable duplicate processing of records in a database
To save the most recent records retrieved from a database to enable database caching
To save the most recent records retrieved from a database to enable database caching
Suggested answer: A

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

asked 18/09/2024
Mark Green
45 questions

Question 172

Report
Export
Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 172 52727 09182024213609000000

What DataWeave expression transforms the conductorIds array to the XML output?

1. 1. trains: 2. 2. conductorIds map ((engId, index) -> 3. 3. train: { 4. 4. engineerId: engId 5. 5. } 6. 6. )
1. 1. trains: 2. 2. conductorIds map ((engId, index) -> 3. 3. train: { 4. 4. engineerId: engId 5. 5. } 6. 6. )
1. 1. { trains: 2. 2. 3. 3. conductorIds map ((engId, index) -> 4. 4. train: { 5. 5. engineerId: engId 6. 6. } 7. 7. ) 8. 8. }
1. 1. { trains: 2. 2. 3. 3. conductorIds map ((engId, index) -> 4. 4. train: { 5. 5. engineerId: engId 6. 6. } 7. 7. ) 8. 8. }
1. 1. trains: 2. 2. {( 3. 3. conductorIds map ((engId, index) -> 4. 4. train: { 5. 5. engineerId: engId 6. 6. } 7. 7. ) 8. 8. )}
1. 1. trains: 2. 2. {( 3. 3. conductorIds map ((engId, index) -> 4. 4. train: { 5. 5. engineerId: engId 6. 6. } 7. 7. ) 8. 8. )}
1. 1. {( trains: 2. 2. 3. 3. conductorIds map ((engId, index) -> 4. 4. train: { 5. 5. engineerId: engId 6. 6. } 7. 7. ) 8. 8. )}
1. 1. {( trains: 2. 2. 3. 3. conductorIds map ((engId, index) -> 4. 4. train: { 5. 5. engineerId: engId 6. 6. } 7. 7. ) 8. 8. )}
Suggested answer: C

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 !

asked 18/09/2024
Ronald DeCastro
32 questions

Question 173

Report
Export
Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 173 52728 09182024213609000000

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?

MuleSoft MCD - Level 1 image Question 173 52728 09182024213609000000

''Child error'
''Child error'
'Parent error'
'Parent error'
'Validation Error'
'Validation Error'
'Parent completed'
'Parent completed'
Suggested answer: C
asked 18/09/2024
Mogens Jensen
33 questions

Question 174

Report
Export
Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 174 52729 09182024213609000000

MuleSoft MCD - Level 1 image Question 174 52729 09182024213609000000

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?

In the mule-artifact json file, as the value of a key-value pair
In the mule-artifact json file, as the value of a key-value pair
In the Validation folder as the value of a global element in the error-handling yaml file
In the Validation folder as the value of a global element in the error-handling yaml file
In the pom.xml file, as the value of a global element
In the pom.xml file, as the value of a global element
In the my-app.xml file, as an attribute of a configuration element
In the my-app.xml file, as an attribute of a configuration element
Suggested answer: D
asked 18/09/2024
LEONARDO CESAR MARQUES
44 questions

Question 175

Report
Export
Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 175 52730 09182024213609000000

MuleSoft MCD - Level 1 image Question 175 52730 09182024213609000000

MuleSoft MCD - Level 1 image Question 175 52730 09182024213609000000

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)

MuleSoft MCD - Level 1 image Question 175 52730 09182024213609000000

B)

MuleSoft MCD - Level 1 image Question 175 52730 09182024213609000000

C)

MuleSoft MCD - Level 1 image Question 175 52730 09182024213609000000

D)

MuleSoft MCD - Level 1 image Question 175 52730 09182024213609000000

Option A
Option A
Option B
Option B
Option C
Option C
Option D
Option D
Suggested answer: B
asked 18/09/2024
Slavomir Ugrevic
36 questions

Question 176

Report
Export
Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 176 52731 09182024213609000000

MuleSoft MCD - Level 1 image Question 176 52731 09182024213609000000

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 177

Report
Export
Collapse

Refer to the exhibit.

How should the WHERE clause be changed to set the city and state values from the configured input parameters?

MuleSoft MCD - Level 1 image Question 177 52732 09182024213609000000

A)

MuleSoft MCD - Level 1 image Question 177 52732 09182024213609000000

B)

MuleSoft MCD - Level 1 image Question 177 52732 09182024213609000000

C)

MuleSoft MCD - Level 1 image Question 177 52732 09182024213609000000

D)

MuleSoft MCD - Level 1 image Question 177 52732 09182024213609000000

Become a Premium Member for full access
  Unlock Premium Member

Question 178

Report
Export
Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 178 52733 09182024213609000000

MuleSoft MCD - Level 1 image Question 178 52733 09182024213609000000

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)

MuleSoft MCD - Level 1 image Question 178 52733 09182024213609000000

B)

MuleSoft MCD - Level 1 image Question 178 52733 09182024213609000000

C)

MuleSoft MCD - Level 1 image Question 178 52733 09182024213609000000

D)

MuleSoft MCD - Level 1 image Question 178 52733 09182024213609000000

Become a Premium Member for full access
  Unlock Premium Member

Question 179

Report
Export
Collapse

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)

MuleSoft MCD - Level 1 image Question 179 52734 09182024213609000000

B)

MuleSoft MCD - Level 1 image Question 179 52734 09182024213609000000

C)

MuleSoft MCD - Level 1 image Question 179 52734 09182024213609000000

MuleSoft MCD - Level 1 image Question 179 52734 09182024213609000000

Become a Premium Member for full access
  Unlock Premium Member

Question 180

Report
Export
Collapse

Refer to the exhibits.

MuleSoft MCD - Level 1 image Question 180 52735 09182024213609000000

MuleSoft MCD - Level 1 image Question 180 52735 09182024213609000000

MuleSoft MCD - Level 1 image Question 180 52735 09182024213609000000

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)

MuleSoft MCD - Level 1 image Question 180 52735 09182024213609000000

B)

MuleSoft MCD - Level 1 image Question 180 52735 09182024213609000000

MuleSoft MCD - Level 1 image Question 180 52735 09182024213609000000

D)

MuleSoft MCD - Level 1 image Question 180 52735 09182024213609000000

Become a Premium Member for full access
  Unlock Premium Member
Total 235 questions
Go to page: of 24
Search

Related questions