Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 73 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 73
Topic #: 1
[All Certified Platform Developer II Questions]

A developer is working on code that requires a call to an external web service from a batch.
How should the developer enable this functionality?

  • A. Implement a custom System.CalloutException class
  • B. Include Database.AllowCallout() in the class definition
  • C. Implement an @future method for the callout, and invoke it from the batch
  • D. Specify "callout=true" in the batch implementation
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Clsriz
Highly Voted 2 years, 10 months ago
it should be Database.AllowsCallouts
upvoted 6 times
lorenac2
1 year, 10 months ago
Reference: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm
upvoted 2 times
...
...
beardAnt
Most Recent 1 month, 1 week ago
Selected Answer: B
B public class SearchAndReplace implements Database.Batchable<sObject>, Database.AllowsCallouts{ }
upvoted 1 times
...
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.

SaveCancel
Loading ...