Sample questions
Salesforce Certified Platform Developer I (SALESFORCE-PD1) practice questions
Which primitive data type in Apex can represent a specific point in time, including both date and time values?
A developer needs to iterate over a map of Account IDs to Account sObjects and perform processing on each value. Which loop construct is valid Apex?
A developer creates an Apex trigger that updates related Contact records whenever an Account record is updated. The trigger performs a DML operation on the Contacts. During testing…
A developer is configuring a Lightning Web Component that uses the Lightning Message Service (LMS). Which module must be imported to publish a message on a message channel?
What happens if a developer creates a test method that does not contain any assertions?
A developer creates a custom LWC that wraps child components. The developer needs to pass styling from the parent component into specific slots of the child component. Which CSS se…
A developer needs to execute a lightweight background task that does not require complex chaining or monitoring. Which asynchronous feature is easiest to implement for a single met…
Which TWO methods are available on the Database class for performing DML operations with partial success capability? Choose 2 options.
A developer writes an Apex method that executes a SOQL query inside a for-loop over a list of 200 Account records. Which governor limit is most likely to be immediately breached?
A developer is writing a test class for an Apex trigger and needs to insert test Account records. Best practices recommend bypassing hardcoded IDs. Which annotation should be place…
Which type of Apex trigger context variable returns a list of new versions of the sObject records?
Which Apex data type is best suited for storing monetary amounts with high precision?
A developer is writing a test method that performs a callout to an external REST service. Which interface must the developer implement to provide mock responses during the unit tes…
Which THREE data types are primitive data types supported in Apex? (Choose three.)
A developer wants to ensure that specific test data is available to all test methods in a class without recreating it. Which method should be used?
A developer writes an Apex trigger that performs a SOQL query inside a standard for-loop processing Trigger.new. Which governor limit is most likely to be exceeded?
A developer has a requirement to pass a complex SObject list containing parent and child records into an asynchronous method for further processing. Which asynchronous feature supp…
Which feature allows administrators to invoke an Apex method from a Flow?
If a developer uses 'SeeAllData=true' in a test class, what are the primary risks?
When using the Salesforce CLI to deploy, what is the 'check-only' flag used for?
When testing asynchronous Apex, how do you ensure that the scheduled job has finished before asserting results?
How can a developer identify the most time-consuming SOQL query in a transaction?
When evaluating whether to use Flow Builder or an Apex trigger for record automation, which scenario best justifies choosing an Apex trigger over a Record-Triggered Flow?
Which of the following describes the behavior of Test.stopTest()?