Complete exam guide · updated 6 December 2026

Platform Developer II certification: the complete exam guide

Plat-Dev-301 assumes you already write Apex, triggers and Lightning web components, and tests whether you can choose the best of several designs that all work: asynchronous Apex and integration, platform events, Apex managed sharing and custom metadata, mocks and stubs, and performance at large data volumes. Process Automation, Logic, and Integration is the biggest section, at 27%.

Reviewed by Nick Gorgotsias, Founder of ForceDigestBuilt from the Plat-Dev-301 exam outline of 6 December 2026 and Salesforce's official exam page, checked on 2 December 2026.

In short

Salesforce Certified Platform Developer II (Plat-Dev-301), or PDII, proves you can design, build, test and deploy advanced solutions in Apex and Lightning that are maintainable, reusable and follow design patterns. You must hold the Platform Developer credential first. Most questions describe a scenario and ask for the best of several designs that would all run, so prepare by building asynchronous, integration and large-data code in an org, then sitting full timed practice exams.

The Plat-Dev-301 exam in numbers

Questions60 scoredplus up to five unscored
Time120 minutesabout 1 min 51 s a question
Sections5biggest: Process Automation, Logic, and Integration, 27%
FeeUSD 200retake USD 100 plus tax

You need the Salesforce Certified Platform Developer credential first. You can take it online (proctored) or at a test centre, in English, Japanese, French and Spanish. Official exam page. No passing score is published there; here's what to aim for instead.

Who is the Platform Developer II certification for?

It is for experienced Salesforce developers who already write Apex, triggers and Lightning web components and now design whole solutions. Trailhead describes Certified Platform Developer II developers as experts in "the advanced programmatic capabilities of the Salesforce Platform", who also use data modelling to build complex business logic and interfaces.

Trailhead Academy's exam page adds what that means in practice: the candidate can design, develop, test and deploy programmatic solutions that are maintainable and reusable, and that follow design patterns and object-oriented programming best practices. Salesforce lists it at the Advanced level, in the Developer role.

Salesforce's exam guide is specific about experience: the typical candidate has 2 to 4 years as a developer, including at least a year designing, building and deploying on the platform, and writes Apex that scales to large data sets of roughly 300,000 to 480,000 records.

What do you need before you can book Platform Developer II?

You need one thing: the Salesforce Certified Platform Developer credential, which Trailhead Academy's exam page lists as the prerequisite you must earn before you can register. The page names no other requirement, so the certification is earned by passing this one exam.

Platform Developer is the exam once called Platform Developer I (Plat-Dev-201). If you hold it, everything it tested is assumed here: governor limits, triggers and the order of execution, SOQL and DML, Lightning web component basics and Apex testing. PDII builds on that rather than repeating it.

Where the marks are

Each section's weight is the share of the scored questions it gets. Study in proportion: an hour on a 27% section is worth more than an hour on a 15% one.

  1. Process Automation, Logic, and Integration27% about 16 questions
  2. User Interface20% about 12 questions
  3. Testing, Debugging, and Deployment20% about 12 questions
  4. Performance18% about 11 questions
  5. Advanced Developer Fundamentals15% about 9 questions

What to know, section by section

Biggest section first. Each one is a chapter of the Plat-Dev-301 study guide; here is what it expects you to be able to do, and a few of its key facts.

27% · about 16 questions

Process Automation, Logic, and Integration

The largest section of the exam: how flows and triggers share one save, how to build triggers and transactions that fail safely, which asynchronous Apex to choose, dynamic Apex and advanced SOQL, platform events and Change Data Capture, and the callouts, web services and APIs that connect Salesforce to other systems.

You should be able to

  • Predict how before-save flows, triggers, validation, after-save flows and roll-ups interact in one save, and stop recursion
  • Design a trigger handler that is bulk-safe and handles errors with addError, Database methods, savepoints and custom exceptions
  • Choose between future methods, Queueable Apex with finalizers, Batch Apex and scheduled Apex for a requirement and its limits
  • Write dynamic SOQL that is safe from injection and use describe information, aggregate and relationship queries
  • Choose a publish behaviour and a subscriber for platform events, and choose between platform events and Change Data Capture
  • Choose an outbound callout pattern, an inbound Apex web service or a platform API for an integration

