All Practice Exams

200+ Free Salesforce Developer Practice Questions

Pass your Salesforce Platform Developer I (PDI) exam on the first try — instant access, no signup required.

✓ No registration✓ No credit card✓ No hidden fees✓ Start practicing immediately
~60-70% Pass Rate
200+ Questions
100% Free
1 / 200
Question 1
Score: 0/0

What is the maximum number of SOQL queries that can be issued in a synchronous Apex transaction?

A
B
C
D
to track
2026 Statistics

Key Facts: Salesforce Developer Exam

~60-70%

First-Attempt Pass Rate

Industry estimate

68%

Passing Score

Salesforce

80-100 hrs

Study Time

Recommended

$85-130K

Median Salary Range

Industry data

$200

Exam Fee

Salesforce

55%

Core Domains

Fundamentals + Process

The Salesforce Platform Developer I (PDI) has an estimated 60-70% pass rate with proper preparation. The exam contains 60 scored questions plus 5 unscored, with 105 minutes to complete. You need 68% (41 correct answers) to pass. Process Automation & Logic (28%) and Developer Fundamentals (27%) together comprise 55% of the exam. Platform Developers earn $85,000-130,000 depending on experience and location.

Sample Salesforce Developer Practice Questions

Try these sample questions to test your Salesforce Developer exam readiness. Each question includes a detailed explanation. Start the interactive quiz above for the full 200+ question experience with AI tutoring.

1What is the maximum number of SOQL queries that can be issued in a synchronous Apex transaction?
A.50
B.100
C.150
D.200
Explanation: In synchronous Apex, you can issue up to 100 SOQL queries per transaction. For asynchronous Apex (Batch, Scheduled, etc.), this limit increases to 200. These governor limits are enforced by the platform to ensure shared resources are used fairly across all tenants.
2Which Apex data type is most appropriate for storing a collection of unique elements where order does not matter?
A.List
B.Set
C.Map
D.Array
Explanation: A Set is the correct choice for storing unique elements where order does not matter. Sets automatically enforce uniqueness and do not guarantee ordering. Lists maintain insertion order and allow duplicates. Maps store key-value pairs. Array is an alternate name for List in Apex.
3What is the maximum number of DML statements allowed in a single synchronous Apex transaction?
A.100
B.150
C.200
D.250
Explanation: Apex allows up to 150 DML statements in a synchronous transaction. For asynchronous Apex, this limit is 200. To avoid hitting this limit, use bulk DML operations (e.g., insert listOfRecords instead of inserting records one by one in a loop).
4Which keyword is used to declare a variable that can be accessed by all methods within a class?
A.private
B.protected
C.public
D.global
Explanation: The "public" keyword makes a variable accessible to all methods within the class and to other classes. Private variables are only accessible within the declaring class. Protected is accessible to the declaring class and subclasses. Global provides the broadest access across all Apex code.
5What is the result of the following Apex code: List<String> names = new List<String>{'Alice', 'Bob', 'Alice'}; Set<String> uniqueNames = new Set<String>(names); System.debug(uniqueNames.size());
A.2
B.3
C.4
D.Compilation error
Explanation: The Set will contain only 2 elements because Sets automatically eliminate duplicates. When the List with values ['Alice', 'Bob', 'Alice'] is passed to the Set constructor, the duplicate 'Alice' is removed, leaving only 'Alice' and 'Bob'.
6Which SOQL keyword is used to retrieve records from the recycle bin?
A.ALL ROWS
B.WITH SHARING
C.QUERY ALL
D.INCLUDE DELETED
Explanation: The ALL ROWS keyword in SOQL retrieves all records including deleted records (those in the recycle bin). To query only deleted records, add "WHERE IsDeleted = true". This is useful for undelete operations or auditing.
7What is the maximum heap size for synchronous Apex transactions?
A.3 MB
B.6 MB
C.12 MB
D.15 MB
Explanation: Synchronous Apex has a heap size limit of 6 MB. Asynchronous Apex (Batch, Scheduled, Queueable, Future) has a higher limit of 12 MB. The heap size includes all objects created during the transaction.
8Which Apex collection type stores data as key-value pairs?
A.List
B.Set
C.Map
D.Array
Explanation: Maps store data as key-value pairs, where each unique key maps to a single value. Keys must be unique, but values can be duplicated. Lists and Sets do not use key-value pairs. Array is simply another name for List in Apex.
9What happens when you exceed a governor limit in Apex?
A.The code continues with a warning logged
B.The transaction is immediately terminated and an exception is thrown
C.The platform automatically retries the operation
D.The limit is temporarily increased for that transaction
Explanation: When a governor limit is exceeded, the transaction is immediately terminated and a System.LimitException is thrown. This cannot be caught with try-catch blocks. Governor limits are hard limits enforced by the platform to ensure resource fairness.
10Which DML operation should be used to restore a deleted record from the recycle bin?
A.insert
B.update
C.undelete
D.restore
Explanation: The undelete DML operation restores records that have been deleted (are in the recycle bin). This is a unique DML operation in Apex specifically designed for recovering deleted records. There is no "restore" DML statement.

