SALESFORCE-PD1 Developer Fundamentals Practice Question
An Apex transaction performs a DML operation, followed by a callout to an external REST API, followed by another DML operation. What exception will Salesforce throw?
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
✓
CalloutException
Salesforce throws a CalloutException when a DML operation has occurred before a callout in the same transaction, to prevent database locks.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
CalloutException
Why this is correct
Making a callout after a DML operation in the same synchronous transaction throws a CalloutException.
- ✗
AsyncException
Why it's wrong here
AsyncException is related to asynchronous job queueing limits.
- ✗
LimitException
Why it's wrong here
LimitExceptions are thrown when governor limits such as CPU time or queries are exceeded, not specifically for callouts after DML.
- ✗
SystemException
Why it's wrong here
SystemException is a base class, not the specific exception thrown for this violation.
About these practice questions
This SALESFORCE-PD1 question is part of Courseiva's 493-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.