S90-08 practice question 23 of 35
Which of the following statements accurately describes the difference between the Atomic Service Transaction pattern and the Compensating Service Transaction pattern?
Full set: 100 questionsThe Atomic Service Transaction pattern leverages traditional ACID (Atomicity, Consistency, Isolation, Durability) transactions, which are suitable for short-lived, real-time processes where resources can be locked. This pattern relies on the underlying transaction coordinator to automatically roll back all changes if any part of the operation fails. Conversely, the Compensating Service Transaction pattern is designed for long-running business activities where holding resource locks is impractical. It does not use a traditional rollback. Instead, if a failure occurs after some steps have already committed, it executes pre-defined, custom "compensating" logic to semantically undo the completed steps. Therefore, all three statements accurately describe key differences between the patterns.
A: This statement is correct but incomplete. It only addresses the difference in suitable processing duration, which is just one of several key distinctions. B: This statement is correct but incomplete. It focuses solely on the rollback mechanism, omitting other critical differences like activity duration and logic implementation. C: This statement is correct but incomplete. It highlights the difference in exception handling logic without mentioning the underlying reasons related to transaction duration and type.
1. Erl, T. (2009). SOA Design Patterns. Prentice Hall.
Atomic Service Transaction Pattern (p. 463): "This pattern is generally applied to business processes that are short-lived... It relies on a transaction protocol and a coordinator that can enforce the all-or-nothing outcome of an atomic transaction." This supports options A and B.
Compensating Service Transaction Pattern (p. 471): "A pattern that allows a series of service operations to be processed as a single unit of work... while avoiding the need to lock resources for the entire duration of the business activity." This supports option A.
Compensating Service Transaction Pattern (p. 472): "The logic required to reverse the effects of a previously completed operation is encapsulated in a special-purpose operation referred to as a compensation... This is different from a simple rollback in that the reversal logic is explicitly defined and designed." This supports options B and C.
Keep practicing
Take the free S90-08 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other S90-08 practice questions
- Question 1Which of the following statements about the application of the Policy Centralization patt…
- Question 2If a service consumer program needs to get data from a service that is not available, it …
- Question 3Because the Service Broker pattern is part of the Enterprise Service Bus pattern, the Sch…
- Question 4Which of the following statements are false?
- Question 5Assuming you have technical service contracts for SOAP-based Web services, you can apply …
- Question 6By applying the Service Broker compound pattern, you establish an environment capable of …
