
SalesforceCertified Platform Developer I
Domain 5Objective 3
Describe When and How to Use Various Sources of Test Data. PLATFORM-DEVELOPER-I Practice Questions (Page 3)
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 11–15
- 11
What is the primary purpose of a test data factory in Salesforce?
Select an answer first - 12
A developer needs to test a batch class that processes Account records. The test requires a large number of Account records with specific field values. To avoid writing hundreds of lines of Apex code, the developer decides to use a static resource. What is the correct way to load this data in the test?
Select an answer first - 13
A developer is writing a test for a class that calculates a discount based on a custom setting and an Account's industry. The test must verify the calculation for a specific industry. The developer wants to ensure the test is self-contained and does not depend on org data. Which approach best achieves this?
Select an answer first - 14
A developer is writing a test class for a trigger that updates a custom object's 'Status__c' field based on related Account records. The developer wants to ensure the test is self-contained and does not depend on any existing data in the org. Which approach should the developer use to set up the test data?
Select an answer first - 15
A developer is testing a trigger that performs a callout when a record is inserted. The test must ensure that the callout is made within the test context and that the test does not exceed governor limits. What is the correct way to structure the test?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
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.