Salesforce PDII Salesforce Certified Platform Developer II Online Training
Salesforce PDII Online Training
The questions for PDII were last updated at Jan 07,2026.
- Exam Code: PDII
- Exam Name: Salesforce Certified Platform Developer II
- Certification Provider: Salesforce
- Latest update: Jan 07,2026
Refer to the Lightning component below:
The Lightning Component allows users to click a button to save their changes and then redirects them to a different page. Currently when the user hits the Save button, the records are getting saved, but they are not redirected.
Which three techniques can a developer use to debug the JavaScript? Choose 3 answers
- A . Use the browser’s dev tools to debug the JavaScript.
- B . Enable Debug Mode for Lightning components for the user.
- C . Use Developer Console to view checkpoints.
- D . Use console.log () messages in the JavaScript.
- E . Use Developer Console to view the debug log.
A developer is trying to access org data from within a test class.
Which sObject type requires the test class to have the (seeAllData=true) annotation?
- A . RecordType
- B . Profile
- C . User
- D . Report
A developer writes a lightning web component that displays a dropdown list of all custom objects in the org from which a user will select Apex method prepares and returns data to the component.
What should the developer do to determine which objects to include in the response?
- A . Check the isCustom ( ) value on the sObject describe result.
- B . Use the getCustomObject ( ) method from the Schema class.
- C . Import the list of all custom objects from @salesforce/schema.
- D . Check the getObjectType () value for Custom’ or ‘Standard’ on the sObject describe result.
How should a developer reference a third-party JavaScript library from a Lightning component?
- A . From an asset file
- B . From a document
- C . From a static resource
- D . From a third-party URL
Universal Containers (UC) calculates commissions on their Opportunities in different ways based on complex rules that vary depending on the line of business of the Opportunity.
Whenever a new line of business Is added to Salesforce at UC, it is likely that a different calculation will need to be added too. When an Opportunity’s stage is changed to Closed/Won, its commission should be calculated in real time.
What should a developer use so that different implementations of the commission calculation can be invoked on the stage change?
- A . A final dass with multiple methods
- B . Apex Describe Schema methods
- C . An Apex class with @ custom enum
- D . An Interface and implementing classes
A developer creates an application event that has triggered an infinite loop.
What may have caused this problem?
- A . The event is fired from a custom renderer.
- B . An event is fired ‘ontouchend’ and is unhandled.
- C . The event has multiple registered in the project.
- D . The event handler calls a trigger.
A developer created a Lightning web component that uses a Lightning-record-edit-force to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record.
What can the developer use to perform the validations, and allow multiple error messages to be displayed simultaneously?
- A . Apex REST
- B . External JavaScript Library
- C . Apex Trigger
- D . Process Builder
The Salesforce admin at cloud kicks created a custom object called Region_ c to store all postal zip codes in the United States and the Cloud Kicks sales region the Zip code belong to.
Object Name:
![]()
Fields:
![]()
Cloud Kicks wants a trigger on the Lead to populate the Region based on the Lead’s zip code.
Which code segment is the most efficient way to fulfill this request?
A)

B)

C)

- A . Option A
- B . Option B
- C . Option C
A developer Is asked to develop a new AppExthange application. A feature of the program creates Survey records when a Case reaches a certain stage and Is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings that apply to most customers.
What should the developer use to store and package the custom configuration settings for the app?
- A . Custom Settings
- B . Custom Metadata
- C . Custom Objects
- D . Process Builder
Universal Containers needs to integrate with a Heroku service that resizes product images submitted by users.
What are two alternatives to implement the integration and protect against malicious calls to Heroku app’s endpoint? Choose 2 answers
- A . Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data and some form of pre-shared secret key. so that the Heroku app can authenticate requests and store the resized images in Salesforce.
- B . Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data; therefore the Heroku app can automatically reply back to the callout with the resized images in Salesforce.
- C . Create a Workflow Rule with an Outbound Message and select Send Session ID so that the Heroku app can use it to send the resized images back to Salesforce.
- D . Create a Workflow Rule with an Outbound Message allowing the Heroku app to automatically store the resized images in Salesforce.