Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam PDII Topic 2 Question 94 Discussion

Actual exam question for Salesforce's Platform Developer II exam
Question #: 94
Topic #: 2
[All Platform Developer II Questions]

A developer created 2 class that implements the Queueable Interface, as follows:

As part of the deployment process, the developer is asked to create a corresponding test class.

Which two actions should the developer take to successfully execute the test class?

Choose 2 answers

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Contribute your Thoughts:

Jesusita
19 days ago
I'm going with C and D. Enclosing the job in Test.startTest() and Test.stopTest() is key, and the isRunningTest() check is just smart thinking.
upvoted 0 times
...
Rosenda
20 days ago
Haha, 'seeAllData=True'? What is this, sandbox mode? C and D all the way, my dude.
upvoted 0 times
Cristen
4 days ago
Yeah, 'seeAllData=True' is definitely not the way to go. C and D are the correct actions.
upvoted 0 times
...
...
Cecil
1 months ago
B and D for sure. You don't want any permissions issues during the test, and you definitely need to prevent chaining jobs.
upvoted 0 times
Leandro
5 days ago
Yes, B is important to make sure the test class has the necessary permissions.
upvoted 0 times
...
...
Yaeko
1 months ago
I'm not sure about option A, it doesn't seem necessary for the test class.
upvoted 0 times
...
Johnetta
2 months ago
I agree with Rosalind, option C and D seem like the correct actions to take.
upvoted 0 times
...
Rosalind
2 months ago
I think we should choose option C and D for the test class.
upvoted 0 times
...
Tresa
2 months ago
C and D seem like the right choices. Gotta make sure the Queueable job runs properly in the test class.
upvoted 0 times
Sharee
1 months ago
D) Implement Test.isRunningTest() to prevent chaining jobs during test execution.
upvoted 0 times
...
Junita
1 months ago
C) Enclose System.enqueueJob(new OrderQueueableJob()) within Test.startTest() and Test.stopTest().
upvoted 0 times
...
...

Save Cancel