dc dotCreds
Salesforce Platform Developer I Practice Test

Salesforce Platform Developer I Practice Test

Start today’s free 10-question Salesforce Platform Developer I set with source-backed explanations, local progress, and a fresh rotation every morning.

10 Free Daily Questions Source-backed Explanations 200 Verified Questions

Questions updated at Aug 24, 2026, 12:30 AM CDT

Go Pro - One Time Unlock

Unlock the full Salesforce Platform Developer I bank

200 verified questions Exam Mode Practice Mode Detailed explanations Weak-area review No subscription - one-time unlock

Get the complete source-backed bank with Interview Questions, the full Study Guide, full Course Notes, detailed explanations, weak-area review, and exam-style practice.

Interview Questions Full Study Guide Full Course Notes Exam Mode Practice Mode Guided Course Detailed explanations Weak-area review No subscription
$4.99 One-time payment
See bundle and PDF options

We will confirm your site email in one quick checkout step.

Why DotCreds?

Practice with explanations that teach.

Source links for every answer Every wrong answer explained Guided Course included Practice and Exam Mode Weak-area tracking Same verified bank across web practice

What you get with free practice

10 Free Questions Daily Fresh set every day from the live bank
Detailed Explanations Learn with clear source-backed answers
Track Your Progress Daily history and performance insights
Upgrade Anytime Unlock the full bank when you are ready
Today's 10 Salesforce Platform Developer I questions

Use this Salesforce Platform Developer I practice test to review Salesforce Platform Developer I. Questions rotate daily and each answer links back to the source used to write it.

Today’s Set
10 questions
Rotates at 10:00 AM local time
Progress
0/10
Answered on this page
Accuracy
0%
Loading countdown…

200 verified questions are in the live bank. Free daily questions are selected from a rotating sample set. Unlock Pro to access the full question bank.

Preparing today’s free questions... Ordering the final locked-bank set before showing the practice cards.
Question 1 of 10
Objective Implement Apex exception handling Process Automation and Logic (28%)

During an Apex code review, A service can recover from a known custom business condition and must return a controlled error to its caller. Which change BEST reflects intentional exception handling?

Concept tested:
Question 2 of 10
Objective Choose development and test environments Testing, Debugging, and Deployment (20%)

A team is choosing where to validate a change. An integration test requires a production-like copy of configuration and representative data. Which environment strategy is BEST?

Concept tested:
Question 3 of 10
Objective Plan Visualforce and LWC coexistence User Interface (25%)

An org is modernizing its UI. A Visualforce page is embedded in Lightning Experience and must communicate with a new LWC during transition. Which decision BEST balances supported functionality, migration risk, and current Salesforce UI guidance?

Concept tested:
Question 4 of 10
Objective Design many-to-many data models Developer Fundamentals (27%)

Product__c records can be associated with many Promotion__c records, and each Promotion__c can be associated with many Product__c records. The association itself must store attributes such as Start_Date__c and Role__c. Which data model is BEST?

Concept tested:
Question 5 of 10
Objective Debug application behavior Testing, Debugging, and Deployment (20%)

A developer is diagnosing a failure: A deployment passes tests but a post-deployment async job fails. Which FIRST approach is MOST defensible?

Concept tested:
Question 6 of 10
Objective Design for governor limits Developer Fundamentals (27%)

A shared Apex service is being designed where an invocable Apex action can be called with collections from Flow; processing must avoid per-item SOQL and DML. Which design contract is MOST important to preserve across callers?

Concept tested:
Question 7 of 10
Objective Control recursion and cascading Process Automation and Logic (28%)

A production transaction shows repeated automation. An after-update trigger updates the same object again, causing the transaction to re-enter automation and repeat work. Which corrective design is MOST robust?

Concept tested:
Question 8 of 10
Objective Choose LWC communication patterns User Interface (25%)

A component design has this communication requirement: Two components in unrelated DOM branches on a Lightning page must exchange a selected record Id. Which mechanism is the BEST fit?

