Salesforce Certified Platform Developer I practice exam

Try 5 Platform Developer I practice questions with the answer, a plain-language explanation, and a link to the official source for each one.

Try the sample questionsJoin the beta free

Free during the beta: practice this exam and 20 others for 60 days.

The real exam: 60 questions, 105 minutes, 68% to pass. Official exam guide

Try 5 sample questions

These 5 questions cover 4 of the exam's topics. Pick an answer and check it, the way you would inside TrailScout.

  1. Question 1 of 5

    Developer Fundamentals

    Northern Trail Outfitters receives partner references such as NTO-00451 from a logistics platform. The developer needs a Partner_Reference__c field on Shipment__c that the integration can use to upsert records. Which data type should the field use so it can hold these values and be marked as an External ID?

    Show the answer and explanation

    Correct answer: D. Text

    An object can have up to 25 custom auto-number, email, number, or text fields set as external IDs, and an external ID field holds record identifiers from a system outside Salesforce for update and upsert through the API. The references mix letters and digits, so a Text field fits and can be marked as an External ID. Number is the most tempting wrong choice: it is an eligible External ID type, but it can't store a value like NTO-00451.

    Read from the source: Salesforce Help : Custom Field Attributes
  2. Question 2 of 5

    Process Automation and Logic

    An after insert trigger on Order must send each new order to a shipping partner's REST API. The trigger can't wait for the partner's response, so the team puts the callout in a future method that the trigger calls once with all the new orders. Which method declaration should the developer use?

    Show the answer and explanation

    Correct answer: B. @future(callout=true) public static void sendOrders(Set<Id> orderIds)

    A future method can make callouts only when it specifies (callout=true); the default (callout=false) prevents callouts. Methods with the Future annotation must also be static, return void, and take primitives, arrays of primitives, or collections of primitives, so a Set<Id> of the new orders fits every rule. Leaving out callout=true is the tempting choice, but then the method can't call the partner's API. Salesforce now recommends Queueable Apex instead of future methods, but this team has chosen a future method.

    Read from the source: Salesforce Developers : Future Annotation
  3. Question 3 of 5

    Testing, Debugging, and Deployment

    A screen flow's Decision element has a Gold outcome, a Silver outcome, and a default outcome labeled Standard. Before activation, the admin has tested runs that reach Gold and Silver, using sample records in a sandbox. Which additional test closes the remaining gap in path coverage?

    Show the answer and explanation

    Correct answer: D. Run the flow with inputs that match neither Gold nor Silver conditions

    The Help page's path-coverage guidance says to test all possible paths and, for a Decision element, to test each outcome, even the default path. Inputs that meet neither Gold nor Silver send the run down the Standard default path. Repeating runs as another user is also on the page's checklist, under permission and access, but it doesn't exercise the untested default outcome.

    Read from the source: Salesforce Help : Testing Your Flow Before Activation
  4. Question 4 of 5

    User Interface

    An @AuraEnabled method creates an Account from values a user enters in a Lightning web component. The team's standard is to set the access mode explicitly on every database operation, and this insert must apply the running user's object permissions and field-level security. Which line meets the standard?

    Show the answer and explanation

    Correct answer: B. insert as user acc;

    To set an access mode on a DML statement, Apex places the as user or as system keywords between the DML operator and the object name, as in insert as user acc. WITH USER_MODE is the tempting choice, but that clause belongs to SOQL and SOSL queries, not DML statements.

    Read from the source: Salesforce Developers : Set an Access Mode for Database Operations
  5. Question 5 of 5

    Testing, Debugging, and Deployment

    A developer is troubleshooting a screen flow that takes the wrong Decision outcome only when one sales rep runs it. The developer wants Flow Builder's debugger to show that rep's step-by-step path by selecting Run flow as another user in the debug options. Which approach makes that option available?

    Show the answer and explanation

    Correct answer: B. Debug in a sandbox after an admin completes the one-time org setup

    The Flow Builder debugger page says Run flow as another user requires an admin to first complete a one-time org setup, and that you can debug a flow as another user only in a sandbox. Production fails the sandbox rule even after the setup. Granting View All Data is tempting because the page lists it as a required permission, but it applies to the person debugging the flow and doesn't replace the org setup.

    Read from the source: Salesforce Help : Test or Troubleshoot Flows with the Flow Builder Debugger

175 more questions are waiting.

The full Platform Developer I practice exam has 180 questions, study sessions, full-length exam simulations, and a Detour Deck that collects the questions you miss.

One free beta pass covers this exam and 20 others for 60 days.

Join the beta free today

Practice, review, and know what to study next.

  1. 1

    Answer first

    Choose an answer, then compare it with the explanation and official source.

  2. 2

    Read from the source

    Every explanation links to the official documentation it is based on.

  3. 3

    Focus where you missed

    Your results show accuracy by topic, and missed questions go to your Detour Deck.

TrailScout practice question with one answer ruled out
TrailScout explanation card with the official source and a Detour Deck button
TrailScout session result showing 75 percent and accuracy by topic
1. AnswerRule out choices, then pick your answer.2. ReviewRead why, with the official source one tap away.3. FocusSee your score by topic and what to study next.

Example screens from the Slack Administrator practice exam.

Platform Developer I exam topics

Topic weights from the official exam guide. TrailScout practice follows the same weights.

  • Process Automation and Logic28%
  • Developer Fundamentals27%
  • User Interface25%
  • Testing, Debugging, and Deployment20%

About the Platform Developer I exam

How many questions are on the Salesforce Certified Platform Developer I exam?
The official exam guide lists 60 multiple-choice questions, and you have 105 minutes to finish.
What score do you need to pass the Platform Developer I exam?
The official exam guide sets the passing score at 68%.
Are these real exam questions?
No. TrailScout writes original practice questions from the official exam guide and official product documentation, and every explanation links to the official page it is based on. They are built to practice the way the exam asks, not to copy it.
What is in the full TrailScout Platform Developer I practice exam?
180 practice questions across the topics in the exam guide, study sessions and full-length exam simulations, an explanation for every choice, source links, and a Detour Deck for the questions you miss.

Ready for the full Platform Developer I practice exam?

Join free during the beta to save your progress, see your score by topic, and keep practicing until exam day.

Join the beta free today

Studying for something else? See every exam TrailScout supports

Salesforce Platform Developer I Practice Exam: Free Sample Questions | TrailScout