Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Exam Development-Lifecycle-and-Deployment-Architect All Questions
Exam Development-Lifecycle-and-Deployment-Architect All Questions

View all questions & answers for the Development-Lifecycle-and-Deployment-Architect exam

Salesforce Developer Development-Lifecycle-and-Deployment-Architect Question # 29 Topic 3 Discussion

Development-Lifecycle-and-Deployment-Architect Exam Topic 3 Question 29 Discussion:
Question #: 29
Topic #: 3

Which two statements are accurate about why Mock objects are needed when writing test classes?

Choose 2 answers


A.

Mock can also be used on the classes that extend the batchable interface to bypass the batch jobs.


B.

Using a Mock allows the test class to bypass the dependencies of other objects, methods, state, or behaviors. Therefore, the developer has total control of his own code.


C.

Some methods are invoking long running processes, using Mock is a shortcut of bypassing the long executions.


D.

A Mock is needed whenever the code makes an HTTP callout.


Get Premium Development-Lifecycle-and-Deployment-Architect Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.