BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer II Topic 6 Question 98 Discussion

Actual exam question for Salesforce's Platform Developer II exam
Question #: 98
Topic #: 6
[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:

Ailene
2 months ago
I'm not sure, but I think option D is also necessary to prevent chaining jobs during test execution.
upvoted 0 times
...
Jaclyn
2 months ago
I agree with Melda, enclosing the enqueueJob within Test.stopTest is important for testing.
upvoted 0 times
...
Omega
2 months ago
Test.isRunningTest() is the ultimate weapon against job-chaining chaos. Gotta love it!
upvoted 0 times
...
Melda
2 months ago
I think we should choose option C.
upvoted 0 times
...
Edmond
2 months ago
Lila
upvoted 0 times
Rosamond
1 months ago
A: The running user of the test class should have the View All permission on the Order object.
upvoted 0 times
...
Delpha
1 months ago
B: The developer should implement Test.isRunningTest() to prevent chaining jobs during test execution.
upvoted 0 times
...
Jenifer
2 months ago
A: The developer should enclose System.enqueueJob(new OrderQueueableJob()) within Test.startTest() and Test.stopTest().
upvoted 0 times
...
Melissa
2 months ago
D) Implement Test.isRunningTest() to prevent chaining jobs during test execution.
upvoted 0 times
...
Melissa
2 months ago
C) Enclose System.enqueueJob(new OrderQueueableJob ()) within Test.startTest() and Test.stopTest().
upvoted 0 times
...
...

Save Cancel