When to Use? Flashcards

To understand when to use which integration method (34 cards)

1
Q

Limitations:
- Subject to stricter governor limits, including a 10-second default timeout.
- If the external system is slow, it blocks the user and can result in a poor user experience.
- Cannot perform DML (Data Manipulation Language) operations in the same transaction context to avoid mixed DML errors in certain scenarios.

A

Synchronous APEX Callout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Automatic publication when standard/custom object records are created, updated, deleted, or undeleted.

A

Change Data Capture (CDC)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Long-running operations where the response isn’t immediately needed by the user (e.g., sending data to an external data warehouse, provisioning a user in another system, or processing orders)

A

Asynchronous APEX Callout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Scenario: A sales agent needs to check a customer’s credit score in real time within an Opportunity record before finalizing a high-value deal. The credit check is provided by a third-party API.

A

External Service via OpenAPI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Enables subscribers to retrieve missed events within the retention period (72 hours for both high-volume Platform Events and CDC events) if a client disconnects or crashes.

A

ReplayId

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Ideal for use cases requiring logic or data processing, and chaining async processes.

A

Platform Events

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Manual publication via Apex, Flow, Process Builder, or APIs.

A

Platform Events

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Real-time data synchronization/replication to external data stores.

A

Change Data Capture (CDC)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Contains only the custom fields you define for the event object.

A

Platform Events

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Notifying a third-party system when a significant change occurs in Salesforce (e.g., a new Account is created, an Opportunity status changes to “Closed Won”) to initiate subsequent processes like contract generation or provisioning

A

Change Data Capture (CDC)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

You can specify a ______ to resume the event stream from a specific point, ensuring reliable message delivery and processing order.

A

ReplayId

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Broadcasting custom notifications for specific business events/actions.

A

Platform Events

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Operations that require higher governor limits (e.g., up to 120 seconds timeout, 12MB heap size)

A

Asynchronous APEX Callout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Enabling immediate analysis of operational data, such as inventory levels or sales trends, by providing external analytics platforms with the latest data as soon as it changes

A

Change Data Capture (CDC)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

An immediate response is required for the user to proceed (e.g., validating a discount code, fetching a live price, or rendering dynamic data on the screen)

A

Synchronous APEX Callout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Requires defining a custom event object and implementing logic to publish events.

A

Platform Events

17
Q

Maintaining a historical, granular record of all patient or customer data changes in an external system to support regulatory requirements and provide an accurate audit trail.

A

Change Data Capture (CDC)

18
Q

Callouts triggered from triggers, batch Apex, or any background process, which are required to be asynchronous if they involve a DML operation

A

Asynchronous APEX Callout

19
Q

Supports both inbound and outbound integrations with flexible schemas.

A

Platform Events

20
Q

Does not support:
- Two-Way Sync
- REST/JSON endpoints
- High volume/Scalability
- Multi-Consumer Architecture

A

Outbound Messaging

21
Q

Low-code solution; just select the objects to track in Setup.

A

Change Data Capture (CDC)

22
Q

Scenario: When a new User is created in Salesforce, they must automatically be provisioned in an external payroll system.

A

External Service via OpenAPI

23
Q

Ensuring consistency of shared data (e.g., account information, product catalogs, order status) across multiple enterprise systems, such as an ERP (Enterprise Resource Planning) or a secondary CRM

A

Change Data Capture (CDC)

24
Q

To integrate external REST APIs into low-code tools like Flow Builder or Apex without writing boilerplate code for connectivity, authentication, and schema parsing. It is particularly valuable for enabling “citizen developers” (admins) to build complex, multi-system business processes using drag-and-drop tools

A

External Service via OpenAPI

25
Enters a Salesforce queue and automatically retries delivery for up to 24 hours if the external endpoint is unavailable or fails to acknowledge receipt. This makes it suitable for low-volume, high-reliability scenarios.
Outbound Messaging
26
Does not support adding custom logic or business rules within the event generation.
Change Data Capture (CDC)
27
"fire-and-forget" notifications where Salesforce pushes limited record data and does not need to wait for a complex response or perform two-way data synchronization
Outbound Messaging
28
Best for simple, one-way data broadcasts from Salesforce
Change Data Capture (CDC)
29
Scenario: Displaying the current weather for an Account's shipping address on the Account Lightning record page.
External Service via OpenAPI
30
The primary use case is integrating with older enterprise systems that are already configured to consume SOAP web services and cannot easily handle modern REST/JSON APIs or event-driven architectures
Outbound Messaging
31
Simple, real-time, one-way push notifications to an external system that specifically requires or supports SOAP (XML-based) messages
Outbound Messaging
32
Automatically includes all changed fields and header information (old and new values).
Change Data Capture (CDC)
33
- A valid OpenAPI 2.0 or 3.0 specification in JSON or YAML format. - Access to Salesforce Setup. - The API service endpoint URL and authentication details. - Relative path to where the schema is hosted - Named Credential
External Service via OpenAPI
34
Keeping an external data warehouse (like Snowflake, Amazon Redshift, etc.) continuously in sync with Salesforce data to enable up-to-the-minute analytics and reporting
Change Data Capture (CDC)