Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 181 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 181
Topic #: 1
[All Certified Platform Developer II Questions]

When testing batch classes, what must a developer do? (Choose two.)

  • A. Use seeAllData=true
  • B. Encapsulate code in Test.startTest() and Test.stopTest()
  • C. Call the class' "execute" method
  • D. Limit the amount of records you test to < 200
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️
If you use "seeAllData=true," you are a bad person

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
AppleDash
1 year, 5 months ago
Selected Answer: BC
BC https://www.testim.io/blog/guide-to-batch-apex-in-salesforce/
upvoted 1 times
M4JK3LSON
11 months ago
You are never invoking execute method from batch class...I hope. You are invoking Database.executeBatch(BatchableContext bc) but it's not directly call to execute method.
upvoted 1 times
...
...
singhkar
3 years, 5 months ago
The correct ans is B and C Limit the amount of record you set can be less or equal to 200
upvoted 4 times
OmShantiVeg
2 years, 4 months ago
Ans may be B and C indeed
upvoted 2 times
...
...
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.

SaveCancel
Loading ...