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?

QuestionsCategory: Certified Platform Developer IIA developer is working on code that requires a call to an external web service from a batch. How should the developer enable this functionality?
Admin Staff asked 4 months ago
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








 

Suggested Answer: B

Community Answer: B



This question is in Certified Platform Developer II Exam
For getting Salesforce Certified Platform Developer II











Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by Salesforce. 
Trademarks, certification & product names are used for reference only and belong to Salesforce.
The website does not contain actual questions and answers from Salesforce's Certification Exams.

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.