
SalesforceCertified Platform Developer I
Domain 5Objective 3
Describe When and How to Use Various Sources of Test Data. PLATFORM-DEVELOPER-I Practice Questions (Page 2)
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 6–10
- 6
A developer is writing a test for a batch class that processes a large number of Account records. The test needs to load 500 Account records from a static resource. The developer uses Test.loadData(Account.SObjectType, 'TestAccounts'). However, the test fails because the CSV file contains a column for 'Id' that is not valid. What is the likely issue?
Select an answer first - 7
What is the purpose of Test.startTest() and Test.stopTest() in an Apex test?
Select an answer first - 8
A development team has multiple test classes that all need to create Account, Contact, and Opportunity records with similar field values. To reduce duplication and improve maintainability, they want to centralize the test data creation logic. What should they do?
Select an answer first - 9
A developer is writing a test for an Apex class that makes a callout to an external REST API to retrieve currency exchange rates. The test must not make a real HTTP callout. What should the developer do to simulate the external data source?
Select an answer first - 10
Which of the following is a best practice for creating test data in Salesforce?
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.