nerdexam
Salesforce

PDII · Question #372

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…

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.

How the community answered

(27 responses)
  • A
    7% (2)
  • B
    15% (4)
  • C
    74% (20)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full PDII Practice