ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 46 - Certified MuleSoft Developer II discussion

Report
Export

A scatter-gather router is configured with four routes:Route A, B, C and D.

Route C false.

A.
Error,errorMesage.payload.results ['2']
Answers
A.
Error,errorMesage.payload.results ['2']
B.
Payload failures['2']
Answers
B.
Payload failures['2']
C.
Error,errorMessage,payload.failures['2']
Answers
C.
Error,errorMessage,payload.failures['2']
D.
Payload ['2']
Answers
D.
Payload ['2']
Suggested answer: A

Explanation:

The result of accessing route C failure is Error,errorMessage,payload.failures['2']. This is because a scatter-gather router returns an aggregated message that contains an array of results from each route and an array of failures from each route. The failures array contains error objects with information about each failed route execution. To access route C failure, which is the third route (index 2), the developer needs to use Error.errorMessage.payload.failures['2'] expression.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-reference#scatter-gather-output

asked 23/09/2024
Christopher Horting
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first