Key facts

  • Save order: before-save flows, before triggers, validation rules, duplicate rules, save, after triggers, assignment and workflow rules, after-save flows, roll-ups, commit, then async jobs.
  • @InvocableMethod: one per class, static, public or global, at most one input list, and outputs that match the inputs in size and order.
  • A static variable in a class persists across trigger invocations in one transaction; use it to stop recursion. Rollback doesn't reset it.
  • Database.insert(records, false) returns SaveResults instead of throwing; triggers re-fire on the retry of the good records.

20% · about 12 questions

User Interface

How to choose and combine Lightning web components, Aura components and Visualforce, read and refresh Salesforce data, connect components, show errors clearly, and build Visualforce pages that update without full reloads.

You should be able to

  • Choose between Lightning web components, Aura components and Visualforce, and combine them where they must coexist
  • Surface components on Lightning pages, quick actions and Visualforce, adapt them to form factor, and load static resources
  • Decide between Lightning Data Service, wired Apex, imperative Apex and Aura server actions, and refresh stale data correctly
  • Pass data down with public properties and methods, up with custom or Aura component events, and across the page with Lightning message service
  • Turn errors from Lightning Data Service, Apex and Visualforce controllers into clear toasts, inline messages and page messages
  • Build Visualforce partial page refreshes with reRender and the action components, and choose controllers and JavaScript remoting

Key facts

  • Aura can contain Lightning web components; Lightning web components can't contain Aura. Wrap in Aura only for events or interfaces LWC doesn't support.
  • Surface an LWC with isExposed and targets in .js-meta.xml; supportedFormFactors limits it to Large or Small; @salesforce/client/formFactor reads the device.
  • Data ladder: lightning-record-*-form first, then lightning/ui*Api or GraphQL wire adapters, then Apex.
  • @wire needs @AuraEnabled(cacheable=true), which forbids DML; methods that change data are called imperatively.

20% · about 12 questions

Testing, Debugging, and Deployment

How to test Apex in isolation with controlled data, mocks and stubs, test Lightning web components with Jest, find faults with debug logs, the Apex Replay Debugger and Chrome DevTools, and deploy source with Salesforce CLI under the right test level.

You should be able to

  • Isolate Apex tests with test setup methods, data factories, runAs and the Test.startTest and Test.stopTest pair
  • Test asynchronous Apex and callouts, including DML that runs before a mocked callout
  • Replace dependencies with HttpCalloutMock, StaticResourceCalloutMock, WebServiceMock or the Stub API
  • Write Jest tests for Lightning web components that mock wire adapters, Apex methods and child components
  • Choose between debug logs, the Apex Replay Debugger and Chrome DevTools for a given fault
  • Deploy source with Salesforce CLI, choosing a test level and meeting the code coverage rules

Key facts

  • @TestSetup: one per class; each test method sees the original records, because changes roll back after every method.
  • Test.startTest() / Test.stopTest(): once each per test method; code between them gets fresh limits, and asynchronous work queued after startTest runs when stopTest is called.
  • SeeAllData=true on a class can't be turned off by a method, and test setup methods aren't supported in that class.
  • System.runAs() enforces a user's sharing and permissions, works only in test methods and avoids mixed DML errors in tests.

18% · about 11 questions

Performance

How to keep Apex, queries and user interfaces fast at scale: selective SOQL and large-data-volume design, Platform Cache, big objects, Lightning and Visualforce performance, and enterprise patterns that remove repeated queries and code.

You should be able to

  • Write selective SOQL and judge whether a filter can use an index on a large object
  • Choose between skinny tables, data distribution, Batch Apex, SOQL for loops and cursors when data volumes grow
  • Use org and session Platform Cache safely, with partitions, cache-miss handling and CacheBuilder
  • Decide when a big object fits, then design its index, write to it and query it correctly
  • Speed up Lightning web components and Visualforce pages with caching, lazy loading, pagination and a lean view state
  • Organise Apex into service, domain and selector layers so that logic and queries are written once

