Question 31
Choose 1
Northern Trail Outfitters needs a low-code, near real-time REST integration to an ERP
when an Order is created. They have limited development resources. Which option should
fulfill the use case requirements?
Correct answer:
B. Implement Change Data Capture on the Order object and leverage the replay ID in the
middleware solution
Explanation
B. Change Data Capture (CDC) on the Order object — Correct
The requirements point directly toward Change Data Capture:
Low-code: CDC is configuration-based and does not require custom Apex to detect Order changes.
Near real-time: CDC publishes change events asynchronously when records change.
Order created: CDC can publish a change event when an Order is created.
REST integration: The middleware can consume Salesforce change events and then use REST to communicate with the ERP.
Limited development resources: CDC avoids custom trigger/Apex development.
The Replay ID is associated with the event and allows the subscriber/middleware to keep track of its position in the event stream and replay events when supported by the event-retention window. This is particularly useful for reliable event consumption.
A typical architecture is:
Order created in Salesforce → CDC event → Event channel → Middleware → REST call → ERP
Why the other options are incorrect
A. Lightning Flow to create a Platform Event — Incorrect
A Flow can publish a Platform Event, so this can be a valid event-driven architecture in some scenarios. However, it requires configuring a custom Platform Event and Flow specifically to detect the Order creation and publish the event.
CDC is purpose-built for record-change notifications, making it the simpler low-code solution when the requirement is to notify an external system about Salesforce record changes.
Also, the statement about "selecting the record type as the platform event name" does not describe how Platform Events are configured.
C. Workflow Rule with Outbound Messaging — Incorrect
Outbound Messaging is asynchronous and can provide near-real-time notifications, but it sends SOAP messages, not REST.
The requirement specifically calls for a REST integration to the ERP. Therefore, Outbound Messaging does not satisfy the required protocol.
Additionally, Salesforce has moved away from Workflow Rules toward Flow for new automation, making this a less appropriate choice for a modern architecture.
Exam takeaway
Requirement → Best fit
Low-code → CDC
Salesforce record creation/change → CDC
Near real-time → CDC
Event-driven → CDC
Middleware consumption → CDC
REST call to ERP → Middleware consumes event and calls ERP REST API
SOAP endpoint → Outbound Messaging
The important distinction is that CDC handles the Salesforce-side change notification, while the middleware handles the REST communication with the ERP.
B. Change Data Capture (CDC) on the Order object — Correct
The requirements point directly toward Change Data Capture:
Low-code: CDC is configuration-based and does not require custom Apex to detect Order changes.
Near real-time: CDC publishes change events asynchronously when records change.
Order created: CDC can publish a change event when an Order is created.
REST integration: The middleware can consume Salesforce change events and then use REST to communicate with the ERP.
Limited development resources: CDC avoids custom trigger/Apex development.
The Replay ID is associated with the event and allows the subscriber/middleware to keep track of its position in the event stream and replay events when supported by the event-retention window. This is particularly useful for reliable event consumption.
A typical architecture is:
Order created in Salesforce → CDC event → Event channel → Middleware → REST call → ERP
Why the other options are incorrect
A. Lightning Flow to create a Platform Event — Incorrect
A Flow can publish a Platform Event, so this can be a valid event-driven architecture in some scenarios. However, it requires configuring a custom Platform Event and Flow specifically to detect the Order creation and publish the event.
CDC is purpose-built for record-change notifications, making it the simpler low-code solution when the requirement is to notify an external system about Salesforce record changes.
Also, the statement about "selecting the record type as the platform event name" does not describe how Platform Events are configured.
C. Workflow Rule with Outbound Messaging — Incorrect
Outbound Messaging is asynchronous and can provide near-real-time notifications, but it sends SOAP messages, not REST.
The requirement specifically calls for a REST integration to the ERP. Therefore, Outbound Messaging does not satisfy the required protocol.
Additionally, Salesforce has moved away from Workflow Rules toward Flow for new automation, making this a less appropriate choice for a modern architecture.
Exam takeaway
Requirement → Best fit
Low-code → CDC
Salesforce record creation/change → CDC
Near real-time → CDC
Event-driven → CDC
Middleware consumption → CDC
REST call to ERP → Middleware consumes event and calls ERP REST API
SOAP endpoint → Outbound Messaging
The important distinction is that CDC handles the Salesforce-side change notification, while the middleware handles the REST communication with the ERP.
