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

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 11–15

  1. 11foundation · easy

    How does the transient keyword affect a Visualforce controller's property in terms of testing?

    Select an answer first
  2. 12expert · hard

    A controller extension adds a method that returns a PageReference to a custom page, but only if the current user has a specific permission. The developer writes a test that runs as a user without the permission and asserts that the method returns null. The test passes. However, the developer also needs to verify the behavior when the user has the permission. What is the most efficient way to test both scenarios?

    Select an answer first
  3. 13foundation · easy

    How can a test verify that a controller method adds an error message to the page?

    Select an answer first
  4. 14foundation · easy

    By default, which user's permissions are used when a test method runs?

    Select an answer first
  5. 15foundation · easy

    Which aspect of a Visualforce controller is typically NOT testable in an Apex unit test?

    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.