Key facts

  • Selective filter: an indexed field matching under the threshold: standard index 30% of the first million rows and 15% after; custom index 10% and 5%.
  • Negative operators, comparisons with null or empty values and non-deterministic formulas stop an index being used.
  • The REST query explain parameter lists the possible plans without running the query; the first plan, the cheapest, is the one used.
  • Data skew: keep each parent under 10,000 children and each owner under 10,000 records.

15% · about 9 questions

Advanced Developer Fundamentals

How locale, time zone and multiple currencies change what Apex, SOQL and Lightning web components return, when and how to grant access with Apex managed sharing, and how to choose between custom metadata types and custom settings.

You should be able to

  • Predict how a user's locale, language and time zone change the values that Apex, SOQL and Lightning web components produce
  • Query, filter and display currency fields correctly in a multi-currency org, with and without advanced currency management
  • Work with address and geolocation compound fields and translated custom labels in code
  • Create, change and recalculate Apex managed sharing, and justify it over sharing rules and manual sharing
  • Choose the right sharing keyword and access mode for each class and database operation
  • Choose between custom metadata types, list custom settings and hierarchy custom settings, and read each one efficiently

Key facts

  • convertCurrency() works only in SELECT: filter with an ISO-coded literal such as Amount > EUR100000; aggregates come back in the corporate currency.
  • With advanced currency management, opportunities, opportunity products and opportunity history use dated exchange rates; other currency fields use the static rate.
  • Datetime.now() is GMT; hour(), date() and format() use the context user's time zone and locale, the Gmt methods don't.
  • Base components such as lightning-formatted-number follow the user's locale; for your own formatting import @salesforce/i18n properties.
Read this chapter free

Look-alikes that cost marks

The Plat-Dev-301 exam likes to offer two answers that both sound right. These are the pairs to know cold.

Queueable or Batch Apex?
Queueable returns a job ID, accepts sObjects as member variables and can chain one child job. Batch Apex is for very large data sets: a QueryLocator reaches 50 million rows, processed in scopes of up to 2,000.
Platform event or Change Data Capture?
A custom message your code or flow defines is a platform event. Being notified of record creates, updates, deletes and undeletes, with a header naming the changed fields, is Change Data Capture.
Custom metadata type or custom setting?
Configuration that must deploy and package with the app is a custom metadata type, because its records travel with it. Values that vary by user or profile point to a hierarchy custom setting.
Manual share or Apex sharing reason?
Manual shares are removed when the record owner changes. Shares written with an Apex sharing reason stay, and a recalculation class rebuilds them when the org-wide default changes.
Org cache or session cache?
Data every user can reuse belongs in the org cache, which keeps values for up to 48 hours. The session cache serves one user's session for up to 8 hours and isn't available in asynchronous Apex.
HttpCalloutMock or the Stub API?
Faking an HTTP response is Test.setMock with HttpCalloutMock. Replacing a dependent class's methods in a unit test is the Stub API: implement System.StubProvider and call Test.createStub.
Selective or non-selective query?
A query is selective when an indexed field filters below the index threshold. Negative operators, comparisons with null and non-deterministic formula fields stop the index being used.
Future method or Queueable with a finalizer?
A future method takes only primitive parameters and returns nothing to track. When the job must be monitored, pass sObjects or recover after a failure, Queueable with a System.Finalizer is the answer.

What does the Platform Developer II exam cover?

It has five sections, and Salesforce's exam guide and official Trailmix give their weights and objectives. Process Automation, Logic, and Integration is the largest, so asynchronous Apex and integration earn more marks than anything else:

  • Advanced Developer Fundamentals (15%): multiple currencies and localisation in code, Apex managed sharing, and when to use custom metadata types or custom settings.
  • Process Automation, Logic, and Integration (27%): how flows and triggers interact in one save, trigger best practices, error handling and transactional integrity, advanced SOQL keywords, future methods, Queueable, Batch and Scheduled Apex, dynamic Apex, platform events, and inbound and outbound integration with Apex REST and SOAP services.
  • User Interface (20%): choosing Lightning web components, Aura or Visualforce, reading component and Apex controller code, events between components, responsive markup by form factor, static resources, showing errors to users, and Visualforce partial page refreshes and asynchronous actions.
  • Testing, Debugging, and Deployment (20%): test data, mocks and stubs, Jest tests for Lightning web components, testing Visualforce controllers and extensions, debugging, and source-driven deployment.
  • Performance (18%): user interface performance, selective queries and large data volumes, asynchronous callouts, big objects, Platform Cache, code reuse with the service, domain and selector layers, and spotting inefficient code.

