Salesforce
PDII · Question #372
PDII Question #372: Real Exam Question with Answer & Explanation
The correct answer is C. Implement an asynchronous callout using the Continuation class.. See the full explanation below for the reasoning.
Question
A developer is working on an integration between Salesforce and an external system. The integration requires sending a large amount of data to the external system, which can cause long response times and timeouts. To optimize the performance and avoid timeouts, which technique should be used?
Options
- AUse the @future annotation to make the callout asynchronous.
- BUse a chained batch Apex to split the data into smaller batches.
- CImplement an asynchronous callout using the Continuation class.
- DIncrease the timeout limit in the callout options.
Community Discussion
No community discussion yet for this question.