About the Salesforce Developer Exam

The Salesforce Platform Developer I (PDI) exam validates your expertise in developing custom business logic and interfaces using Apex, Visualforce, and Lightning Platform programmatic capabilities. The exam covers Developer Fundamentals (27%), Process Automation & Logic (28%), User Interface (23%), and Testing/Debugging/Deployment (22%). This credential demonstrates your ability to design, develop, test, and deploy programmatic solutions on the Salesforce platform.

Questions

60 scored questions

Time Limit

105 minutes

Passing Score

68%

Exam Fee

$200 (Salesforce)

Salesforce Developer Exam Content Outline

27%

Developer Fundamentals

Apex basics, data types, variables, collections, DML operations, SOQL, SOSL, and governor limits

28%

Process Automation & Logic

Apex triggers, trigger contexts, validation with Apex, async Apex (batch, scheduled, queueable, future), and automation tools comparison

23%

User Interface

Visualforce pages, controllers, extensions, Lightning components basics, LWC fundamentals, and platform events

22%

Testing, Debugging & Deployment

Apex testing framework, test classes, code coverage, debug logs, deployment tools, change sets, and metadata API

How to Pass the Salesforce Developer Exam

What You Need to Know

  • Passing score: 68%
  • Exam length: 60 questions
  • Time limit: 105 minutes
  • Exam fee: $200

Keys to Passing

  • Complete 500+ practice questions
  • Score 80%+ consistently before scheduling
  • Focus on highest-weighted sections
  • Use our AI tutor for tough concepts

Salesforce Developer Study Tips from Top Performers

1Master Developer Fundamentals (27%) — focus on Apex syntax, collections (List, Set, Map), DML operations, and SOQL queries
2Understand Process Automation (28%) deeply — know when to use Apex triggers vs Flow, and master all async Apex types (batch, scheduled, queueable, future)
3Practice writing test classes — you need 75%+ code coverage knowledge for the Testing domain (22%)
4Study governor limits thoroughly — know SOQL query limits, DML row limits, and CPU time limits
5Learn deployment tools — understand change sets, metadata API, and unlocked packages
6Build real projects in Developer Edition — create triggers, batch classes, and Visualforce pages from scratch
7Complete 200+ practice questions and score 80%+ consistently before scheduling your exam

Frequently Asked Questions

What is the Salesforce Platform Developer I exam pass rate?

Salesforce does not officially publish pass rates. Industry estimates suggest a 60-70% pass rate for candidates who have completed recommended training and have 3-6 months of hands-on Apex development experience. The exam is considered intermediate-level and requires both coding knowledge and Salesforce platform understanding. With proper preparation (80-100 study hours plus hands-on practice), most dedicated candidates pass on their first attempt. The passing score is 68% (41 correct answers out of 60 scored questions).

How many questions are on the Salesforce Platform Developer I exam?

The PDI exam has 60 scored questions plus 5 unscored pretest questions (65 total). You have 105 minutes to complete the exam. The passing score is 68% (41 correct answers out of 60 scored questions). The unscored questions are not identified and are used by Salesforce to evaluate potential new questions for future exams.

What topics does the Salesforce Platform Developer I exam cover?

The exam covers 4 domains: Developer Fundamentals (27%) including Apex basics, data types, collections, DML, SOQL, and governor limits; Process Automation & Logic (28%) covering Apex triggers, async Apex (batch, scheduled, queueable, future), and automation tool selection; User Interface (23%) including Visualforce, custom controllers, and Lightning Web Components basics; Testing/Debugging/Deployment (22%) covering Apex test classes, code coverage, debug logs, and deployment tools.

How long should I study for Salesforce Platform Developer I certification?

Plan for 80-100 hours of study over 6-10 weeks. This includes completing Trailhead modules (50+ hours), hands-on coding practice in a free Developer Edition org, and reviewing practice questions. Focus heavily on Process Automation & Logic (28%) and Developer Fundamentals (27%) — together they make up 55% of the exam. Complete 200+ practice questions and score 80%+ consistently before scheduling. Hands-on coding experience is essential — build real Apex solutions in a Developer Edition org.

What is the difference between Salesforce Admin and Platform Developer I?

Salesforce Admin focuses on declarative configuration — setting up objects, fields, workflows, Flows, security, and reports without code. Platform Developer I focuses on programmatic development — writing Apex code, building Visualforce pages, creating Lightning components, and using APIs. While Admin is about configuration, Developer is about coding. Many professionals earn both certifications as they complement each other — Admins configure the platform while Developers extend it with custom code.

What jobs can I get with Salesforce Platform Developer I certification?

Platform Developer I certification qualifies you for roles including: Salesforce Developer ($85,000-120,000), Junior Salesforce Developer ($70,000-90,000), Senior Salesforce Developer ($110,000-150,000), Technical Architect ($130,000-180,000), and Integration Specialist ($100,000-140,000). This is the foundational certification for Salesforce development careers and is often required before pursuing advanced certifications like Platform Developer II or Technical Architect.