# PDII Salesforce Platform Developer II practice exams

> 5 timed PDII practice tests with 290 questions and a 70% pass mark. See your score in Process Automation and User Interface and every other domain.

Page: https://devopscodelab.com/exams/salesforce-pdii/

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

| Setting | Value |
| --- | --- |
| 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 format before you book.

## Domains and weights

| Domain | Weight | 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 |

## Price and access

- PDII practice exams: $14.99 for 12 months of access.
- Free mini exam: 15 questions with explanations (free account): https://devopscodelab.com/app/exams/salesforce-pdii/mini/
- All-Access subscription includes every exam: https://devopscodelab.com/pricing/
- 10 free questions with answers: https://devopscodelab.com/exams/salesforce-pdii/free-practice-questions/

## 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?

- A. Without sharing from InvoiceService, because sharing keywords only apply to the outermost class of the transaction
- B. With sharing from InvoiceService, and without sharing from the Aura-enabled class because that caller omits the keyword
- C. Without sharing in both cases, because inherited sharing defers to the system context of the Apex runtime
- D. With sharing in both cases, because each caller enforces sharing and inherited sharing adopts the caller's mode

**Answer:** D

**Explanation:** 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?

- A. Configure an outbound message from a record-triggered flow on Opportunity update
- B. Create a PushTopic on Opportunity and subscribe through the Streaming API in Apex
- C. Enable Change Data Capture for Opportunity and subscribe through the Pub/Sub API
- D. Write an after update trigger that publishes a custom platform event per change

**Answer:** C

**Explanation:** 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.)

- A. Wrap the trigger body in Database.setSavepoint() and roll back to it, which causes the platform to redeliver the events
- B. Decrease the batch size of the event subscription to 1 so that the platform automatically retries every failed event
- C. Use FOR UPDATE in the trigger's SOQL so the event trigger waits indefinitely until the competing lock is released
- D. Call EventBus.TriggerContext.currentContext().setResumeCheckpoint(replayId) after each processed event so a restart resumes after it
- E. Throw EventBus.RetryableException so the batch of events is redelivered later, up to the platform retry limit

**Answer:** D, E

**Explanation:** 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.


## 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.

DevOpsCode Lab is not affiliated with Salesforce. PDII and related names are trademarks of their owners. We write every question ourselves; these are not real exam questions.
