Salesforce Certified Integration Architect — Question 28
Northern Trail Outfitters needs to send order and line items directly to an existing finance application webservice when an order is fulfilled. It is critical that each order reach the finance application exactly once for accurate invoicing.
Which solution should an architect propose?
Answer options
- A. Outbound Messaging, which will automatically handle error retries to the service.
- B. Button press invokes synchronous callout, with user handling retries in case of error.
- C. Trigger invokes Queueable Apex method, with custom error handling process.
- D. Trigger makes @future Apex method, with custom error handling process.
Correct answer: B
Explanation
The correct answer is B because a synchronous callout allows immediate feedback and ensures that the user can manage any necessary retries in case of an error. Options A, C, and D do not guarantee that each order is processed exactly once as they involve asynchronous operations which could lead to duplication or missed calls if not handled properly.