ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 322 - Certified Platform Developer II discussion

Report
Export

A developer has a Batch Apex process, Batch_Account_Sales, that updates the sales amount for 10,000 Accounts on a nightly basis. The Batch Apex works as designed In the sandbox. However, the developer cannot get code coverage on the Batch Apex class.

The test class is below:

What is causing the code coverage problem?

A.
The batch process will not recognize new accounts created in the same session
Answers
A.
The batch process will not recognize new accounts created in the same session
B.
The account creation already sets the sates amount to 0.
Answers
B.
The account creation already sets the sates amount to 0.
C.
The executeBatch must fail within test. startTest ( ) and – test. stopTest().
Answers
C.
The executeBatch must fail within test. startTest ( ) and – test. stopTest().
D.
The batch needs more than one account record created.
Answers
D.
The batch needs more than one account record created.
Suggested answer: C
asked 23/09/2024
Gishi Anurag
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first