Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Salesforce logo

SalesforceCertified Platform Developer II

Domain 7Objective 3

Describe the Implications of Testing Visualforce Controllers and Controller Extensions. PLATFORM-DEVELOPER-II Practice Questions (Page 5)

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

27questions here
6free pages
10concepts
7%of the exam

Questions 21–25

  1. 21foundation · easy

    What does the setRedirect(true) method on a PageReference indicate?

    Select an answer first
  2. 22foundation · easy

    Why is it important to create test data with DML in a controller test?

    Select an answer first
  3. 23foundation · easy

    What does ApexPages.currentPage() return in a test?

    Select an answer first
  4. 24application · medium

    A controller method queries for records that the current user may not have access to due to sharing rules. A developer writes a test that runs as a user with the 'View All Data' permission to ensure the query returns all records. What is the primary issue with this test approach?

    Select an answer first
  5. 25foundation · easy

    What is the primary purpose of unit testing a Visualforce controller?

    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.