SALESFORCE-PD1 Testing Debugging And Deployment Practice Question
Which TWO circumstances will cause an Apex unit test method to fail? (Choose two.)
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
A System.assert() or Assert.areEqual() statement evaluates to false.
Uncaught exceptions and failed system assertions cause test method failures.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The test method executes in read-only mode.
Why it's wrong here
Test methods can perform DML operations.
- ✗
The test class code coverage is exactly 75%.
Why it's wrong here
75% code coverage is passing for deployment; individual test methods don't have individual coverage failure thresholds.
- ✗
The test method finishes executing with zero assertions.
Why it's wrong here
While bad practice, a test method with no assertions will pass as long as no unhandled exceptions occur (though some linters flag it).
- ✓
A System.assert() or Assert.areEqual() statement evaluates to false.
Why this is correct
Failed assertions throw an exception that fails the test method.
- ✓
An uncaught exception such as a NullPointerException is thrown during test execution.
Why this is correct
Uncaught exceptions cause the test method to fail immediately.
About these practice questions
This SALESFORCE-PD1 question is part of Courseiva's 488-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Salesforce exam blueprint
This SALESFORCE-PD1 practice question is part of Courseiva's free Salesforce certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SALESFORCE-PD1 exam.