Salesforce certification preparation

PDII Practice Questions

Practice exam-style questions, check your answers, and review explanations and source references where they are available.

Exam
PDII
Provider
Salesforce
Full set
201 questions
Last Update Check

The PDII exam validates your expertise and represents a key milestone in your certification path. This exam assesses your ability to design, build, and optimize solutions using core platform features. Whether you are advancing your career or deepening your technical foundation, we provide a structured study roadmap and practical resources to help you prepare effectively. You can start by taking our free PDII practice quiz, which includes full answer explanations, or upgrade to our premium PDII exam simulator.

What is the optimal way to fix this? A) Salesforce Platform Developer - PDII question B) Salesforce Platform Developer - PDII question C) Salesforce Platform Developer - PDII question D) Salesforce Platform Developer - PDII question
Answer options
Refer to the test method below: Salesforce Platform Developer - PDII question The test method calls an @future method that increments the Number_of_Times_Viewed__c value. The assertion is failing because the Number of Times Viewed_c equals 0. What is the optimal way to fix this?
Answer options

Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates? Choose 3 answers

Answer options
A user receives the generic "An internal server error has occurred” while interacting with a custom Lightning component. What should the developer do to ensure a more meaningful message?
Answer options
A developer is asked to develop a new AppFxchange 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?
Answer options
Consider the controller code below that is called from an Aura component and returns data wrapped in a class. Salesforce Platform Developer - PDII question The developer verified that the queries return a single record each and there is error handling in the Aura component, but the component is not getting anything back when calling the controller getSemeData. ‘What is wrong?
Answer options
Universal Containers implements a private sharing model for the Convention Attendee co custom object. As part of a new quality assurance effort, the company created an Event_Reviewer_c user lookup field on the object. Management wants the event reviewer to automatically gain ReadWrite access to every record they are assigned to. What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record?
Answer options
Universal Containers develops a Visualforce page that requires the inclusion of external JavaScript and C55 files. They want to ensure efficient loading and caching of the page. Which feature should be utilized to achieve this goal?
Answer options
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?
Answer options
A company has a Lightning page with many Lightning Components, some that cache reference dat a. It is reported that the page does not always show the most current reference data. What can a developer use to analyze and diagnose the problem in the Lightning page?
Answer options
Question 1 of 10

Source context

How this practice set is maintained

Maintained by the CertMage content team, this page loads questions from the exam dataset connected to its preparation resource. When an answer includes a supporting reference, it is shown with that answer so you can review the underlying vendor documentation.

Certification objectives, interfaces, and vendor services can change. Verify important details against the provider's current exam guide and documentation before your exam.

Scroll to Top