nerdexam
SalesforceSalesforce

PDI · Question #47

PDI Question #47: Real Exam Question with Answer & Explanation

Sign in or unlock PDI to reveal the answer and full explanation for question #47. The question stem and answer options stay visible for context.

Submitted by viktor_hu· Apr 18, 2026Testing, Debugging, and Deployment

Question

Which two statements are true about using the @testSetup annotation in an Apex test class? Choose 2 answers

Options

  • ARecords created in the test setup method cannot be updated in individual test methods.
  • BQo The @testSetup annotation is not supported when the GisTest(SeeAllData=True) annotation
  • CTest data is inserted once for all test methods in a class.
  • DA method defined with the @testSetup annotation executes once for each test method in the test

Unlock PDI to see the answer

You've previewed enough free PDI questions. Unlock PDI for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Apex Testing#@testSetup#Test Data Management#Apex Annotations
Full PDI PracticeBrowse All PDI Questions