Salesforce Certified Platform Developer II — Question 255

What is a consideration when testing batch Apex? (Choose two.)

Answer options

Correct answer: A, D

Explanation

The correct answers, A and D, refer to the limitations and requirements for testing batch Apex in Salesforce. Option A is correct because Salesforce imposes a limit on the scope size for tests, while option D is right as it ensures that the asynchronous process is properly handled within the test context. Options B and C are incorrect because calling execute() multiple times is not restricted, and using @isTest (SeeAllData=true) is not a best practice for test methods.