SALESFORCE-PD1 Testing Debugging And Deployment Practice Question
Which THREE items are best practices when setting up test data using @TestSetup methods? (Choose three.)
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
✓
Perform time-consuming operations or bulk data generation once to avoid hitting governor limits in separate test methods.
Test setup methods create shared records efficiently and roll back per method.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Perform time-consuming operations or bulk data generation once to avoid hitting governor limits in separate test methods.
Why this is correct
@TestSetup runs once per class, preserving governor limits for test methods.
- ✗
Hardcode specific record IDs assigned during @TestSetup into downstream test assertions.
Why it's wrong here
IDs assigned in test setup can vary and should not be hardcoded.
- ✓
Create parent records (such as Accounts) that can be queried and associated with child records in individual test methods.
Why this is correct
Parent records set up once can be queried and linked across multiple test methods.
- ✗
Call external REST callouts inside the @TestSetup method to fetch live seed data.
Why it's wrong here
Callouts are not permitted in test methods or test setup methods without mocks.
- ✓
Modify records created in @TestSetup within test methods without worrying about state pollution, because Salesforce automatically rolls back modifications made by each test method.
Why this is correct
Modifications made to test setup records in individual test methods do not persist to subsequent test methods due to transaction rollbacks.
About these practice questions
One of 493 original SALESFORCE-PD1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.