nerdexam
SalesforceSalesforce

PDI · Question #235

PDI Question #235: Real Exam Question with Answer & Explanation

Sign in or unlock PDI to reveal the answer and full explanation for question #235. The question stem and answer options stay visible for context.

Submitted by neha2k· Apr 18, 2026Testing, Debugging, and Deployment

Question

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?

Options

  • AThe deployment passes because both classes and the trigger were included in the deployment.
  • BThe deployment fails because no assertions were made in the test method.
  • CThe deployment passes because the Apex code has the required >75% code coverage.
  • DThe deployment fails because the Apex trigger has no code coverage.

Unlock PDI to see the answer

You've previewed enough free PDI questions. Unlock PDI for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Apex Trigger#Code Coverage#Deployment#Apex Testing
Full PDI PracticeBrowse All PDI Questions