50 salesforce platform developer 1 practice exam Practice Questions: Question Bank 2025
Build your exam confidence with our curated bank of 50 practice questions for the Salesforce Platform Developer I certification. Each question includes detailed explanations to help you understand the concepts deeply.
Question Banks Available
Current Selection
Extended Practice
Extended Practice
Why Use Our 50 Question Bank?
Strategically designed questions to maximize your exam preparation
50 Questions
A comprehensive set of practice questions covering key exam topics
All Domains Covered
Questions distributed across all exam objectives and domains
Mixed Difficulty
Easy, medium, and hard questions to test all skill levels
Detailed Explanations
Learn from comprehensive explanations for each answer
Practice Questions
50 practice questions for Salesforce Platform Developer I
An Apex method is called from a Lightning component and needs to return a list of Accounts. The method must be usable in Lightning and must not modify data. What annotation should the developer add to the method?
A developer creates a new custom object and wants its records to be automatically deleted when the parent Account is deleted. Which relationship type should be used from the child object to Account?
A developer needs to prevent users from saving an Opportunity when the Close Date is in the past. Which declarative tool should be used?
A developer is troubleshooting an Apex trigger and wants to see debug output in the Developer Console. What must be configured so System.debug statements are captured?
A developer writes an Apex trigger that needs to update a field on related child records whenever a parent record changes. The update must work for bulk updates and avoid exceeding governor limits. Which approach is recommended?
A Lightning Web Component displays a list of Contacts. The developer wants the list to update automatically when new Contacts are created without the user refreshing the page. Which solution best supports this requirement with minimal custom code?
A developer creates a custom Apex exception class and wants to display a user-friendly message to the user in a Lightning component when validation fails in Apex. What is the recommended way to surface a handled error message from Apex to Lightning?
A developer adds a new required field to an existing object that already has many records. Users report they can no longer save edits to existing records because the new field is blank. Which solution allows existing records to be edited while still ensuring the field is populated going forward?
A trigger on Case updates related Contact records. During a bulk data load, the transaction intermittently fails with "Too many SOQL queries: 101". The developer claims the trigger is bulkified because it uses a single SOQL query, but the error persists. Which scenario most likely explains the issue?
A developer is writing unit tests for an Apex class that makes an HTTP callout to an external service to validate an address. The tests must run in an isolated environment and cannot perform real callouts. What should the developer do?
A developer needs to ensure that when a user deletes an Account, all related custom child records (stored in a custom object) are also deleted automatically. Which relationship type should be used between the custom object and Account?
A team is building a Lightning record page and wants to show a related list-like view of child records with inline editing and sorting without writing Apex. Which component should they use?
A developer is asked to restrict an Apex class so it can be executed only by users with a specific permission. Which approach is recommended?
A developer writes a trigger on Opportunity that updates a field on related Account records. In a bulk update of 200 Opportunities, the code throws a "Too many SOQL queries" error. What is the most likely cause?
An LWC needs to display a list of Cases related to the current Account and refresh automatically after a new Case is created by a separate component. Which approach best supports refresh without reloading the page?
A developer needs to expose a custom Apex method to Lightning Web Components and ensure the response can be cached for improved performance. What annotation should be used on the Apex method?
A developer is implementing a record-triggered Flow that updates related records. The Flow sometimes fails with record-locking errors when many users update the same parent record concurrently. What is a recommended mitigation?
An org has a custom object Invoice__c with a field Total__c that should always equal the sum of related Invoice_Line__c.Amount__c records. Users need real-time values on reports and list views, and there can be many line items. Which solution is most appropriate?
A developer is writing a test for an Apex class that makes an HTTP callout to an external service. The test fails because callouts are not allowed in tests. What is the correct way to test the callout logic?
A developer builds a trigger that updates related records and also calls a helper class that performs additional DML. In production, users sometimes see "Maximum trigger depth exceeded" errors. What is the best design change to prevent recursive trigger execution?
A developer needs to store a small configuration value that is referenced in Apex and can be changed without deploying code. The value is specific to each environment (sandbox vs. production). What should the developer use?
A developer is building a Lightning record page component and needs the component to automatically receive the current record's Id and react when it changes (for example, when navigating between records). Which approach should be used?
A developer has a custom object Invoice__c with a master-detail relationship to Account. Users report they cannot change the owner of an Invoice__c record. What is the reason?
An LWC calls an Apex method imperatively to save data. The developer wants to display a user-friendly error message when the Apex method throws an exception. What is the recommended way to propagate handled errors from Apex to LWC?
A developer needs to ensure that when an Opportunity is marked Closed Won, all related open Tasks are automatically closed. The solution must work for updates made by API integrations and bulk data loads. Which automation approach best meets this requirement?
A developer wrote the following Apex code and receives the error 'Illegal assignment from List<Account> to Account': Account a = [SELECT Id, Name FROM Account LIMIT 10]; How should the code be corrected?
A developer is creating a Lightning Web Component that displays a list of Accounts and must refresh automatically after an Account is updated by a different component on the same page. The list data is retrieved via @wire(getAccounts). What should the developer use to refresh the wired data after the update completes?
A trigger on Case performs DML updates to related Contact records. During a data load, the org hits the 'Too many SOQL queries: 101' limit. The developer observes a SOQL query inside a for-loop that iterates over Trigger.new. What is the best practice fix?
A developer has a requirement to roll up the total Amount of all Opportunity records (including those owned by other users) to a custom field on Account. The relationship between Account and Opportunity is lookup (not master-detail) and cannot be changed. What is the most appropriate declarative/programmable solution?
A developer needs to deploy changes that include new Apex classes, unit tests, and a new custom object to production using change sets. The deployment fails because some Apex tests fail intermittently due to reliance on existing org data. Which change is the best practice to stabilize the tests?
A developer needs to prevent users from creating duplicate Contacts with the same Email value. The rule should work across all channels (UI, API, import) and be configurable without code. What should the developer recommend?
An Apex method calls out to an external REST service and needs to be invoked from a Lightning Web Component. The callout can take several seconds and should not block the UI. Which approach is recommended?
A Lightning Web Component displays data from an Apex @AuraEnabled method. Users report that recently updated records are not reflected unless they hard refresh the browser. What is the best practice to ensure fresh server data is returned when needed?
A developer is building a record-triggered Flow that updates fields on the same record. The Flow must run as fast as possible and avoid unnecessary DML. Which Flow type is most appropriate?
A developer needs to enforce that an Opportunity Close Date cannot be in the past when Stage is set to 'Closed Won'. Which solution best meets the requirement with minimal code?
A developer writes an Apex trigger that needs to work for insert and update. It must handle up to 200 records and avoid SOQL inside loops. Which pattern is most appropriate?
An org uses a custom object Invoice__c with a Master-Detail relationship to Account. The business needs to allow reparenting an Invoice__c record to a different Account after creation and keep roll-up summaries working. What should the developer do?
A developer creates an Apex test that inserts a record and then enqueues a Queueable job to process it. The developer needs to assert changes made by the Queueable within the test. What should the test do?
A developer needs to load 50,000 records into a custom object nightly from an external system. The process must be resilient and avoid hitting governor limits or request timeouts. What architecture is most appropriate?
A developer implements a trigger that updates related records. During testing, the trigger causes a 'maximum trigger depth exceeded' error. What is the best way to prevent this while keeping logic maintainable?
A developer is asked to create a quick data entry screen for a custom object record that users can access from a Lightning record page without navigating away. Which solution meets the requirement with the least code?
A developer needs to ensure that every Contact has either an Email or a Phone value before it can be saved. The requirement must apply to all data entry methods (UI, API, data loads). What should the developer use?
Which statement about External IDs is true in Salesforce data modeling?
A Lightning Web Component uses a wired Apex method annotated with @AuraEnabled(cacheable=true) to load data. Users report that after editing a record, the LWC still shows old values until they refresh the page. What should the developer do to show fresh data immediately after the edit completes?
A developer writes an Apex trigger on Opportunity that updates related Account fields. During bulk data loads, the trigger occasionally throws a "Too many SOQL queries" error. Which change is the best practice to prevent this?
A developer needs to restrict users from seeing certain fields on a Lightning record page based on their job function. Which approach is recommended and enforces security at the platform level (not just UI rendering)?
A developer needs to create related child records whenever an Order is created, but only if the user selects specific options during data entry. The solution should guide the user through choices and then create multiple records in a single transaction. Which solution best fits?
A developer is writing a unit test for an Apex class that performs callouts. The class uses Http.send() to invoke an external endpoint. What must the developer do to ensure the test runs successfully without making a real callout?
A developer deploys an unlocked package to multiple orgs. After installation, admins in a subscriber org report that a custom permission included in the package is not granting access to a packaged Apex class as expected. The class is declared "public". What should the developer do to enable access control using custom permissions for the class?
A developer is building a Lightning Web Component for a record page that must display fields the current user can access and must respect both object permissions and field-level security when loading data from Apex. Which design best ensures compliance with Salesforce security requirements?
Need more practice?
Expand your preparation with our larger question banks
Salesforce Platform Developer I 50 Practice Questions FAQs
salesforce platform developer 1 practice exam is a professional certification from Salesforce that validates expertise in salesforce platform developer i technologies and concepts. The official exam code is DEV-450.
Our 50 salesforce platform developer 1 practice exam practice questions include a curated selection of exam-style questions covering key concepts from all exam domains. Each question includes detailed explanations to help you learn.
50 questions is a great starting point for salesforce platform developer 1 practice exam preparation. For comprehensive coverage, we recommend also using our 100 and 200 question banks as you progress.
The 50 salesforce platform developer 1 practice exam questions are organized by exam domain and include a mix of easy, medium, and hard questions to test your knowledge at different levels.
More Preparation Resources
Explore other ways to prepare for your certification