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 happens to deployments with coverage lower than 75%?

  1. They automatically succeed

  2. They are logged for future reference

  3. They fail

  4. They get postponed

The correct answer is: They fail

In Salesforce, when deploying code, it is a requirement that the deployment achieves a minimum code coverage of 75% for the Apex code. This is a critical aspect of maintaining the quality and reliability of the code in a production environment. If the overall code coverage of the Apex tests does not meet this threshold at the time of deployment, the deployment will fail. This strict requirement is in place to ensure that any new or changed code is appropriately tested, which helps prevent bugs and issues from going into production. It reinforces best practices in development by motivating developers to write comprehensive unit tests that cover a significant portion of their code. This policy is intended to safeguard the integrity of the application and ensure that any new code added does not compromise the existing functionality. It encourages developers to improve their test coverage rather than postponing or logging the issue for future reference, which could lead to degraded performance or unresolved bugs.