nerdexam
Salesforce

CRT-450 · Question #147

A developer created a trigger on the Account object and wants to test if the trigger is properly bulklfield. The developer team decided that the trigger should be tested with 200 account records…

The correct answer is B. Use Test.loadData to populate data in your test methods. D. Create a static resource containing test data. See the full explanation below for the reasoning.

Question

A developer created a trigger on the Account object and wants to test if the trigger is properly bulklfield. 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

Options

  • AUse the @isTest(isParallel=true) annotation in the test class.
  • BUse Test.loadData to populate data in your test methods.
  • CUse the @isTest(seeAllData=true) annotation in the test class.
  • DCreate a static resource containing test data.

How the community answered

(60 responses)
  • A
    20% (12)
  • B
    73% (44)
  • C
    7% (4)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice