nerdexam
Salesforce

PDII · Question #19

A developer is writing code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an @future method?

The correct answer is A. The callouts will be made in an Apex Trigger. See the full explanation below for the reasoning.

Question

A developer is writing code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an @future method?

Options

  • AThe callouts will be made in an Apex Trigger.
  • BThe callouts will be made in an Apex Test class.
  • CThe callout could take longer than 60 seconds to complete.
  • DOver 10 callouts will be made in a single transaction.

How the community answered

(20 responses)
  • A
    75% (15)
  • B
    15% (3)
  • C
    5% (1)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full PDII Practice