Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 44 Topic 5 Discussion

Salesforce Certified Platform Developer (Plat-Dev-201) PDI Question # 44 Topic 5 Discussion

PDI Exam Topic 5 Question 44 Discussion:
Question #: 44
Topic #: 5

A developer created this Apex trigger that calls MyClass.mystaticMethod:

The developer creates a test class with a test method that calls MyClass.myStaticMethod directly, resulting in 81% overall code coverage What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exists?


A.

The deployment passes because both classes and the trigger were included in the deployment.


B.

The deployment fails because no assertions were made in the test method.


C.

The deployment passes because the Apex code has the required >75% code coverage.


D.

The deployment fails because the Apex trigger has no code coverage.


Get Premium PDI 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.