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 4)

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 16–20

  1. 16application · medium

    A developer is testing a class that makes multiple HTTP callouts to different endpoints. The developer wants to return different static responses for each endpoint. Which mock class should the developer use?

    Select an answer first
  2. 17application · medium

    A developer is creating test data for a class that requires a hierarchy of records: Account, Contact, and Case. The developer wants to ensure the data is created consistently across multiple test classes. Which approach best achieves this?

    Select an answer first
  3. 18foundation · easy

    Which setting ensures that a test method cannot access or modify data outside of the test's own data?

    Select an answer first
  4. 19foundation · easy

    What is the primary benefit of using a Test Data Factory pattern?

    Select an answer first
  5. 20expert · hard

    A developer is testing a class that makes an HTTP callout and then updates a record based on the response. The test needs to verify that the record is updated correctly. The developer has set up an HttpCalloutMock. What additional step is required to ensure the test is reliable?

    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.