ExamGecko
Home Home / MuleSoft / MCD - Level 1

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

Question list
Search
Search

List of questions

Search

Related questions











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

A.
To avoid duplicate processing of records in a database.
A.
To avoid duplicate processing of records in a database.
Answers
B.
To delete the most recent records retrieved from a database to enable database caching
B.
To delete the most recent records retrieved from a database to enable database caching
Answers
C.
To enable duplicate processing of records in a database
C.
To enable duplicate processing of records in a database
Answers
D.
To save the most recent records retrieved from a database to enable database caching
D.
To save the most recent records retrieved from a database to enable database caching
Answers
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

Refer to the exhibits.

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

A.
1. 1. trains: 2. 2. conductorIds map ((engId, index) -> 3. 3. train: { 4. 4. engineerId: engId 5. 5. } 6. 6. )
A.
1. 1. trains: 2. 2. conductorIds map ((engId, index) -> 3. 3. train: { 4. 4. engineerId: engId 5. 5. } 6. 6. )
Answers
B.
1. 1. { trains: 2. 2. 3. 3. conductorIds map ((engId, index) -> 4. 4. train: { 5. 5. engineerId: engId 6. 6. } 7. 7. ) 8. 8. }
B.
1. 1. { trains: 2. 2. 3. 3. conductorIds map ((engId, index) -> 4. 4. train: { 5. 5. engineerId: engId 6. 6. } 7. 7. ) 8. 8. }
Answers
C.
1. 1. trains: 2. 2. {( 3. 3. conductorIds map ((engId, index) -> 4. 4. train: { 5. 5. engineerId: engId 6. 6. } 7. 7. ) 8. 8. )}
C.
1. 1. trains: 2. 2. {( 3. 3. conductorIds map ((engId, index) -> 4. 4. train: { 5. 5. engineerId: engId 6. 6. } 7. 7. ) 8. 8. )}
Answers
D.
1. 1. {( trains: 2. 2. 3. 3. conductorIds map ((engId, index) -> 4. 4. train: { 5. 5. engineerId: engId 6. 6. } 7. 7. ) 8. 8. )}
D.
1. 1. {( trains: 2. 2. 3. 3. conductorIds map ((engId, index) -> 4. 4. train: { 5. 5. engineerId: engId 6. 6. } 7. 7. ) 8. 8. )}
Answers
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 !

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?

A.
''Child error'
A.
''Child error'
Answers
B.
'Parent error'
B.
'Parent error'
Answers
C.
'Validation Error'
C.
'Validation Error'
Answers
D.
'Parent completed'
D.
'Parent completed'
Answers
Suggested answer: C

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?

A.
In the mule-artifact json file, as the value of a key-value pair
A.
In the mule-artifact json file, as the value of a key-value pair
Answers
B.
In the Validation folder as the value of a global element in the error-handling yaml file
B.
In the Validation folder as the value of a global element in the error-handling yaml file
Answers
C.
In the pom.xml file, as the value of a global element
C.
In the pom.xml file, as the value of a global element
Answers
D.
In the my-app.xml file, as an attribute of a configuration element
D.
In the my-app.xml file, as an attribute of a configuration element
Answers
Suggested answer: D

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)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: B

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?

A.
The payload and all attributes
A.
The payload and all attributes
Answers
B.
The payload and all variables
B.
The payload and all variables
Answers
C.
The entire Mule event
C.
The entire Mule event
Answers
D.
The payload
D.
The payload
Answers
Suggested answer: B

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)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: A

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)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: C

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)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: D

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)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: C
Total 235 questions
Go to page: of 24