Salesforce Certified Platform Developer II Exam
Certified Platform Developer II (Page 5 )

Updated On: 1-Feb-2026

A developer creates a Lightning web component to allow a Contact to be quickly entered. However, error messages are not displayed.

Which component should the developer add to the form to display error messages?

  1. lightning-messages
  2. aura:messages
  3. lightning-error
  4. apex:messages

Answer(s): A



The Account edit button must be overridden in an org where a subset of users still uses Salesforce Classic. The org already has a Lightning Component that will do the work necessary for the override, and the client wants to be able to reuse it.

How should a developer implement this?

  1. Override the edit button for both Lightning and Classic with a Lightning Component
  2. Override the edit button for both Lightning and Classic with a new Visualforce page
  3. Override the edit button for Lightning with a Lightning Page, and for Classic, override the edit button with a Visualforce page that contains the Lightning Component
  4. Override the edit button for Lightning with a Lightning Component, and for Classic, override the edit button with a Visualforce page that contains the Lightning Component

Answer(s): C



A developer has a Visualforce page that automatically assigns ownership of an Account to a queue upon save. The page appears to correctly assign ownership, but an assertion validating the correct ownership fails.

What can cause this problem?

  1. The test class does not use the Bulk API for loading test data.
  2. The test class does not use the seeAllData=true annotation.
  3. The test class does not retrieve the updated value from the database.
  4. The test class does not implement the Queueable interface.

Answer(s): C



A company has a custom object, Request_c, that has a checkbox field, Completed_c, and a Lookup to Opportunity, Opportunity_c.

Which SOQL query will get a unique list of all of the Opportunity records that have a Completed Request?

  1. SELECT Opportunity_c FROM Request_c WHERE Id IN (SELECT Id FROM Request_c Where Completed_c = true)
  2. SELECT Opportunity_c FROM Request_c WHERE Completed_c = true
  3. SELECT Id FROM Opportunity WHERE Id IN (SELECT Id FROM Request_c WHERE Completed = true)
  4. SELECT Id From Opportunity WHERE Id IN (SELECT Opportunity_c FROM Request_c WHERE Completed_c = true)

Answer(s): D



Salesforce users consistently receive a “Maximum trigger depth exceeded” error when saving an Account. How can a developer fix this error?

  1. Split the trigger logic into two separate triggers.
  2. Use a helper class to set a Boolean to TRUE the first time a trigger is fired, and then modify the trigger to only fire when the Boolean is FALSE.
  3. Convert the trigger to use the @future annotation, and chain any subsequent trigger invocations to the Account object.
  4. Modify the trigger to use the isMultiThread=true annotation.

Answer(s): B



Viewing page 5 of 86
Viewing questions 21 - 25 out of 424 questions



Post your Comments and Discuss Salesforce Certified Platform Developer II exam prep with other Community members:

Join the Certified Platform Developer II Discussion