exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 338 discussion

Actual exam question from Salesforce's CRT-450
Question #: 338
Topic #: 1
[All CRT-450 Questions]

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 two.)

  • A. Use the @isTest(seeAllData=true) annotation in the test class.
  • B. Create a static resource containing test data.
  • C. Use the @isTest(isParallel=true) annotation in the test class.
  • D. Use Test.loadData to populate data in your test methods.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DonAldos
8 months ago
correct. First Create & upload your CSV file to the Static Resources with the test data you want to use and then use Test.loadData() to load the test data from the CSV file into your test class
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...