Free PDI sample questions

Real questions from the Salesforce Certified Platform Developer I practice bank, with the correct answer and an explanation for each one. No junk, no filler.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 10 of 20 free sample questions.

Question 1Choose one

A financial services company has a requirement to prevent the deletion of any Opportunity record with a 'Closed Won' status by any user except those with a 'System Administrator' profile. A junior developer suggests creating a validation rule. As the senior developer, what is the most robust and secure approach to meet this requirement?

Question 2Choose one

A developer needs to create a Visualforce page that displays a list of Contact records. The page should allow users to select multiple contacts via checkboxes and then perform a bulk update on a custom field, `Status__c`, for all selected records. Which combination of Visualforce components and controller logic is best suited for this requirement?

Question 3Choose one

A developer is writing a test class for an Apex trigger that fires on `after update` of Account records. The trigger makes a callout to an external service. The test method fails with an `System.CalloutException: You have uncommitted work pending.` error. The developer has already implemented a mock callout. What is the cause of this error in a test context?

Question 4Choose one

A university is building a student management application. They have custom objects for `Student__c`, `Course__c`, and `Enrollment__c`. A student can enroll in many courses, and a course can have many students. The `Enrollment__c` object represents a student's enrollment in a specific course and contains details like `Grade__c` and `Semester__c`. When a `Student__c` record is deleted, all their related `Enrollment__c` records must also be deleted. Which data model correctly represents this relationship?

Question 5Choose 3

A developer is tasked with creating a nightly batch job that processes all `Order__c` records marked as 'Pending Fulfillment'. The job must aggregate line items for each order, calculate a total shipping weight, and update a `Total_Weight__c` field on the `Order__c` record. The org contains millions of `Order__c` records. Which Apex features are essential for building a scalable and efficient solution? (Select THREE)

Question 6Choose one

A developer is building a custom Aura component that needs to display a list of related `Case` records on an `Account` record page. To optimize performance, the developer wants to fetch the data from the server only when the component is first rendered. Where should the developer place the call to the Apex controller method to fetch the case data?

Question 7Choose one

A developer uses the Developer Console to execute a SOQL query. The query returns 50,001 rows from the Account object. What will be the outcome?

Question 8Choose one

True or False: Using the `with sharing` keyword on an Apex class guarantees that a user can only see records they have explicit access to via sharing rules, regardless of their object-level permissions.

Question 9Choose one

A developer needs to write a SOQL query to retrieve `Account` records along with all of their related `Contact` records. The query should be executed within an Apex class. What is the correct syntax for this parent-to-child query?

Question 10Choose one

A retail company uses a custom `Shipment__c` object that has a Master-Detail relationship with the standard `Account` object. A developer needs to create a field on the `Account` object that displays the date of the most recent `Shipment__c` record. What is the most efficient way to implement this without writing any Apex code?

10 more free samples are waiting

Create a free account to unlock the whole PDI sample bank, or get full access to all 200 practice questions in the simulator.

Create account