Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Salesforce logo

SalesforceCertified Platform Developer II

Domain 7Objective 2

Describe How to Apply Different Techniques to Create Test Data and Responses. PLATFORM-DEVELOPER-II Practice Questions (Page 6)

Part of the TESTING domain, which accounts for 7% of the PLATFORM-DEVELOPER-II exam.

33questions here
7free pages
8concepts
7%of the exam

Questions 26–30

  1. 26application · medium

    A developer is writing a test for a trigger that updates Account records when an Opportunity is inserted. The test needs to verify that the trigger does not run against existing org data. The developer has set SeeAllData=false. What additional step is required to ensure test data isolation?

    Select an answer first
  2. 27foundation · easy

    When creating test data with parent-child relationships, what is the correct order of insertion?

    Select an answer first
  3. 28application · medium

    A developer is writing a test for a class that queries an external object (Salesforce Connect). The external object data is not available in the test environment. How should the developer mock the external object data?

    Select an answer first
  4. 29application · medium

    A developer is writing Apex tests for a class that processes a batch of Opportunities. The class requires Opportunities to have a related Account and at least one OpportunityLineItem. The developer wants to minimize code duplication across multiple test classes. Which approach should the developer use to create the test data?

    Select an answer first
  5. 30foundation · easy

    Which Apex method is used to load test data from a static resource file in a test class?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Salesforce. “PLATFORM-DEVELOPER-II” is a trademark of its owner, used for identification only.