Certified Platform Developer II Exam QuestionsBrowse all questions from this exam

Certified Platform Developer II Exam - Question 28


Sometimes events on Salesforce need to be handled by an external system due to the scale or type of process being executed. Consider the use case of a user in

Salesforce needing to get pricing for an order they are building in Salesforce while on the phone with a customer.

The pricing logic already exists in a third-party system. Instead of recreating this logic in Salesforce, it will be leveraged by making a request of the third-party system. The response, in this case the pricing, will be returned and stored back in Salesforce.

What is the optimal solution?

Show Answer
Correct Answer: AB

To provide real-time pricing information to a Salesforce user while they are on the phone with a customer, the optimal solution is a Visualforce page that can make a real-time Apex callout to the third-party system and immediately display the pricing. This setup allows synchronous communication with the external system, ensuring the user gets the required pricing data without delay. Apex triggers cannot make synchronous calls, Process Builder and Outbound Messages are typically used for asynchronous or one-way communication, and ETL tools operate in batch mode, which is not suitable for real-time requirements.

Discussion

7 comments
Sign in to comment
nibbioOption: A
Nov 29, 2021

Since it's a real-time verification before submitting the order the correct answer is A.

ChiaSamOption: A
Jun 13, 2022

Requirement is real time update as customer is waiting on phone, triggers can't make synchronous calls, ETL is batch (not real-time).

ChiaSam
Jun 13, 2022

and Outbound message can't get the result back (usually one way)

NPW89Option: A
Nov 10, 2021

Answer should be A

Sri_VathsaOption: A
Nov 26, 2021

A using VF page + Continuation https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_continuation_overview.htm

santo_ajOption: A
May 2, 2023

A is the correct answer. Requirement is real time update as customer is waiting on phone, triggers can't make synchronous calls, ETL is batch (not real-time). Outbound message can't get the result back (usually one way)

sf2022Option: A
Dec 6, 2022

A is correct VF to make call and response in real-time

AnjindalOption: A
May 21, 2024

Correct ans is A