Study for the Salesforce Platform Developer Exam. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Practice this question and more.


What is required to deploy new components that have test coverage above 100%?

  1. Review historical test runs

  2. Test coverage must be at least 75%

  3. Deployments require manual approval

  4. Code must be reviewed for complexity

The correct answer is: Test coverage must be at least 75%

The requirement for deploying new components in Salesforce is that the Apex code must have at least 75% test coverage. This threshold ensures that a significant portion of the code is tested, which helps in maintaining code quality and reducing the likelihood of introducing bugs into the production environment. Even though it may seem beneficial to have test coverage above 100%, Salesforce applies the 75% rule to ensure that there is a sufficient basis of test cases to validate the functionality of your code. The notion of coverage exceeding 100% generally suggests that there are scenarios that have been well-covered by tests, but for deployment purposes, meeting the 75% benchmark is the critical threshold.