Only D is correct.
A is written incorrectly, you can specify the number of records executed per batch, which may be anything from 1 to 2000. https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_database.htm#apex_System_Database_executeBatch_2
B is incorrect becuase it is referring to the execute() method of the batch class, NOT the executeBatch method of the database class. Here is how you call it: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm.
C is wrong, because it is not a best practice, so this is almost always wrong. Apparently the Connect API namespace is an exception.
Answer: AD
“Make sure that the number of records inserted is less than or equal to the batch size of 200 because test methods can execute only one batch. You must also ensure that the Iterable returned by the start method matches the batch size.”
Question says "less than 200", in your argument it says it can be equal to 200, therefore I would say B and D are correct.
upvoted 4 times
...
...
Log in to ExamTopics
Sign in:
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.
singhkar
Highly Voted 3 years, 5 months agomoitam
1 year, 2 months agoFriedConsole2000
Most Recent 9 months, 1 week agop4wix
1 year, 1 month agoejh
1 year, 8 months agolorenac2
1 year, 10 months agoRp194
2 years, 4 months agoamerbearat
3 years, 3 months agoncore
2 years, 12 months ago