199k views
5 votes
Before you deploy Apex code to a Salesforce ___ org, at least ___ of that code must be covered by Apex testing, and ___ those tests must ___.

A) Sandbox / 75% / all / pass
B) Production / 50% / only critical / fail
C) Developer / 90% / some / run
D) Staging / 100% / none / execute

User Anjisan
by
8.2k points

1 Answer

3 votes

Final answer:

Apex code must have at least 75% test coverage before being deployed to a Salesforce production environment; all associated tests must pass to meet the requirement.

Step-by-step explanation:

Before you deploy Apex code to a Salesforce production org, at least 75% of that code must be covered by Apex testing, and all those tests must pass. The correct option is A) Sandbox / 75% / all / pass. This requirement is to ensure that the Apex code runs as expected and does not introduce any issues into the live environment.

User Spons
by
8.4k points