Concept tested:
Question 9 of 10
Objective Choose declarative versus programmatic customization Developer Fundamentals (27%)

During solution design, the team determines that a calculated display value depends only on fields on the same record and requires no side effects. The architect wants the simplest maintainable option that satisfies the requirement without unnecessary custom code. Which implementation should be selected?

Concept tested:
Question 10 of 10
Objective Select declarative or programmatic automation Process Automation and Logic (28%)

A developer receives a requirement on Case: run a multi-step record automation with decisions, related-record updates, and fault paths, with no code-only requirement. The team wants the most maintainable implementation and does not want custom code unless the requirement needs it. Which solution is BEST?

Concept tested:
Locked preview

You are viewing today’s free 10. Unlock 190 more questions.

Unlock full bank
Daily sample Rotating practice Free daily questions are selected from a rotating sample set.
Pro bank Full access Unlock Pro to access the full question bank, Exam Mode, Practice Mode, and random tests.
Salesforce Platform Developer I Pro $4.99 one-time

Unlock all 200 Salesforce Platform Developer I questions, explanations, review tools, and exam-style practice.

50 Exam Practice Test $1.99 one-time

A 50-question Salesforce Platform Developer I PDF for short review sessions. Questions come first, then the answer review and explanations later in the file.

Business / License Access Bundle $4.99/month

Project management, licensing, and career-change practice in one monthly unlock.

What’s includedCAPM, PMP, PMI-ACP, PMI-RMP, CompTIA Project+, Salesforce Certified Platform Administrator, Salesforce Platform Developer I, HRCI aPHR, HRCI PHR, HRCI SPHR, SHRM-SCP, Series 6, Series 24, Series 65, Series 66, Series 79, IRS Enrolled Agent Parts 1–3, IMA CMA Parts 1–2, NASCLA Commercial Contractor, NASCLA Master Electrician, OSHA 30-Hour Construction, EPA Section 609 MVAC, NMLS SAFE MLO, Life Insurance, Real Estate License, CDL Permit, Scrum Master

Choose an unlock option to continue. We will confirm your site email in one quick checkout step.

Secure checkout powered by Stripe. Source-backed questions. Not brain dumps. Checkout stays on this page and unlocks the same Pro builder on this practice page.

Purchase options

Unlock the full Salesforce Platform Developer I bank.

Get the full bank, Exam Mode, Practice Mode, question sets, random tests, readiness tracking, saved box scores, and review tools for this exam.

The PDF versions keep questions first and move the answer review, explanations, and distractor notes to the back of the file.

200 verified exam-style questions Every choice explained Exam Mode and Practice Mode Question sets and random tests Readiness score and trends Previous test box scores

You've answered 0/10 questions in today's set.

Locked: 190 more questions in the full bank.

Locked: exam simulation mode, practice mode, readiness tracking, and saved review history.

Checkout stays on this page, so you can keep practicing, unlock the full bank, and start Exam Mode or Practice Mode when you are ready.

Cheat Sheets

7-day score keeper

Answer questions today and this will become a rolling 7-day scorecard.

Local history
Optional progress sync

Keep today’s practice moving

Guest progress saves automatically on this device. Add an email later when you want a magic link that keeps your daily Salesforce Platform Developer I practice in sync across browsers.

Guest progress saves on this device automatically

Guest progress is available without an account.

Source-backed answer review

The free daily Salesforce Platform Developer I set includes crawlable question text, answer choices, correct answer labels, objective mapping, and source links. Only the first SEO card includes answer explanations and any extra learning features. Pro-only bank questions stay locked; this section mirrors only the 10 free daily questions already shown on this page.

Question 1 During an Apex code review, A service can recover from a known custom business condition and must return a controlled error to its caller. Which change BEST reflects intentional exception handling?

Answer choices

  1. A. Use a purpose-specific custom exception and handle it at the boundary that can recover or translate it.
  2. B. Rely on governor-limit exceptions as the normal mechanism for stopping work.
  3. C. Convert every failure into a boolean false without preserving error context.
  4. D. Catch Exception and do nothing so the transaction can continue.

