ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 6 - MCD - Level 2 discussion

Report
Export

A Mule application includes a subflow containing a Scatter.Gather scope. Within each log of the Scatter.Gatter. an HTTP connector calls a PUT endpoint to modify records in different upstream system. The subflow is called inside an Unit successful scope to retry if a transitory exception is raised.

A technical spike is being performed to increase reliability of the Mule application.

Which steps should be performed within the Mule flow above the ensure idempontent behavior?

A.
Change the PUT requests inside the Scatter-Gather to POST requests
Answers
A.
Change the PUT requests inside the Scatter-Gather to POST requests
B.
Ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails
Answers
B.
Ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails
C.
Remove the Put requests from the Scatter-Getter and perform them sequentially
Answers
C.
Remove the Put requests from the Scatter-Getter and perform them sequentially
D.
None, the flow already exhibits idempotent behavior
Answers
D.
None, the flow already exhibits idempotent behavior
Suggested answer: B

Explanation:

To ensure idempotent behavior within a Mule flow that contains a subflow with a Scatter-Gather scope, the developer should ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails. Idempotency means that multiple identical requests have the same effect as a single request. Therefore, if one of the HTTP requests inside the Scatter-Gather fails, the error-handling flow should undo any changes made by other successful requests to ensure consistency and avoid partial updates.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept https://docs.mulesoft.com/mule-runtime/4.3/error-handling

asked 18/09/2024
SERGIO FREITAS
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first