Exam MCIA - Level 1 All QuestionsBrowse all questions from this 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?

    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
ExamschafferOption: C

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

awsuser1Option: C

C is right answer.

AlandtOption: C

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