Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce DEX-450 Exam - Topic 9 Question 125 Discussion

Actual exam question for Salesforce's DEX-450 exam
Question #: 125
Topic #: 9
[All DEX-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 2 answers

Show Suggested Answer Hide Answer
Suggested Answer: C, D

Contribute your Thoughts:

0/2000 characters
Tanja
10 days ago
A is a bad idea, it can mess with your test isolation.
upvoted 0 times
...
Maryanne
15 days ago
D is definitely the way to go for bulk testing!
upvoted 0 times
...
Lavelle
1 month ago
I feel like creating a static resource for test data might be overkill for just 200 records, but I could be wrong.
upvoted 0 times
...
Belen
1 month ago
I practiced a similar question where we had to create bulk test data, and I think using Test.loadData is the way to go for efficiency.
upvoted 0 times
...
Starr
2 months ago
I think using @isTest (seeAllData=true) is generally discouraged, but I can't recall why exactly.
upvoted 0 times
...
Bethanie
2 months ago
I remember we discussed how using Test.loadData can simplify creating test records, but I'm not sure if it's the best option here.
upvoted 0 times
...

Save Cancel