Salesforce PDII Exam (page: 3)
Salesforce Certified Platform Developer II
Updated on: 25-Dec-2025

Viewing Page 3 of 86

A company processes Orders within their Salesforce instance.
When an Order’s status changes to 'Paid' it must notify the company’s order management system (OMS). The OMS exposes SOAP web service endpoints to listen for when to retrieve the data from Salesforce.
What is the optimal method to implement this?

  1. Generate the Enterprise WSDL and use it to make a callout to the OMS.
  2. Generate the Partner WSDL and use it to make a callout to the OMS.
  3. Create an Outbound Message that contains the session ID and send it to the OMS.
  4. Create an Apex trigger and make a callout to the OMS from the trigger.

Answer(s): C





Consider the Apex controller above, that is called from a Lightning Aura Component.
What is wrong with it?

  1. Line 1: class must be global
  2. Lines 1 and 6: class and method must be global
  3. Line 6: method must be static
  4. Line 8: method must first serialize the list to JSON before returning

Answer(s): C



An Apex class does not achieve expected code coverage. The testSetup method explicitly calls a method in the Apex class. How can the developer generate the code coverage?

  1. Verify the user has permissions passing a user into System.runAs().
  2. Call the Apex class method from a testMethod instead of the testSetup method.
  3. Add @testVisible to the method in the class the developer is testing.
  4. Use system.assert() in testSetup to verify the values are being returned.

Answer(s): B



A developer is trying to decide between creating a Visualforce component or a Lightning component for a custom screen.
Which functionality consideration impacts the final decision?

  1. Does the screen need to be rendered as a PDF?
  2. Does the screen need to be accessible from the Lightning Experience UI?
  3. Will the screen make use of a JavaScript framework?
  4. Will the screen be accessed via a mobile app?

Answer(s): A



A developer wishes to improve runtime performance of Apex calls by caching results on the client.
What is the best way to implement this?

  1. Decorate the server-side method with @AuraEnabled(cacheable=true).
  2. Set a cookie in the browser for use upon return to the page.
  3. Call the setStorable() method on the action in the JavaScript client-side code.
  4. Decorate the server-side method with @AuraEnabled(storable=true).

Answer(s): A



Viewing Page 3 of 86



Share your comments for Salesforce PDII exam with other users:

Farooqi 11/21/2023 1:37:00 AM

good for practice.
INDIA