nerdexam
Salesforce

PDII · Question #395

Batch Apex is being considered by a developer to process more than 25 million account records in an organization. Which of the following can be used to define the scope and collect these records…

The correct answer is A. Database.BatchableContext D. Database.QueryLocator. See the full explanation below for the reasoning.

Question

Batch Apex is being considered by a developer to process more than 25 million account records in an organization. Which of the following can be used to define the scope and collect these records before they can be updated in a batch Apex class? Choose 2 answers.

Options

  • ADatabase.BatchableContext
  • BAsyncApexJob
  • CCustom Iterable
  • DDatabase.QueryLocator

How the community answered

(27 responses)
  • A
    74% (20)
  • B
    19% (5)
  • C
    7% (2)

Community Discussion

No community discussion yet for this question.

Full PDII Practice