Valid CRT-450 Dumps shared by ExamDiscuss.com for Helping Passing CRT-450 Exam! ExamDiscuss.com now offer the newest CRT-450 exam dumps, the ExamDiscuss.com CRT-450 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CRT-450 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: A,B
To test the trigger with 200 account records with unique names using the least amount of code: Option A: Use Test.loadData to populate data in your test methods. Reference: "Test.loadData lets you populate test records by loading the contents of a CSV file into sObjects for use in test methods." - Apex Developer Guide: Using Test.loadData Option B: Create a static resource containing test data. "Create a static resource that contains the .csv file for the records you want to load." - Apex Developer Guide: Loading Test Data from Static Resources Why Other Options Are Incorrect: Option C: The @isTest(isParallel=true) annotation is used to run tests in parallel but does not help in creating test data. Option D: Using @isTest(seeAllData=true) allows access to existing org data, which is not recommended and does not help create unique test data with minimal code.