Salesforce Certified Platform Integration Architect Practice Questions

Salesforce Certified Platform Integration Architect exam preparation

Salesforce Certified Platform Integration Architect practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 105 minutes.

Salesforce Certified Platform Integration Architect free question 6 / 10 · Domain 4: Design Integration Solutions

A business wants a flow to call an externally hosted RESTful credit-check service and use the reply, with no Apex. The service publishes its definition in an OpenAPI 2.0 JSON schema, and the transaction can be invoked from a flow. Which solution does the Request and Reply pattern rate Best for this?

  1. Enhanced External Services, which invokes the REST API call declaratively from the flow
  2. Workflow-driven outbound messaging that posts a SOAP message to the service when the account record is created
  3. A batch Apex job that performs a synchronous Apex SOAP or HTTP callout after the account records are collected
  4. A trigger on the account object that performs an asynchronous Apex SOAP or HTTP callout when the record is saved
Show the answer and explanation

Answer: A

Why this is correct
The first row of the Request and Reply solution table is Enhanced External Services invoking a REST API call, rated Best. It lets you invoke an externally hosted service declaratively, and it is best used when the service is RESTful with definitions in OpenAPI 2.0 JSON schema, the request and response use primitive data types, and the transaction can be invoked from a flow. The other solutions in the table are either custom Apex or rated suboptimal.

Why the other options are wrong
"A trigger on the account object that performs an asynchronous Apex SOAP or HTTP callout when the record is saved" … The pattern rates a trigger-invoked callout as suboptimal, since calls from a trigger context must execute asynchronously from the initiating event.
"A batch Apex job that performs a synchronous Apex SOAP or HTTP callout after the account records are collected" … The pattern rates the batch Apex callout as suboptimal because a batch has limits on the number of calls.
"Workflow-driven outbound messaging that posts a SOAP message to the service when the account record is created" … Outbound messaging is a fire-and-forget solution that sends SOAP messages to a listener. It does not return a reply for the flow to use.

Key points
Check the three conditions of the row: REST service, OpenAPI 2.0 schema, and a flow as the invoker. If one fails, fall back to the Apex rows.

Go to the Salesforce Certified Platform Integration Architect practice app (10 free questions; purchase unlocks all questions)

See the full practice set