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.
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?
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)
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?
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?
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.
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?
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?
A developer is writing an Apex trigger on the `Case` object. The trigger needs to execute different logic based on whether the record was created from the UI or through a data load via the API. Which Apex method can be used within the trigger to determine the execution context?
A consultant is deploying a change set from a Developer Sandbox to a Full Sandbox for user acceptance testing (UAT). The change set contains Apex classes, triggers, and a custom object. The deployment fails due to test failures. Upon investigation, the developer finds that the failing tests rely on specific Account and Contact records that exist in the Developer Sandbox but not in the Full Sandbox. What is the best practice for resolving this issue?
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.