exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 11 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 11
Topic #: 1
[All Certified Platform Developer II Questions]

A company processes Orders within their Salesforce instance. When an Order's status changes to 'Paid' it must notify the company's order management system
(OMS). The OMS exposes SOAP web service endpoints to listen for when to retrieve the data from Salesforce.
What is the optimal method to implement this?

  • A. Generate the Enterprise WSDL and use it to make a callout to the OMS.
  • B. Generate the Partner WSDL and use it to make a callout to the OMS.
  • C. Create an Outbound Message that contains the session ID and send it to the OMS.
  • D. Create an Apex trigger and make a callout to the OMS from the trigger.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Hello_Sfdc
Highly Voted 4 years, 2 months ago
Is it C by using WF outbound?
upvoted 7 times
...
BrainMelt12
Most Recent 1 month, 3 weeks ago
Selected Answer: C
I choose C due to Salesforce's "clicks over code" marketing. The requirement is simply notifying an external system. Outbound Messages are built exactly for this use case, requiring no code. Apex should only be used if custom processing is needed, which is not stated in the question. Outbound Messages handle this perfectly, while an Apex trigger would be unnecessary complexity and problematic due to the above limits. Even if you use a future method for the trigger, Salesforce limits the number of concurrent callouts, making this less reliable for high-volume processing. Outbound Messages do not count against these limits and have built-in retry mechanisms, making them more resilient.
upvoted 1 times
...
AntoineX
5 months, 2 weeks ago
D. Real-time Notification: An Apex trigger on the Order object can fire automatically when an Order's status changes to 'Paid'. This ensures that the OMS is notified in real-time, without any delays.
upvoted 1 times
...
FriedConsole2000
1 year, 2 months ago
Selected Answer: C
Must be outbound message as Salesforce wants people to use those.
upvoted 1 times
...
Prabu_Kumarasaamy
1 year, 10 months ago
Selected Answer: D
Option C (using an Outbound Message) is a viable alternative, but it has some limitations. Outbound Messages are SOAP-based and can be configured to automatically trigger a callout when a record meets specific criteria. However, they are less flexible and require additional configuration steps compared to the direct callout approach with Apex triggers. Therefore, option D is the recommended approach for implementing the integration with the OMS when an Order's status changes to 'Paid'.
upvoted 1 times
...
Ike300
2 years, 1 month ago
Selected Answer: B
C is correct
upvoted 1 times
...
Rob177
3 years, 3 months ago
Selected Answer: C
C is the answer
upvoted 4 times
...
drwebber
3 years, 5 months ago
The easiest option is C, "Send Session ID" is an option is WF
upvoted 1 times
...
amerbearat
3 years, 8 months ago
Not D you cannot make a callout directly from a trigger. Answer C
upvoted 4 times
ncore
3 years, 5 months ago
You can, using @future (callout=true) annotation
upvoted 2 times
...
...
Hello_Sfdc
4 years, 2 months ago
Why Salesforce need to generate WSDL?WSDL must be imported to call external system. Hence answer is D
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago