MCIA - Level 1 Exam QuestionsBrowse all questions from this exam

MCIA - Level 1 Exam - Question 101


The AnyAirline organization's passenger reservations center is designing an integration solution that combines invocations of three different System APIs (bookFlight, bookHotel, and bookCar) in a business transaction. Each System API makes calls to a single database.

The entire business transaction must be rolled back when at least one of the APIs fails.

What is the most idiomatic (used for its intended purpose) way to integrate these APIs in near real-time that provides the best balance of consistency, performance, and reliability?

Show Answer
Correct Answer: C

The most idiomatic way to integrate these APIs in near real-time that provides the best balance of consistency, performance, and reliability is to implement local transactions in each API implementation and coordinate between the API implementations using a Saga pattern. Applying various compensating actions depending on where a failure occurs ensures that the entire business transaction can be rolled back if any of the API calls fail. This approach avoids the complexities and performance overhead associated with distributed transactions (such as XA transactions) while providing a robust solution for handling failures and ensuring data consistency.

Discussion

3 comments
Sign in to comment
ExamschafferOption: C
Jan 4, 2023

I think C is correct. API call can't be a part of XA transaction. That excludes A, B and D options.

awsuser1Option: C
Jan 16, 2023

C is right answer.

AlandtOption: C
Jun 18, 2024

According to Mulesoft's practice exam, the correct answer is C