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?
A.
The callouts will be made in an Apex Trigger.
B.
The callouts will be made in an Apex Test class.
C.
The callout could take longer than 60 seconds to complete.
D.
Over 10 callouts will be made in a single transaction.
A is the correct answer.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_timeouts.htm
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
santo_aj
3 months, 3 weeks ago