nerdexam
Salesforce

CRT-450 · Question #103

A developer created this Apex trigger that calls MyClass,myStartmethod: The developer creates a test method that calls MyClase,myStartmethod directly, resulting in 81% overall code coverage. What…

The correct answer is A. The deployment fails because the Apr-MgQM has no code coverage. See the full explanation below for the reasoning.

Question

A developer created this Apex trigger that calls MyClass,myStartmethod:

The developer creates a test method that calls MyClase,myStartmethod directly, resulting in 81% overall code coverage. What happens wtier the developer tries to deploy the ... and two classes to production, assuming no other code exists?

Options

  • AThe deployment fails because the Apr-MgQM has no code coverage.
  • BThe deployment tails because no assertions mett made in the lest method.
  • CThe deployment passes became the Apex code has the requited 75% code coverage.
  • DThe deployment passes because both classes and the trigger were included ki the deployment.

How the community answered

(35 responses)
  • A
    83% (29)
  • B
    6% (2)
  • C
    9% (3)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice