Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer II Topic 3 Question 116 Discussion

Actual exam question for Salesforce's Platform Developer II exam
Question #: 116
Topic #: 3
[All Platform Developer II Questions]

A Visualforce page needs to make a callout to get billing information and tax information from two different REST endpoints. The information needs to be

displayed to the user at the same time and the return value of the billing information contains the input for the tax information callout. Each endpoint might take up to two minutes to process.

How should a developer implement the callouts?

Show Suggested Answer Hide Answer
Suggested Answer: B

Using Continuation for both callouts is the optimal solution when you have long-running callouts in a Visualforce page, as it allows the page to wait for a long-running process without tying up server resources. The Continuation pattern is specifically designed for scenarios where the request-response cycle could exceed the timeout limits. Reference: Visualforce Developer Guide -- Continuations


Contribute your Thoughts:

Kanisha
9 days ago
I disagree, I believe option B is more efficient as it uses Continuations for both callouts.
upvoted 0 times
...
Heidy
10 days ago
I think option A is the best choice because it allows for asynchronous processing.
upvoted 0 times
...

Save Cancel