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

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77