Is Platform Developer II harder than Platform Developer?

Yes, by design: Salesforce rates it Advanced, and it gives you 120 minutes for 60 scored questions, fifteen minutes more than Platform Developer gives for the same number. Salesforce doesn't publish pass rates, so judge it by what it asks.

Platform Developer asks whether code works. PDII usually shows several approaches that all work and asks which is best under a constraint: the fewest governor limits consumed, the most maintainable design, or a solution that still holds at hundreds of thousands of records. Knowing an API name is rarely enough; you need to know when to choose it, and what breaks when you don't.

How should you prepare for Plat-Dev-301?

Work through Salesforce's free Trailmix section by section, and build every pattern it teaches in a free Developer Edition org rather than only reading about it. The modules that carry the most marks are Asynchronous Apex, Apex Integration Services, Platform Events Basics, Large Data Volumes and the two Apex Enterprise Patterns modules. The exam guide also recommends three superbadges: Apex Specialist, the Apex Callouts superbadge unit and the Platform API superbadge unit.

Write the code the exam reasons about: a Queueable job that chains another, a batch class over a large query, a platform event with an Apex trigger subscriber, a REST callout tested with a mock, and a Jest test for a component that calls Apex. Then sit full practice exams at the real length and timing, and review every wrong answer until the look-alike pairs below are automatic.

Official resources to study from

A study plan by weight

  1. 1. Measure where you startTake the free readiness check to see which sections you already know.
  2. 2. Study the biggest sections firstProcess Automation, Logic, and Integration (27%), then User Interface (20%), then Testing, Debugging, and Deployment (20%), then Performance (18%), then Advanced Developer Fundamentals (15%). The whole study guide is about 1.5 hours of reading.
  3. 3. Quiz each section to the lineAfter each chapter, quiz yourself on it until you score 85% or more, and clear every question you got wrong.
  4. 4. Sit full timed exams60 questions in 120 minutes, like the real one. Book when two in a row reach 85% and no section is below 75%.

On exam day

  1. Read the last sentence first. It tells you what is actually being judged: "fewest governor limits", "most maintainable", "without changing the existing code", "what happens when this runs".
  2. Count the limits. For any loop, trigger or batch scenario, count the queries, DML statements and callouts per transaction before you read the options. Many wrong options work for one record and fail at 200.
  3. Run the code in your head. When a question shows Apex or JavaScript, trace it line by line with one record, then with a bulk load. Look for queries or DML inside loops, a missing Test.startTest(), a callout after uncommitted DML, or a wire method that isn't cacheable=true.
  4. Synchronous or asynchronous, and which kind. Decide whether the work must finish in the same transaction, then choose between future methods, Queueable, Batch Apex, Schedulable and platform events by what each one allows.
  5. Platform feature before custom code. If Lightning Data Service, a platform event, Platform Cache or a declarative tool already does the job, the option that writes custom code is usually the wrong one.
  6. "Choose 2." means exactly two. Both must be right to score the question.
  7. Flag and move on. If a question takes more than three minutes, flag it and come back. Leave fifteen minutes at the end for flagged questions.
  8. Answer everything. An unanswered question can't score; a reasoned guess might.

Try it before you study

The Platform Developer II Practice Exams package has 318 practice questions, each with its explanation, and a free trial: the readiness check and the Advanced Developer Fundamentals chapter.

Questions about the Plat-Dev-301 exam

Start with one exam, or open them all.

Buy one certification's package for $15, or get all 59 certifications on ForceDigest with Lifetime Access for $79 once. Updates are included, with a 60-day money-back guarantee.

  • 13 study tools in every package
  • Every answer explained
  • Updates when an outline changes
  • 60-day money-back guarantee
  • One payment, no subscription
  • Exercises in a free Developer Edition org