Correct answer

Use a purpose-specific custom exception and handle it at the boundary that can recover or translate it.

The best design handles expected failure modes at a boundary that can respond meaningfully while preserving unexpected failure semantics and diagnostic context.

Wrong-answer review

  • B. Rely on governor-limit exceptions as the normal mechanism for stopping work.: Governor-limit failures indicate a bad resource design, not a normal application control-flow strategy.
  • C. Convert every failure into a boolean false without preserving error context.: Flattening all errors removes useful diagnostic and semantic information.
  • D. Catch Exception and do nothing so the transaction can continue.: Silently swallowing exceptions hides failed business behavior and makes diagnosis unreliable.

Extra learning features

Interview question

Q: What makes an Apex exception-handling design intentional rather than simply catching `Exception` everywhere? Strong answer: Use a specific or custom exception when it represents a meaningful failure contract, and catch it only at a boundary that can recover, translate it for the caller, or add useful context. Preserve unexpected failures rather than swallowing them, and avoid using exceptions for normal control flow. Limit failures are prevented by design; exception handling is not a governor-limit strategy.

  • specific/custom exception
  • recover or translate at a meaningful boundary
  • preserve diagnostic context
  • do not swallow unexpected failures
  • exceptions not normal control flow

Caution: A catch-all that returns success or hides the original problem is not robust error handling.

Objective/domain: Process Automation and Logic (28%)

Source: Get a Refresh on SOQL, SOSL, and DML

Question 2 A team is choosing where to validate a change. An integration test requires a production-like copy of configuration and representative data. Which environment strategy is BEST?

Answer choices

  1. A. Use production as the first environment because it has the most accurate data.
  2. B. Choose an environment only by storage capacity; metadata and data fidelity do not matter.
  3. C. Use the same empty scratch org for every integration/UAT scenario regardless of required data/configuration.
  4. D. Use an appropriate sandbox rather than a fresh empty scratch org

Correct answer

Use an appropriate sandbox rather than a fresh empty scratch org

Objective/domain: Testing, Debugging, and Deployment (20%)

Source: Review Debugging and Deployment

Question 3 An org is modernizing its UI. A Visualforce page is embedded in Lightning Experience and must communicate with a new LWC during transition. Which decision BEST balances supported functionality, migration risk, and current Salesforce UI guidance?

Answer choices

  1. A. Ignore any security defects until the LWC rewrite is finished.
  2. B. Keep the Visualforce page during the transition and use Lightning Message Service for supported communication with the LWC.
  3. C. Rewrite every page simultaneously because Visualforce is unsupported in Lightning Experience.
  4. D. Disable the Visualforce page first so users are forced onto the unfinished replacement.

Correct answer

Keep the Visualforce page during the transition and use Lightning Message Service for supported communication with the LWC.

Objective/domain: User Interface (25%)

Source: Migrate Events

Question 4 Product__c records can be associated with many Promotion__c records, and each Promotion__c can be associated with many Product__c records. The association itself must store attributes such as Start_Date__c and Role__c. Which data model is BEST?

Answer choices

  1. A. Add a single lookup from Product__c to Promotion__c.
  2. B. Use Promotion_Product__c as the junction between Product__c and Promotion__c.
  3. C. Add a multi-select picklist on Product__c listing Promotion__c values.
  4. D. Store comma-separated Promotion__c record IDs in a text field on Product__c.

Correct answer

Use Promotion_Product__c as the junction between Product__c and Promotion__c.

Objective/domain: Developer Fundamentals (27%)

Source: Create Object Relationships

Question 5 A developer is diagnosing a failure: A deployment passes tests but a post-deployment async job fails. Which FIRST approach is MOST defensible?

