Salesforce
PDII · Question #365
A developer is writing code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an asynchronous method?
The correct answer is C. 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 asynchronous method?
Options
- AOver 10 callouts will be made in a single transaction.
- BThe callouts will be made using the REST API.
- CThe callouts will be made in an Apex trigger.
- DThe callout could take longer than 60 seconds to complete.
How the community answered
(36 responses)- A8% (3)
- B3% (1)
- C83% (30)
- D6% (2)
Community Discussion
No community discussion yet for this question.