Salesforce Certified Platform Developer II — Question 182
Which scenario requires a developer to use an Apex callout instead of Outbound Messaging?
Answer options
- A. The target system uses a REST API.
- B. The callout needs to be asynchronous.
- C. The target system uses a SOAP API.
- D. The callout needs to be invoked from a Workflow Rule.
Correct answer: C
Explanation
The correct answer is C because Apex callouts are necessary for interacting with systems that utilize a SOAP API, which requires a more complex request and response format than what Outbound Messaging provides. Options A and B are incorrect as Outbound Messaging can handle REST APIs and asynchronous needs, respectively, while option D is irrelevant since Workflow Rules trigger Outbound Messaging, not Apex callouts.