Answer choices

  1. A. Rewrite the suspected component before reproducing the failure.
  2. B. Inspect the async-job evidence and reproduce the affected configuration/data path before changing the deployment.
  3. C. Add retries around every operation and assume intermittent errors will disappear.
  4. D. Increase governor limits in Setup and rerun the transaction.

Correct answer

Inspect the async-job evidence and reproduce the affected configuration/data path before changing the deployment.

Objective/domain: Testing, Debugging, and Deployment (20%)

Source: Review Debugging and Deployment

Question 6 A shared Apex service is being designed where an invocable Apex action can be called with collections from Flow; processing must avoid per-item SOQL and DML. Which design contract is MOST important to preserve across callers?

Answer choices

  1. A. Accept collections, use set-based SOQL, accumulate changes, and execute collection DML.
  2. B. Require every caller to invoke the service once per record so the method can stay simple.
  3. C. Detect the caller type and disable governor limits for trusted entry points.
  4. D. Serialize each record to JSON before processing so each iteration receives independent limits.

Correct answer

Accept collections, use set-based SOQL, accumulate changes, and execute collection DML.

Objective/domain: Developer Fundamentals (27%)

Source: Review Developer Fundamentals

Question 7 A production transaction shows repeated automation. An after-update trigger updates the same object again, causing the transaction to re-enter automation and repeat work. Which corrective design is MOST robust?

Answer choices

  1. A. Make the update idempotent and guard re-entry based on the relevant state change.
  2. B. Disable all other automation on the object and keep only the trigger.
  3. C. Use one static Boolean set to true after the first record is processed.
  4. D. Catch the eventual governor-limit exception and retry the transaction asynchronously.

Correct answer

Make the update idempotent and guard re-entry based on the relevant state change.

Objective/domain: Process Automation and Logic (28%)

Source: Study Up on Apex Classes and Triggers

Question 8 A component design has this communication requirement: Two components in unrelated DOM branches on a Lightning page must exchange a selected record Id. Which mechanism is the BEST fit?

Answer choices

  1. A. Query the database from both components until they happen to observe the same value.
  2. B. Write the value into a global window variable and have other components poll it.
  3. C. Publish/subscribe through Lightning Message Service
  4. D. Mutate a child component’s private property directly from an unrelated component.

Correct answer

Publish/subscribe through Lightning Message Service

Objective/domain: User Interface (25%)

Source: Communicate with Events

Question 9 During solution design, the team determines that a calculated display value depends only on fields on the same record and requires no side effects. The architect wants the simplest maintainable option that satisfies the requirement without unnecessary custom code. Which implementation should be selected?

Answer choices

  1. A. Apex
  2. B. Lightning Web Component
  3. C. Formula field
  4. D. Flow

Correct answer

Formula field

Objective/domain: Developer Fundamentals (27%)

Source: Review Developer Fundamentals

Question 10 A developer receives a requirement on Case: run a multi-step record automation with decisions, related-record updates, and fault paths, with no code-only requirement. The team wants the most maintainable implementation and does not want custom code unless the requirement needs it. Which solution is BEST?

Answer choices

  1. A. Record-triggered Flow
  2. B. Formula field
  3. C. Apex
  4. D. Lightning Web Component

Correct answer

Record-triggered Flow

Objective/domain: Process Automation and Logic (28%)

Source: Review Declarative Features and Basic Constructs in Apex

Where to go after the daily web set

How are Salesforce Platform Developer I questions generated?

dotCreds builds Salesforce Platform Developer I practice questions from public exam objectives and Salesforce exam and documentation references. The questions are written for realistic study practice, not copied from exam dumps.

How are explanations sourced?

Each question includes an explanation and, when available, a source link back to the provider documentation or reference used to validate the answer. That keeps the practice tied to study material you can actually review.

What score do I get?

The page tracks today's answered count and accuracy for the 10-question daily set, then saves a 7-day score history on this device so you can see your recent practice trend.

Why use this site?

The site is the fastest way to start Salesforce Platform Developer I practice without installing anything. It is built for daily recall, quick weak-topic discovery, and source-backed explanations you can review immediately.