PDII

PDII Salesforce Platform Developer II practice exams

290 questions in 5 timed practice tests. Each test has about 60 questions and a 120-minute limit. The pass mark is 70%. Results are split across the 5 exam domains.

Exam at a glance

PDII practice exam settings
Practice tests 5
Questions in total 290
Questions per test About 60
Time limit per test 120 minutes
Pass mark 70%
Question types Single answer and multiple answer (29 multiple-answer questions)
Level Professional
Category Business Platforms

These are the settings of our practice tests. Check the official Salesforce exam page for the current exam format before you book.

Domains and weights

PDII exam domains, weights and question counts
Domain Weight Weight bar Questions in our bank
Advanced Developer Fundamentals 15% 44
Process Automation, Logic, and Integration 27% 78
User Interface 20% 58
Testing, Debugging, and Deployment 20% 58
Performance 18% 52

Sample questions

Question 1 of 3

A developer writes an Apex class declared 'public with sharing class InvoiceService' that calls a method in 'public inherited sharing class InvoiceSelector'. The selector is also invoked directly from an Aura-enabled method in a class that has no sharing keyword at all. Which sharing context does the selector run in for each caller?

  1. A Without sharing from InvoiceService, because sharing keywords only apply to the outermost class of the transaction
  2. B With sharing from InvoiceService, and without sharing from the Aura-enabled class because that caller omits the keyword
  3. C Without sharing in both cases, because inherited sharing defers to the system context of the Apex runtime
  4. D With sharing in both cases, because each caller enforces sharing and inherited sharing adopts the caller's mode (correct answer)
Why: An inherited sharing class runs in the sharing mode of its caller. InvoiceService is with sharing, and an Apex controller with @AuraEnabled methods and no sharing keyword runs with sharing by default when invoked from Lightning, so the selector enforces sharing in both paths. Inherited sharing never means system context, an omitted keyword on a Lightning entry point does not imply without sharing, and sharing keywords apply per class rather than only to the outermost class.

Question 2 of 3

An integration must react in near real time to every change of Opportunity Stage made by any user, API or automation, and the external subscriber should receive the changed fields with a header that identifies the operation. Which feature requires the LEAST custom code?

  1. A Configure an outbound message from a record-triggered flow on Opportunity update
  2. B Create a PushTopic on Opportunity and subscribe through the Streaming API in Apex
  3. C Enable Change Data Capture for Opportunity and subscribe through the Pub/Sub API (correct answer)
  4. D Write an after update trigger that publishes a custom platform event per change
Why: Change Data Capture publishes change events with a ChangeEventHeader (entity, change type, changed fields) for every create, update, delete and undelete with no code, and Pub/Sub API is the recommended subscription channel. A trigger-published event requires custom code, outbound messages are SOAP-based and send whole field sets without a change header, and PushTopics are a legacy feature that is not recommended for new work.

Question 3 of 3, choose 2

A developer writes an Apex trigger on a platform event, Shipment_Update__e. The trigger occasionally fails because a downstream record is locked by another process. Which two techniques let the trigger recover without losing events? (Choose two.)

  1. A Wrap the trigger body in Database.setSavepoint() and roll back to it, which causes the platform to redeliver the events
  2. B Decrease the batch size of the event subscription to 1 so that the platform automatically retries every failed event
  3. C Use FOR UPDATE in the trigger's SOQL so the event trigger waits indefinitely until the competing lock is released
  4. D Call EventBus.TriggerContext.currentContext().setResumeCheckpoint(replayId) after each processed event so a restart resumes after it (correct answer)
  5. E Throw EventBus.RetryableException so the batch of events is redelivered later, up to the platform retry limit (correct answer)
Why: EventBus.RetryableException asks the platform to resend the events in a later trigger invocation, and setResumeCheckpoint records the last successfully processed event so a retry or restart resumes after it. Rolling back to a savepoint does not trigger redelivery, FOR UPDATE waits only up to about 10 seconds before throwing, and a smaller batch size alone does not cause automatic retries.

What your score report looks like

Example attempt, PDII practice test 3

77%

Passed
Pass mark 70%

Score by exam domain
DomainWeightYour score%
Advanced Developer Fundamentals 15%
88
Process Automation, Logic, and Integration 27%
81
User Interface 20%
76
Testing, Debugging, and Deployment 20%
58
Performance 18%
84

Study next: Testing, Debugging, and Deployment. It is below the pass mark and carries 20% of the exam.

Domains and pass mark from our PDII practice tests. Scores are an example attempt.

Study plans

Two weeks

  1. Day 1: take practice test 1 in exam mode to get a baseline.
  2. Days 2 to 5: domain mode on Process Automation, Logic, and Integration and User Interface, the two most heavily weighted domains.
  3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
  4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
  5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

Four weeks

  1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
  2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
  3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
  4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

Questions about the PDII practice exams

Are these real PDII exam questions?
No. We write every question ourselves and map it to the published PDII exam objectives. We do not use leaked or recalled questions.
Do the time limit and pass mark match the official exam?
They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.
Can I try it before I pay?
Yes. The free mini exam has 15 questions with full explanations and needs no account.
How long do I keep access?
A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.
What happens after I finish a test?
You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026. Written and reviewed by the DevOpsCode Lab team.

DevOpsCode Lab is not affiliated with Salesforce. PDII and related names are trademarks of their owners.

Related exams
Exam Vendor Level Questions Minutes Price
SASalesforce Agentforce Salesforce Specialty 300 105 $14.99
Analytics-101Salesforce Tableau Desktop Foundations (Analytics-101) Salesforce Foundational 225 70 $9.99
MSMDIMULESOFT-DEV-I Salesforce MuleSoft Developer I Salesforce Associate 300 120 $12.99
CADServiceNow Application Developer (CAD) ServiceNow Associate 300 90 $12.99
CSAServiceNow CSA ServiceNow Associate 300 90 $12.99
UiPath-ADAv1UiPath Pro Automation Developer Assoc. (UiPath-ADAv1) UiPath Professional 300 90 $14.99