ARC-101 practice question 19 of 25

When user clicks Check Preferences as part of a Lightning flow in Salesforce, preferences from an externally hosted RESTful service are to be checked in real-time. The RESTful service has OpenAPI 2.0 JSON definitions, responding in data types of Boolean and string values. Which integration pattern and mechanism should be selected to meet the conditions?

Full set: 106 questions
Answer options
A: Fire and Forget: Process-driven platform events publishes events on Salesforce Event Bus.
B: Remote Call-In: Salesforce REST API with REST Composite Resources.
C: Request-Reply: Enhanced External Services invokes a REST API. Correct answer
D: Data Virtualization: Salesforce Connect map data external REST data in external objects.
Correct Answer:
C. Request-Reply: Enhanced External Services invokes a REST API.
Explanation

The scenario requires a synchronous, real-time callout from a Salesforce Flow to an external REST service, initiated by a user action. The Request-Reply pattern is the appropriate synchronous model where the flow sends a request and waits for an immediate response. Enhanced External Services is the specific Salesforce mechanism designed for this purpose. It declaratively consumes an external service's OpenAPI 2.0 definition and creates invocable actions that can be directly used within a Lightning Flow, perfectly matching the requirements.

References

1. Salesforce Architects, Integration Patterns and Practices Guide, Page 8, "Request and Reply": This document defines the Request-Reply pattern: "In this pattern, a remote system is invoked by a Salesforce app that waits for a response from that system... This is a synchronous call." This aligns with the real-time requirement.

2. Salesforce Help, External Services, "What Is External Services?": "External Services takes your API specification... and creates invocable actions in Salesforce... Call the invocable actions from a flow... The schema format must be OpenAPI 2.0...". This directly supports using External Services with an OpenAPI 2.0 definition from a Flow.

3. Salesforce Architects, Integration Patterns and Practices Guide, Page 10, "Remote Call-In": This pattern is defined as when "a remote system connects to Salesforce to create, retrieve, update, or delete data or to invoke custom business logic." This confirms option B describes the wrong direction.

4. Salesforce Architects, Integration Patterns and Practices Guide, Page 12, "Data Virtualization": "Salesforce Connect provides a fast, easy way to provide this type of integration and is the preferred method of data virtualization for Salesforce." This shows the primary purpose is representing data as objects, which is less direct than invoking an action.

5. Platform Events Developer Guide, "Platform Event Basics": "Platform events are part of Salesforce’s enterprise messaging platform. The platform provides an event-driven messaging architecture to enable apps to communicate inside and outside of Salesforce." This confirms its use for event-driven, asynchronous communication (Fire and Forget), not synchronous request-reply.

Scroll to Top