Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)
Suggested Answer: D
Get Premium DEX-450 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
14 comments · newest first
DA
Daryl
12 months ago
I agree with B, super helpful for reducing redundancy!
MI
Miriam
12 months ago
D is misleading, it's not before each test, just once!
LA
Lai
12 months ago
Wait, C? Really? I thought we could update those records.
IO
Iola
1 year ago
B is right too, saves time on data setup!
DY
Dyan
1 year ago
A is definitely true, can't mix those annotations.
TR
Tresa
1 year ago
I recall that the @testSetup method runs before each test method, but I’m not completely sure if that’s what option D is saying.
MA
Malcolm
1 year ago
I think option B is definitely true because the test data is set up once and used across all test methods, which saves time.
IS
Isabelle
1 year ago
I remember that the @testSetup annotation is really useful for creating common test data, but I'm not sure if it can be used with SeeAllData=True.
RE
Regenia
1 year ago
I feel like I might be mixing up the details, but I think records created in @testSetup can be updated in the test methods, right?
RE
Ressie
1 year ago
I'm feeling a little lost on this one. The wording of the question and the options are a bit confusing to me. I'll need to carefully read through each choice and think it through step-by-step.
DA
Dan
1 year ago
Hmm, I'm a bit unsure about this one. I know truncate is used to delete data, but I'm not sure if it's specifically for damaged databases. Let me think this through a bit more.
JO
Johanna
1 year ago
This seems pretty straightforward. I'll start by writing out the YAML manifest and then apply it to the cluster. That way I can ensure I have all the required elements.
ZA
Zana
1 year ago
I'm a bit confused about the difference between dBi and dBd. I'll need to review those concepts before answering.
MI
Mindy
1 year ago
Okay, let me see... social engineering, that's where the attacker manipulates the victim into giving up private data, right? Yeah, that sounds like the best match for the description in the question.