Practice questions for the Salesforce Certified Platform Developer (Plat-Dev-201) exam, organised by the official exam guide sections and weights, with explanations and links to the documentation. See your readiness per section. Free to start.
Practice for the Salesforce Certified Platform Developer exam, weighted by the official exam guide.
For developers with 1-2 years of development experience and at least 6 months on the Salesforce Platform who build custom business logic and interfaces with Apex, Lightning Web Components, Flow and Visualforce, and test, debug and deploy that code.
The real exam: 60 questions (5 unscored), 105 minutes. Passing score: 68%.
Why does the Apex runtime enforce governor limits?
Answer: A. Apex runs in a multitenant environment with shared resources
Apex runs in a multitenant environment, so the runtime enforces limits to stop runaway code or processes from monopolising shared resources. Exceeding a limit throws an exception that can't be handled.
A developer's trigger runs a SOQL query inside a for loop over Trigger.new. A data load inserts 300 Accounts in one call. What is the most likely result?
Answer: A. The load fails with a too many SOQL queries limit error
Each SOQL query inside the loop counts toward the synchronous limit of 100 queries per transaction, so a loop over many records exceeds it and throws a LimitException that can't be caught. Salesforce does not rewrite queries for you. Records over 200 are processed in batches of 200 and the trigger fires per batch, but all batches share the transaction's limits, and the failure rolls back the whole call, not just part of it.
A Lightning web component must call an Apex method with @wire. What must the Apex method have?
Answer: A. @AuraEnabled(cacheable=true)
To wire an Apex method, it must be annotated @AuraEnabled(cacheable=true), so the client cache can be checked before a server call. Imperative calls can work without cacheable. @InvocableMethod is for Flow and other invocable callers, and @RemoteAction is for Visualforce JavaScript remoting.
Start practising Platform Developer
60 questions (5 unscored) in 105 minutes. Passing score: 68%.
For developers with 1-2 years of development experience and at least 6 months on the Salesforce Platform who build custom business logic and interfaces with Apex, Lightning Web Components, Flow and Visualforce, and test, debug and deploy that code.
The exam guide has 4 sections: Developer Fundamentals (27%), Process Automation and Logic (28%), User Interface (25%), Testing, Debugging, and Deployment (20%).
Answer practice questions organised by the official exam guide sections and weights. Every question has an explanation and a link to the documentation, and CramForce shows your readiness per section. You can try a few questions without an account, and keep practising free once you sign up.