The Salesforce Certified Platform Developer II exam weights Process Automation, Logic, and Integration most heavily (27%), and the full breakdown, study tips, and practice questions are below. Salesforce Certified Platform Developer is the required first step for this track, and our certification path shows where this certification fits.
Free practice • No sign-up required
$200 exam • 70% passing score • Free practice
Independent study resource
Exam objectives and policies can change. Confirm current details with the certification issuer.
Check current objectives
Use the official exam guide as the source for current objectives and section weights.
Practice for learning
Use sample questions to review concepts and identify topics for further study.
Works on Any Device
Full practice experience on phone, tablet, or desktop
Free, No Sign-Up
Start practicing immediately, no account or email required
Salesforce Certified Platform Developer II (Plat-Dev-301 / PD2) Practice Exam & Study Guide
Platform Developer II is the exam behind the Salesforce Certified Platform Developer II credential, and this page is the Salesforce Platform Developer II certification study guide for it. You are in the right place whether you searched for Platform Developer II, Salesforce Platform Developer II or any of the names and codes below.
- Official credential
- Salesforce Certified Platform Developer II
- Current exam code
- Plat-Dev-301
- Legacy / alternate codes
- PD2
- Also searched as
- Platform Developer IISalesforce Platform Developer IIPlatform Developer II certificationSalesforce Platform Developer II certificationPlatform Developer 2PDII
This exam covers advanced Apex development, including bulk-safe code, asynchronous processing, integrations, testing, and security. The exam is 60 scored questions in 120 minutes, with a 70% pass mark, weighted towards Process Automation, Logic, and Integration (27%) and User Interface (20%).
Required Prerequisite
You must complete this certification before attempting this one.
| Official exam name and code | Salesforce Certified Platform Developer II (Plat-Dev-301 / PD2) |
|---|---|
| Questions | 60 |
| Time allotted | 120 min |
| Passing score | 70% |
| Exam fee | $200 |
| Retake fee | $100 |
| Prerequisite certifications | Salesforce Certified Platform Developer |
| Study guide release | Summer '26 |
Salesforce Certified Platform Developer II Exam Weightage by Section
1. Advanced Developer Fundamentals
15%2. Process Automation, Logic, and Integration
27%3. User Interface
20%4. Testing, Debugging, and Deployment
20%5. Performance
18%Exam Topics
Last updated:
Who is the Platform Developer II exam for?
- Experienced Apex developers: You write Apex regularly and want to show that you can build code that is reliable and scales.
- Platform Developer I holders: You have earned Platform Developer I and are ready to work toward the next developer credential.
- Technical leads: You review Apex code and make design decisions for a development team.
Platform Developer II Certification Exam Fee, Retake Cost & Registration
Exam Fee
$200
One-time registration fee
Retake Fee
$100
If you need to retake the exam
Comparing certs? View all Salesforce exam fees in one place →
Platform Developer II Certification Validity & Maintenance Schedule
Maintenance and renewal requirements vary. Check the issuer’s current credential page for requirements that apply to you.
How to Register
Check current Salesforce Certified Platform Developer II (PD2) credential and registration details with the issuer.
View official credential detailsOfficial references: Use the issuer’s current materials to confirm exam objectives, format, and fees before booking.
Official sources: Exam guide·Salesforce exam pricing·Independent exam-prep resource; details may change.
Exam Tips
- 1Process Automation, Logic, and Integration (27%), User Interface (20%), and Testing, Debugging, and Deployment (20%) together make up 67% of the exam, so study those sections first.
- 2Know when to use Queueable, Batch, Future, and Scheduled Apex.
- 3Understand namespaced packages, unlocked packages, and dependency management.
- 4Be ready for “how would you design?” and “what is the best approach?” questions.
Prerequisites
- •Required: Salesforce Certified Platform Developer
- •2+ years development experience
Focus Areas
- •Process Automation, Logic, and Integration
- •User Interface
- •Testing, Debugging, and Deployment
- •Performance
- •Advanced Developer Fundamentals
Study Strategy
Focus on design and best practices, not just syntax.
Review trigger frameworks, dependency injection, and package development.
Practice explaining trade-offs.
Exam Format and First-Attempt Readiness
The Salesforce Certified Platform Developer II exam has 60 questions in 120 min, passing score 70%. Most Salesforce exams test scenario-based decisions. Focus on when to use each feature, not just terms.
- Study Process Automation, Logic, and Integration, User Interface, and Testing, Debugging, and Deployment first; together they carry 67% of the exam.
- Do timed question sets. Build pacing and confidence.
- Review why wrong answers are wrong. It improves scenario reasoning.
- Book the exam once your mock scores are steady at 80%+.
Is the Platform Developer II Exam Hard?
Is the Platform Developer II Exam Hard?
Platform Developer II is a challenging Salesforce exam. It tests how well you can read Apex and choose a sound design. Questions often ask what happens with many records, within governor limits, or when code needs to recover from a failure.
- 60 scored questions in 120 minutes, plus up to five unscored questions that do not count.
- 70% to pass, which is 42 correct answers out of 60.
- Read and reason about code. You may need to predict what happens when code processes 200 records or retries a job.
- Check the current exam guide. Salesforce has changed the requirements associated with this credential, so confirm them before you book.
Pass Rate Guidance
Hands-on Apex experience is important. Before booking, aim for at least 80% on practice tests and make sure you can write a trigger handler and a batch class without relying on notes.
Platform Developer II Exam Format Explained
Platform Developer II Exam Format Explained
You can take the exam online with a proctor or at a test centre. Many questions ask you to review code or select an approach for a development task.
Total Questions
60 scored questions
Time Limit
120 min
Passing Score
70%
Question Type
Multiple-choice & multiple-select
How Many Questions Are Scenario-Based?
Many questions show a short code example or describe a requirement. One common pattern is code that works for one record but fails when it processes 200 records; you must identify a bulk-safe fix.
Best Way to Pass on Your First Attempt
- Write bulk-safe code: Do not put queries or DML inside loops. Gather records in collections and perform each operation once.
- Choose the right async tool: Learn the limits and uses of Future methods, Queueable, Batch, and Scheduled Apex. Queueable supports chaining and can carry state.
- Use clear code patterns: Keep one trigger per object and put its logic in a handler class. Separate data access from business logic.
- Practice writing tests: Create test data, mock callouts, and use Test.startTest and Test.stopTest to run asynchronous work.
Platform Developer II: Key Concepts
Write Apex That Handles Bulk Work
Your Apex should work for one record and for a batch of 200. Keep SOQL queries and DML operations outside loops. Query the needed records, store them in a map or collection, process them in memory, and save changes together. A common pattern is one trigger per object with the logic in a handler class. This keeps the trigger easier to follow and makes the logic easier to test. On large objects, use selective queries because filters on unindexed fields can perform poorly. Remember the synchronous limits listed here: 100 SOQL queries, 150 DML statements, 50,000 queried records, and 10,000 records per DML operation.
Choose the Right Asynchronous Tool
Future methods accept only primitive parameters, cannot be chained, and do not return a job ID. Queueable Apex accepts objects, returns a job ID, can be chained, and can keep state. Use Batch Apex to process large numbers of records in chunks; each chunk gets its own governor limits. Scheduled Apex starts work at a set time and is often used to launch a batch job. Asynchronous transactions have some higher limits, including 200 SOQL queries and more CPU time, which can make them useful when work should run outside the main transaction.
Integrations, Callouts, and Events
A trigger cannot make a callout directly. Run the callout asynchronously, using a future method marked for callouts or a Queueable. Put endpoints and authentication in Named Credentials instead of storing secrets in code. The limits shown here are 100 callouts per transaction and 120 seconds total. A Platform Event lets one part of a system publish information for subscribers to handle separately, reducing dependence between them. Change Data Capture sends record change information to subscribers. In tests, use Test.setMock because tests cannot call an external network.
Build Reliable Tests
Create the records your tests need instead of depending on data already in an org. @TestSetup can create data shared by test methods. Avoid SeeAllData because it makes tests depend on the org’s contents. Put the code under test between Test.startTest and Test.stopTest; this resets governor limits and runs queued asynchronous work before you check the results. Use HttpCalloutMock for callouts, and use Test.isRunningTest sparingly. Deployment requires 75% Apex test coverage, but tests should also check expected results, bulk behavior, and failure cases.
Apply Security in Apex
Apex runs in system mode by default, so it may not follow the current user’s record access. With sharing respects record sharing; without sharing ignores it; inherited sharing follows the caller’s sharing context. Record sharing does not enforce field access. Use Security.stripInaccessible or WITH USER_MODE to prevent access to fields the user should not read or write. WITH SECURITY_ENFORCED is another option for SOQL when appropriate. Methods marked @AuraEnabled can be called from a front end, so validate inputs and check access inside the method.
Choose by data volume and chaining needs: @future for simple fire-and-forget calls with primitive parameters, Queueable when you need chaining or complex object parameters, and Batch when processing more records than fit in one transaction.
How to Pass the Salesforce Platform Developer II Exam
For each code sample or requirement, compare the choices against bulk behavior, governor limits, and how the code handles failures.
Check Bulk Behavior
A query or DML operation inside a loop is a warning sign. Gather records in collections and perform the operation once.
Pick an Asynchronous Tool
Choose Queueable when you need object parameters, chaining, or a job ID. Use Batch for large volumes and Scheduled Apex for work that runs on a timetable.
Choose an Integration Pattern
Run callouts asynchronously instead of in a trigger. Store endpoint and authentication details in Named Credentials. Use Platform Events to separate a publisher from its subscribers.
Keep Trigger Logic Organized
Use one trigger per object and move the business logic into a handler class. Avoid designs that cause the trigger to run repeatedly.
Test Behavior, Not Just Coverage
Create your own test data, mock callouts, use startTest and stopTest for asynchronous work, and assert the expected results.
Salesforce Certified Platform Developer II (PD2) Exam: Readiness Summary
DifficultyChallenging; plan about 8-16 weeks of focused prep.
Book When ReadyScore 80%+ on three timed mocks before scheduling.
Use Practice, Not DumpsOriginal practice questions build skill without risking your credential.
Exam format: 60 questions, 120 min, 70% passing score.
Salesforce Certified Platform Developer II Practice Questions (With Explanations)
Test your knowledge with these 20 sample questions. Click on an answer to select it, then check your answer to see if you're correct.
Answered: 0 / 20Correct: 0
Question 1: Which design pattern creates one class instance that can be reused throughout a transaction?
Show correct answer and explanation
Correct answer: B. Singleton Pattern
The Singleton Pattern creates only one instance of a class and provides a shared way to access it.
- Factory Pattern creates objects based on input; it does not ensure there is only one instance.
- Decorator Pattern adds behavior to an object; it does not limit how many instances are created.
- Strategy Pattern lets code switch between algorithms; it does not control how many instances exist.
Question 2: What does the @TestSetup annotation do?
Show correct answer and explanation
Correct answer: D. Creates test data once for all test methods in the class
@TestSetup creates data once before the test methods run. Each test method can use that data, which can make test setup more efficient.
- @TestSetup creates records with DML; use HttpCalloutMock to mock an HTTP callout.
- @TestSetup does not change governor limits. Each test method still has the standard limits.
- @TestSetup does not control whether tests run in parallel. That is configured separately.
Question 3: How can a trigger start a callout?
Show correct answer and explanation
Correct answer: B. Use a @future(callout=true) method
A trigger cannot make a callout directly. Use @future(callout=true) or Queueable Apex with Database.AllowsCallouts to make the callout asynchronously.
- Database.executeBatch starts a batch job; the batch code must still make the callout in its execute method.
- A trigger cannot make a direct callout because it runs inside an active transaction.
- Platform Events support publish-and-subscribe messaging; they do not remove the restriction on direct callouts from triggers.
Question 4: What is one benefit of using Platform Events for integrations instead of traditional triggers?
Show correct answer and explanation
Correct answer: A. They support loosely coupled, asynchronous communication
Platform Events let systems communicate asynchronously without depending directly on each other. This can make integrations easier to scale and maintain.
- Platform Events run asynchronously; they are not meant to provide faster real-time execution.
- Platform Events do not lower governor limits. Apex transactions still have standard limits.
- Each subscriber still needs its own retry and error-handling logic.
Question 5: How can a batch job start another batch job after it finishes?
Show correct answer and explanation
Correct answer: C. Call Database.executeBatch from the current job’s finish method
Call Database.executeBatch from the current batch job’s finish method to start the next batch job.
- Database.Stateful keeps instance variable values between batch execute calls; it does not chain jobs.
- Database.Batchable is required for a batch class but does not chain jobs by itself.
- Database.AllowsCallouts allows a batch job to make HTTP callouts; it does not chain jobs.
Question 6: What does the Database.Stateful interface do in batch Apex?
Show correct answer and explanation
Correct answer: A. Keeps instance variable values between batch runs
Database.Stateful keeps instance variable values between batch executions.
- Database.Stateful does not improve speed; it preserves state.
- It does not bypass governor limits. Each batch chunk still has standard limits.
- Database.AllowsCallouts is the interface used to allow callouts from batch Apex.
Question 7: Which design pattern separates trigger code from business logic?
Show correct answer and explanation
Correct answer: C. Trigger Handler pattern with service classes
The Trigger Handler pattern keeps the trigger code separate from business logic, which makes the code easier to maintain.
- Factory handles object creation; it does not separate trigger code from business logic by itself.
- Decorator adds behavior to objects; it does not organize trigger logic by itself.
- Singleton controls instance creation; it does not separate trigger code from business logic.
Question 8: What can Queueable Apex do that @future cannot?
Show correct answer and explanation
Correct answer: C. Chain jobs, accept complex parameters, and return job IDs
Queueable Apex supports job chaining, complex parameters, and job ID tracking.
- Queueable Apex and @future have similar governor limits in most cases.
- Queueable Apex is not inherently faster than @future; both run asynchronously.
- Queueable Apex runs asynchronously, just like @future.
Question 9: What security checks should Apex exposed to an LWC apply?
Show correct answer and explanation
Correct answer: D. Use @AuraEnabled and enforce field-level security and sharing
Apex methods exposed to an LWC must enforce field-level security and sharing.
- User-facing Apex code still needs security checks.
- Sharing checks alone do not protect fields a user cannot access.
- Field-level security alone does not limit which records a user can access.
Question 10: What does the Strategy pattern let you do?
Show correct answer and explanation
Correct answer: B. Swap between algorithms in separate classes
The Strategy pattern lets code switch between algorithms at runtime.
- A shared single instance describes the Singleton pattern.
- Event handling is often associated with the Observer pattern, not Strategy.
- Object creation is handled by patterns such as Factory, not Strategy.
Question 11: Which heap-size limits apply to Apex?
Show correct answer and explanation
Correct answer: D. About 6 MB for synchronous and 12 MB for asynchronous Apex
Apex has a heap limit of about 6 MB for synchronous code and 12 MB for asynchronous code.
- 1 MB is below the synchronous heap limit.
- 6 MB is the synchronous limit; asynchronous Apex has a higher limit.
- Salesforce enforces heap limits to protect the shared platform.
Question 12: What does Test.isRunningTest() do?
Show correct answer and explanation
Correct answer: A. Checks whether code is running in a test so it can use conditional logic
Test.isRunningTest() checks whether code is running in a test. Code can use this check for mock responses or other test-specific behavior.
- It does not skip tests; it only detects the test context.
- It does not improve execution speed.
- Governor limits still apply in tests.
Question 13: How can Apex be made available to Flow or Process Builder?
Show correct answer and explanation
Correct answer: C. Use InvocableMethod
An InvocableMethod makes an Apex method available to Flow and Process Builder.
- @AuraEnabled exposes Apex methods to Lightning components, not Flow or Process Builder.
- @RestResource exposes Apex as a REST service, not as a Flow action.
- A trigger runs after record changes; Flow or Process Builder cannot invoke it directly.
Question 14: What is a common use for Platform Events?
Show correct answer and explanation
Correct answer: A. Decoupled integrations, logging, and messaging between orgs
Platform Events support loosely coupled, event-driven systems.
- Batch processing uses Batchable Apex, not Platform Events.
- Scheduled jobs use the Schedulable interface, not Platform Events.
- Platform Events are asynchronous, not synchronous-only.
Question 15: How can you avoid creating the same test data in every Apex test method?
Show correct answer and explanation
Correct answer: B. Use @TestSetup to create shared test data
@TestSetup creates data once for the test class so each test method can use it.
- Creating the same data in each method repeats work and can slow tests.
- Fewer assertions do not make a test run faster, and they can reduce test quality.
- SeeAllData=true ties tests to org data and can make them fragile and unpredictable.
Question 16: A batch job updates invoices with partial success enabled. How should support identify which input rows failed?
Show correct answer and explanation
Correct answer: D. Match each SaveResult to its input row
SaveResult entries follow the input order. Inspect each failure’s errors and log its source row.
- The job status summarizes execution without identifying every row.
- A timestamp cannot explain which input rows failed.
- The async job ID does not identify the affected invoice rows.
Question 17: An Apex service queries records for an LWC. It must enforce the caller’s object, field, and record access. Which query mode fits?
Show correct answer and explanation
Correct answer: D. Use SOQL in USER_MODE
User-mode SOQL enforces object, field, and record access for the query operation.
- System mode does not provide those user access checks by default.
- A browser cache cannot enforce access on the server.
- Cacheability changes how results are fetched and stored.
Question 18: A scheduled calculation must be tested without depending on the current date. How should the date be supplied?
Show correct answer and explanation
Correct answer: A. Fetch the date from the running user
Passing the date lets production use its clock while tests exercise a fixed date and boundary cases.
- The running user does not make time deterministic.
- A global fixed date would affect production behavior.
- Each helper still depends on a changing clock.
Question 19: A service uses an HTTP callout to retrieve exchange rates. What should the unit test use to simulate a timeout response?
Show correct answer and explanation
Correct answer: B. Set an HttpCalloutMock response
Register an HttpCalloutMock to return a fixed HTTP response, such as 504, without calling the provider.
- A test endpoint still makes the result depend on an external service.
- A static rate skips the HTTP error handling path.
- Test.stopTest runs async work but does not supply an HTTP response.
Question 20: An Apex team packages an implementation behind an interface. Two consumers need different implementations. What simplifies testing both paths?
Show correct answer and explanation
Correct answer: C. Make the interface methods static
Inject either implementation through the interface and replace it with a test double when isolating callers.
- Static methods do not give each consumer a configurable instance.
- A singleton fixes the implementation choice for both consumers.
- A test flag changes production behavior instead of isolating the dependency.
Get the Full PD2 Question Bank
Most candidates book the exam after scoring 80%+ on full mocks.
If you’re planning to test this quarter, aim to complete full mocks at least 10–14 days before your exam date.
Contact us for more information on our full 60-question mock exams and a personalized study plan. Use the contact form.
Request Mock Exams & Study PlanOfficial Exam Code of Conduct: Practice Questions vs. Unofficial Platform Developer II (Plat-Dev-301) Dumps
Many candidates search for “Platform Developer II dumps”, “Salesforce Platform Developer II dumps”, “Salesforce Certified Platform Developer II dumps”, “Platform Developer 2 dumps”, “PDII dumps”, “Salesforce Platform Developer 2 dumps”, “Salesforce PDII dumps”, “Plat-Dev-301 dumps” or “PD2 dumps” hoping for a shortcut past the Platform Developer II exam. There is no safe version of that shortcut: recalled exam content breaches the certification agreement you accept when you register.
If what you actually wanted was “Platform Developer II questions”, “Salesforce Platform Developer II questions”, “Salesforce Certified Platform Developer II questions”, “Platform Developer 2 questions”, “PDII questions”, “Salesforce Platform Developer 2 questions”, “Salesforce PDII questions”, “Plat-Dev-301 questions” or “PD2 questions”, that is what this page provides: original, scenario-based items written from the published Salesforce Certified Platform Developer II exam outline, each with a worked explanation. Here is how they compare with braindumps:
| Factor | Verified practice questions | Unofficial dumps |
|---|---|---|
| Credential compliance | 100% legitimate and NDA-compliant | Violates the Salesforce certification agreement; risks credential revocation |
| Blueprint accuracy | Aligned with the current Platform Developer II exam outline | Frequently stale, pre-refresh questions with wrong answers |
| Scenario reasoning | Detailed why-right and why-wrong explanations | Rote memorisation that fails on reworded exam scenarios |
| On-the-job readiness | Builds real Platform Developer II implementation skills | Zero transferable project or technical interview skill |
| Release currency | Rewritten each release cycle, currently Summer '26 | Frozen at whichever release the leak came from |
| Detection risk | Nothing is copied, so there is nothing to detect | Issuers monitor for dump usage and audit suspect scores |
Credential issuers monitor for dump usage and can revoke a certification after it has been awarded. Every question on this page is written from the published exam outline, never copied from a live exam.
Salesforce Certified Platform Developer II (PD2) Exam FAQs
- What is covered on the Salesforce Certified Platform Developer II (PD2) exam?
- The Salesforce Certified Platform Developer II (PD2) exam (formerly Salesforce Certified Platform Developer II) has 5 sections. Process Automation, Logic, and Integration (27%), User Interface (20%), and Testing, Debugging, and Deployment (20%) together make up 67% of the exam. The full section-by-section weightage is in the table on this page.
- What is the difference between Platform Developer I and Platform Developer II?
- Platform Developer I focuses on basic Apex, LWC, and testing. Platform Developer II covers advanced topics like design patterns, architecture, advanced Apex, async processing, and package development. You need PD1 first.
- How difficult is Platform Developer II compared to Developer I?
- Platform Developer II is significantly more challenging. It requires deep understanding of design patterns, architecture decisions, advanced Apex concepts, and best practices. Most candidates need 2+ years of development experience.
- What is the PD2 passing score and exam fee in Summer '26?
- The Platform Developer II (PD2) exam has 60 multiple-choice questions, 120 minutes, and a passing score of 70%. The exam fee is $200 USD (retake $100 USD). PD1 certification is a mandatory prerequisite, you cannot sit PD2 without it.
- What design patterns are tested in Platform Developer II?
- PD2 tests applied knowledge of: Singleton (one instance per transaction), Strategy (swappable algorithms), Decorator (extending behaviour), Factory (object creation patterns), and Service Layer / Selector / Domain patterns (FFLib enterprise architecture). Expect scenario questions where you must choose the right pattern for a given constraint.
- Why should I use practice questions instead of Platform Developer II dumps or Salesforce Certified Platform Developer II dumps?
- Searches for Platform Developer II dumps, Salesforce Certified Platform Developer II dumps, Plat-Dev-301 dumps and PD2 dumps lead to recalled exam content. Using it violates the certification non-disclosure agreement (NDA) you accept with Salesforce when you register, and can result in permanent credential revocation; braindumps also carry outdated answers from older release cycles. Searches for Platform Developer II questions, Salesforce Certified Platform Developer II questions, Plat-Dev-301 questions and PD2 questions are a different thing entirely, and they are what this page answers: original, scenario-based items written from the published exam outline, each with a worked explanation, which is what prepares you for the live proctored exam safely.
Next Certifications After Platform Developer II
Good next steps after Platform Developer II:
Share or cite this study guide
Free to link from a forum post, study repo or article. Copy the Markdown and paste it anywhere.