ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 39 - MCD - Level 2 discussion

Report
Export

Which pattern should be used to invoke multiple HTTP APIs in parallel and roll back failed requests in sequence?

A.
A database as a transactional outbox and an Until Successful router to retry any requests
Answers
A.
A database as a transactional outbox and an Until Successful router to retry any requests
B.
A Parallel for Each scope with each HTTP request wrapped in a Try scope
Answers
B.
A Parallel for Each scope with each HTTP request wrapped in a Try scope
C.
Scatter-Gather as central Saga orchestrator for all API request with compensating actions for failing routes
Answers
C.
Scatter-Gather as central Saga orchestrator for all API request with compensating actions for failing routes
D.
VM queues as a reliability pattern with error handlers to roll back any requests
Answers
D.
VM queues as a reliability pattern with error handlers to roll back any requests
Suggested answer: C

Explanation:

To invoke multiple HTTP APIs in parallel and roll back failed requests in sequence, the developer should use a Scatter-Gather router as a central Saga orchestrator for all API requests with compensating actions for failing routes. A Scatter-Gather router executes multiple routes concurrently and aggregates the results. A Saga orchestrator coordinates a series of actions across different services and handles failures by executing compensating actions. Therefore, using a Scatter-Gather router as a Saga orchestrator allows invoking multiple HTTP APIs in parallel and rolling back any failed requests in sequence.

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

asked 18/09/2024
Lucas de Paula Mello
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first