Question 1
Universal Containers (UC) is a leading provider of management training globally, UC requested students course registration data generated from the Salesforce student community to be synced with the learning management system (LMS). Any update to the course registration data needs to be reflected in the LMS. Which integration mechanism should be used to meet the requirement?
- AOption A:
Change Data Capture (CDC)
- BOption B:
Platform Event
- COption C:
Streaming API
- DOption D:
Outbound Message
Show answer and explanation
Correct answer: C
Scenario:-
Students register for courses in the Salesforce Community.
-
Whenever course registration data is created or updated, the Learning Management System (LMS) should receive the changes in near real time.
Why Streaming API?
The Streaming API allows external systems (like the LMS) to subscribe to Salesforce events using a push mechanism (CometD/Bayeux protocol). Instead of repeatedly polling Salesforce, the LMS listens for notifications and updates itself whenever course registration records change.
How it works:-
A student updates course registration in Salesforce.
-
Salesforce publishes a notification.
-
The LMS, subscribed through the Streaming API, receives the event immediately.
-
The LMS synchronizes the updated registration data.
This provides:-
Near real-time synchronization
-
Reduced API calls (no constant polling)
-
Efficient event-driven integration
Why not the other options?
❌ A. Change Data Capture (CDC)
CDC automatically publishes change events for record create, update, delete, and undelete operations. While it is the modern and generally recommended approach for many real-time integrations today, some Salesforce certification questions (especially based on older exam versions) still expect Streaming API when asking about external systems subscribing to record changes.
Exam Tip: If this is a recent implementation, CDC is often preferred. If this is an older certification question, the expected answer may still be Streaming API.
❌ B. Platform Event
Platform Events are used for custom event publishing, not for automatically tracking record changes. They require explicit publishing by Apex, Flow, or another process.
❌ D. Outbound Message
Outbound Messages:-
Work only with Workflow Rules (legacy).
-
Send SOAP messages.
-
Are not suitable for general real-time synchronization of record updates with an LMS.
Quick Comparison
| Feature | Streaming API | Change Data Capture |
|---|---|---|
| Real-time notifications | ✅ Yes | ✅ Yes |
| Automatically tracks record changes | Via PushTopic/Generic Events | ✅ Yes (built-in) |
| External systems subscribe | ✅ Yes | ✅ Yes |
| Modern recommended approach | Older | ✅ Newer & preferred |
- If you see "subscribe to record changes" in an older Salesforce exam question, Streaming API is often the expected answer.
- If you see "capture all record changes automatically" or a question based on newer Salesforce architecture, Change Data Capture (CDC) is usually the correct choice.