Question 1
Choose 1
Northern Trail Outfitters (NTO) has an affiliate company that would like immediate
notifications of changes to opportunities in the NTO Salesforce instance. The affiliate
company has a CometD client available.
Which solution is recommended in order to meet the requirement?
Correct answer:
B. Create a PushTopic update event on the Opportunity object to allow the subscriber to
react to the streaming API
Explanation:
B. Create a PushTopic update event on the Opportunity object:
Correct. The requirement is for the affiliate company to receive immediate or near-real-time notifications when Opportunities change in the NTO Salesforce org. Since the affiliate already has a CometD client, Salesforce Streaming API is the appropriate integration mechanism.
A PushTopic defines a Streaming API channel based on a SOQL query. When an Opportunity record matches the PushTopic criteria and is updated, Salesforce generates a notification that the external CometD client can receive.
Streaming API uses CometD and the Bayeux protocol, allowing external clients to subscribe to Salesforce event channels and receive notifications without repeatedly polling Salesforce.
For example, the PushTopic could be configured around an Opportunity query such as:
SELECT Id, Name, StageName, Amount
FROM Opportunity
The affiliate's CometD client would then subscribe to the corresponding /topic/... channel and process the notifications.
Why the other options are incorrect
A. Poll the SOAP API getUpdated method:
Incorrect. getUpdated() follows a polling approach. The affiliate client would have to repeatedly call Salesforce to determine whether records have changed.
That does not satisfy the requirement as effectively as a push-based Streaming API solution. Salesforce describes Streaming API as a way to reduce unnecessary API requests associated with constant polling and to provide near-real-time notifications.
C. Create a connected app in the affiliate org and select "Accept CometD API Requests":
Incorrect. The CometD client needs to connect to the NTO Salesforce org because that is where the Opportunity records and event source reside. Creating a connected app in the affiliate org does not create a mechanism for NTO Opportunity changes to be published to the affiliate.
The key requirement is to configure the event source in NTO and have the external CometD client subscribe to it.
Exam takeaway
When you see:
External system or client
Immediate or near-real-time Salesforce record-change notifications
CometD client
Salesforce record such as Opportunity
Think Streaming API + PushTopic for this legacy exam scenario. Salesforce now classifies PushTopic as a legacy technology and recommends Change Data Capture for newer implementations, but B is the expected answer among these choices.
B. Create a PushTopic update event on the Opportunity object:
Correct. The requirement is for the affiliate company to receive immediate or near-real-time notifications when Opportunities change in the NTO Salesforce org. Since the affiliate already has a CometD client, Salesforce Streaming API is the appropriate integration mechanism.
A PushTopic defines a Streaming API channel based on a SOQL query. When an Opportunity record matches the PushTopic criteria and is updated, Salesforce generates a notification that the external CometD client can receive.
Streaming API uses CometD and the Bayeux protocol, allowing external clients to subscribe to Salesforce event channels and receive notifications without repeatedly polling Salesforce.
For example, the PushTopic could be configured around an Opportunity query such as:
SELECT Id, Name, StageName, Amount
FROM Opportunity
The affiliate's CometD client would then subscribe to the corresponding /topic/... channel and process the notifications.
Why the other options are incorrect
A. Poll the SOAP API getUpdated method:
Incorrect. getUpdated() follows a polling approach. The affiliate client would have to repeatedly call Salesforce to determine whether records have changed.
That does not satisfy the requirement as effectively as a push-based Streaming API solution. Salesforce describes Streaming API as a way to reduce unnecessary API requests associated with constant polling and to provide near-real-time notifications.
C. Create a connected app in the affiliate org and select "Accept CometD API Requests":
Incorrect. The CometD client needs to connect to the NTO Salesforce org because that is where the Opportunity records and event source reside. Creating a connected app in the affiliate org does not create a mechanism for NTO Opportunity changes to be published to the affiliate.
The key requirement is to configure the event source in NTO and have the external CometD client subscribe to it.
Exam takeaway
When you see:
External system or client
Immediate or near-real-time Salesforce record-change notifications
CometD client
Salesforce record such as Opportunity
Think Streaming API + PushTopic for this legacy exam scenario. Salesforce now classifies PushTopic as a legacy technology and recommends Change Data Capture for newer implementations, but B is the expected answer among these choices.
