Which approach should be used to provide test data for a test class?
Suggested Answer: C
Get Premium DEX-450 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
GL
Glenna
12 months ago
Test data factories are the best way to go!
DU
Dulce
12 months ago
Wait, can we really use @TestVisible for this? Sounds odd.
TA
Taryn
12 months ago
A is fine, but it can lead to flaky tests.
RA
Rana
1 year ago
I disagree, option B is way more flexible!
TE
Teresita
1 year ago
I usually go with option C, it's super efficient.
DO
Donette
1 year ago
Accessing @TestVisible variables seems useful, but I think it might limit the flexibility of the test data.
MA
Marguerita
1 year ago
I feel like querying existing records could lead to issues with test isolation, but I can't recall the specifics.
ST
Stephane
1 year ago
I remember practicing with anonymous code blocks to create data, but I wonder if that's the most efficient way to handle it.
RO
Rodolfo
1 year ago
I think using a test data factory class is a good approach, but I'm not entirely sure if it's the best option for every scenario.
AN
Angella
1 year ago
Okay, I've got a strategy for this. I'll first eliminate any options that don't seem relevant, then focus on the remaining choices and try to determine the most likely answer based on my understanding of charge plans.
CE
Celia
1 year ago
I can't recall if the FMC allows recovery after a purge, but I think I leaned towards option B being incorrect based on our discussions.
MA
Malinda
1 year ago
I remember something about pricing related to demand during peak times, but I'm struggling to remember the exact term. Incremental rates? Maybe?