Certified Platform Developer II Exam Dumps & Practice Test
Certified Platform Developer II Questions 216–220 (page: 45)

Updated On: 10-Feb-2026

A Visualforce Page throws an ‘Attempt to dereference a null object’ error for a Contact.
What change in the controller will fix the error?

  1. Use a condition in the getter to return a new Contact if it is null
  2. Declare a static final Contact at the top of the controller
  3. Change the getter’s signature to be static Contact
  4. Change the setter’s signature to return a Contact

Answer(s): A



A business process requires sending new Account records to an external system. The Account Name, Id, CreatedDate, and Created ById must be passed to the external system in near real-time when an Account is inserted without error. How should a developer achieve this?

  1. Use a before insert trigger and a Queueable class
  2. Use a before insert trigger and an @future method
  3. Use a Process Builder that calls an @InvocableMethod method
  4. Use a Workflow rule that calls an @InvocableMethod method

Answer(s): C



A developer creates an application event that has triggered an infinite loop.
What may have caused this problem?

  1. The event handler calls a trigger
  2. The event has multiple handlers registered in the project
  3. An event is fired ‘ontouchend’ and is unhandled
  4. The event is fired from a custom renderer

Answer(s): D



The use of the transient keyword in Visualforce Page Controllers helps with which common performance issue?

  1. Improves Query Performance
  2. Reduces View State
  3. Improves Page Transfers
  4. Reduces Load Times

Answer(s): B



A company uses a custom-built enterprise resource planning (ERP) system to handle order management. The company wants Sales Reps to know the status of orders so that if a customer calls to ask about their shipment, the Sales Rep can advise the customer about the order’s status and tracking number if it is already shipped.

Which two methods can make this ERP order data visible in Salesforce? (Choose two.)

  1. Ensure real-time order data is in Salesforce using the Streaming API
  2. Use Salesforce Connect to view real-time Order data in the ERP system
  3. Write a cron job in Salesforce to poll the ERP system for order updates
  4. Have the ERP system push the data into Salesforce using the SOAP API

Answer(s): B,D



Viewing page 45 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!