nerdexam
Salesforce

PDII · Question #307

PDII Question #307: Real Exam Question with Answer & Explanation

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

Question

A developer wrote the following method to find all the test accounts in the org: However, the test method below fails. What should be used to fix this failing test?

Exhibits

PDII question #307 exhibit 1
PDII question #307 exhibit 2

Options

  • ATest.loadData to set up expected data
  • B@isTear(SeeAllData=true) to access org data for the test
  • CTest.fixedSearchResults() method to set up expected data
  • D@testSetup method to set up expected data

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII 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.

Full PDII Practice