nerdexam
Salesforce

PDII · Question #167

What are the ways a developer can create test data of Contacts? (Choose two.)

The correct answer is B. myDataFactory.createContacts(10) C. Test.loadData(Contact.sObjectType, 'staticResource'). See the full explanation below for the reasoning.

Question

What are the ways a developer can create test data of Contacts? (Choose two.)

Options

  • ATest.createTestData()
  • BmyDataFactory.createContacts(10)
  • CTest.loadData(Contact.sObjectType, 'staticResource')
  • DTest.loadTestRecords(Contact.sObjectType, 'staticResource')

How the community answered

(24 responses)
  • A
    17% (4)
  • B
    75% (18)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full PDII Practice