A lending company's loan officers open a Loan Application record and must see the applicant's credit score from an external bureau before they can continue. The bureau's REST API typically responds in under two seconds. Which integration approach should the architect recommend?
- Publish a platform event when the record opens and let middleware write the score back later
- Schedule a nightly Bulk API 2.0 job that loads credit scores for all open applications
- Use a synchronous Apex callout from the component's controller through a Named Credential
- Configure an Outbound Message that sends the applicant ID to the bureau
Show answer
Answer: C
Why: Remote Process Invocation – Request and Reply is the right pattern when Salesforce must wait for a response from the remote system to complete a process, and the remote call is quick enough to happen in the user's transaction.