Salesforce Platform Developer I (legacy) — Question 154
A developer completed modifications to a customized feature that is comprised of two elements:
• Apex trigger
• Trigger handler Apex class
What are two factors that the developer must take into account to properly deploy the modification to the production environment? (Choose two.)
Answer options
- A. Apex classes must have at least 75% code coverage org-wide.
- B. At least one line of code must be executed for the Apex trigger.
- C. All methods in the test classes must use @isTest.
- D. Test methods must be declared with the testMethod keyword.
Correct answer: A, B
Explanation
The correct answer is A and B because Apex classes indeed require a minimum of 75% code coverage for deployment, and at least one line of code must execute in the trigger for it to be considered valid. Options C and D are incorrect because while they relate to test methods, they do not directly impact the deployment of the Apex trigger and handler class.