Certified Platform Developer II Exam Dumps & Practice Test
Certified Platform Developer II Questions 211–215 (page: 44)

Updated On: 10-Feb-2026

A developer is inserting, updating, and deleting multiple lists of records in a single transaction and wants to ensure that any error prevents all execution.

How should the developer implement error exception handling in their code to handle this?

  1. Use Database.setSavepoint() and Database.rollBack() with a Try/Catch statement
  2. Use a Try/Catch and use sObject.addError() on any failures
  3. Use Database methods to obtain lists of Database.SaveResults
  4. Use a Try/Catch statement and handle DML cleanup in the catch statement

Answer(s): A



A Visualforce page needs to make a callout to get billing information and tax information from two different REST endpoints. The information needs to be displayed to the user at the same time and the return value of the billing information contains the input for the tax information callout. Each endpoint might take up to two minutes to process.

How should a developer implement the callouts?

  1. A Continuation for the billing callout and an HTTP REST callout for the tax callout
  2. A Continuation for both the billing callout and the tax callout
  3. An HTTP REST callout for both the billing callout and the tax callout
  4. An HTTP REST callout for the billing callout and a Continuation for the tax callout

Answer(s): B



The Account edit button must be overridden in an org where a subset of users still use 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 Classic with a Visualforce page that contains the Lightning Component
  4. Override the edit button for Lightning with a Lightning Component, and Classic with a Visualforce page that contains the Lightning Component

Answer(s): D



A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity’s Account whenever an Opportunity is closed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails.

What might be causing the failed assertion?

  1. The test class is not using System.runAs() to run tests as a Salesforce administrator
  2. The test class has not re-queried the Account record after updating the Opportunity
  3. The test class has not defined an Account owner when inserting the test data
  4. The test class has not implemented seeAllData=true in the test method

Answer(s): B



The Contact object in an org is configured with workflow rules that trigger field updates. The fields are not updating, even though the end user expects them to. The developer creates a debug log to troubleshoot the problem.

What should the developer specify in the debug log to see the values of the workflow rule conditions and debug the problem?

  1. ERROR level for the Database log category
  2. INFO level for the Workflow log category
  3. ERROR level for the Workflow log category
  4. INFO level for the Database log category

Answer(s): B



Viewing page 44 of 86
Viewing questions 1 - 0 out of 424 questions


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

AI Tutor AI Tutor 👋 I’m here to help!