Valid PDI Dumps shared by EduDump.com for Helping Passing PDI Exam! EduDump.com now offer the newest PDI exam dumps, the EduDump.com PDI exam questions have been updated and answers have been corrected get the newest EduDump.com PDI dumps with Test Engine here:
A developer created a trigger on the Account object and wants to test if the trigger is properly bulkified. The developer team decided that the trigger should be tested with 200 account records with unique names. What two things should be done to create the test data within the unit test with the least amount of code? Choose 2 answers
Correct Answer: C,D
Why Use Static Resources andTest.loadData? C: Static resources allow you to define reusable test data (e.g., in a CSV file). D:Test.loadDatasimplifies loading bulk test data into test classes from static resources. Why Not Other Options? A: Using@isTest(seeAllData=true)violates test isolation principles and is discouraged. B:@isTest(isParallel=true)is used for parallel execution, not for creating test data. References:Test.loadData:https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode /apex_testing_tools_load_data.htm