
SalesforceCertified Platform Developer I
Domain 5Objective 3
Describe When and How to Use Various Sources of Test Data. PLATFORM-DEVELOPER-I Practice Questions (Page 4)
Part of the TESTING domain, which accounts for 12% of the PLATFORM-DEVELOPER-I exam.
20questions here
4free pages
10concepts
12%of the exam
Questions 16–20
- 16
A developer is writing a test for a class that updates a custom object's record type based on a picklist value. The developer wants to avoid hard-coding record type IDs in the test. What is the best practice?
Select an answer first - 17
A team is developing a large Salesforce org with many test classes. They notice that test data creation code is duplicated across multiple test classes, leading to maintenance issues. They decide to implement a test data factory. Which design consideration is most important for the factory to be effective?
Select an answer first - 18
A developer is writing an Apex test for a trigger that updates Account records. They want to use standard Salesforce records as test data. What is the most accurate statement about using standard records in this scenario?
Select an answer first - 19
A developer is testing a trigger that makes a callout to an external system to validate a zip code. The trigger is invoked when a Lead is inserted. The developer wants to ensure the callout is mocked and that the test does not fail due to governor limits. Which test structure is correct?
Select an answer first - 20
A developer is writing a test for a class that sends an email to a Contact's email address. The test needs to verify that the email is sent. Which source of test data should the developer use?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to PLATFORM-DEVELOPER-I
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Salesforce. “PLATFORM-DEVELOPER-I” is a trademark of its owner, used for identification only.