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 Certified Platform Developer II (Plat-Dev-301) Exam - Topic 2 Question 127 Discussion

Actual exam question for Salesforce's Salesforce Certified Platform Developer II (Plat-Dev-301) exam
Question #: 127
Topic #: 2
[All Salesforce Certified Platform Developer II (Plat-Dev-301) Questions]

A developer is working on an integration between Salestorce and an external system. The integration requires sending a large amount of data to the external systern, which can cause long response times and timeouts.

To optimize the performance and avoid timeouts, which technique should be used?

Show Suggested Answer Hide Answer
Suggested Answer: B

Implementing an asynchronous callout using the Continuation class is the optimal solution to handle long response times and avoid timeouts in Salesforce. It allows the Apex code to make a long-running request to an external service and free up the thread to serve other requests.


Contribute your Thoughts:

0/2000 characters
Louvenia
15 days ago
I think using the Continuation class is better for async calls.
upvoted 0 times
...
Jina
20 days ago
Chained batch Apex is a solid choice for large data.
upvoted 0 times
...
Shawnta
1 month ago
Chained batch Apex sounds familiar, but I can't recall if it's specifically for callouts or just for processing large data sets.
upvoted 0 times
...
Johnson
1 month ago
Increasing the timeout limit seems like a quick fix, but I don't think it really solves the underlying issue of performance.
upvoted 0 times
...
Una
1 month ago
I think we practiced a similar question where we had to optimize callouts. I feel like the Continuation class might be the right choice here.
upvoted 0 times
...
Denise
2 months ago
I remember we discussed using asynchronous methods to handle long-running processes, but I'm not sure if @future or Continuation is better for this scenario.
upvoted 0 times
...

Save Cancel