Limited-Time Offer: Enjoy 50% Savings! - Ends In 1d 3h 40m 22s Coupon code: 50OFF

Salesforce Plat-Dev-301 Exam Questions & Answers (November 2026)

Salesforce Certified Platform Developer II exam questions with 15 free practice questions and explained answers. Updated November 23, 2026. ยท See all Salesforce exams

Answer 15 scenario questions on this page and see your score as you go. No sign-up needed.

Exam Details

Exam Code
Plat-Dev-301
Vendor
Salesforce
Questions
60 questions and up to five unscored questions
Duration (minutes)
120
Passing Score
70%
Languages
English, French, Japanese; Spanish listed as coming September 2026
Delivery
Proctored onsite at a testing center or in an online environment
Question Types
Single Choice
Official Page
View Exam Page
1

Advanced Developer Fundamentals

15% of the exam

This topic covers how localization, multiple currencies, sharing, and Salesforce configuration storage affect Apex solutions. Candidates must select suitable platform features for a scenario and account for their behavior in code.

Question 1 of 15 Single Choice

A finance team uses a multicurrency Salesforce org, and users run an Apex service that creates a plain-text audit export. The export must show each stored amount in the locale of the user running the service, such as using that locale's decimal separator. It must also identify the currency in which each record is stored. The service must not convert amounts into a different currency.

Which implementation meets the export requirements?

Show Answer

Correct Answer

A

Option A is correct because Decimal.format() formats the number using the running user's locale, while CurrencyIsoCode preserves each record's original currency. Option B is not correct because conversion changes the amount to the running user's currency. Option C is not correct because String.valueOf() does not provide locale-specific number formatting. Option D is not correct because the corporate currency code may not match the record's currency.

Question 2 of 15 Single Choice

A company stores confidential review records in the custom object Invoice__c, whose organization-wide default is Private. A review service must grant specific finance users read access to selected invoices. Invoice ownership changes regularly, but those grants must remain in place after a transfer. The company does not want to broaden access for other users or depend on related Account access.

Which approach best meets the access requirement?

Show Answer

Correct Answer

A

Option A is correct because Apex-managed shares on the custom object can use a custom Apex Sharing Reason, and those shares remain identifiable when ownership changes. Option B is not correct because manual shares can be removed during an ownership change. Option C is not correct because Account team membership does not grant the required direct access to every custom invoice. Option D grants broader access than required.

Question 3 of 15 Single Choice

A service applies a configurable review limit that may differ by organization, profile, or individual user. Administrators must maintain these values in Salesforce setup without changing Apex, and the service must use the most specific applicable value for the user making the request. The values are operational configuration rather than packaged rules that must be deployed as metadata records.

Which configuration mechanism should the developer use?

Show Answer

Correct Answer

A

Option A is correct because hierarchy custom settings support organization, profile, and user values, and Apex can retrieve the effective setting for the current user. Option B is not correct because list custom settings do not provide hierarchy-based overrides. Option C is not correct because custom metadata does not resolve user-level hierarchy values. Option D is not correct because labels do not provide this configuration hierarchy or an effective-user lookup.

2

Process Automation, Logic, and Integration

27% of the exam

This topic covers how declarative automation and Apex interact during record transactions, and how to select suitable logic and integration patterns. Candidates must apply trigger practices, transaction controls, SOQL features, and asynchronous Apex to meet stated requirements.

Question 4 of 15 Single Choice

A custom order service inserts an order and then inserts its order lines in the same Apex transaction. The business requires the order and every line to be saved together, or for none of them to remain. The service catches DML exceptions to return a readable message to the calling user, and a failed line insert must not leave an order without its lines.

Which implementation best meets the requirement?

Show Answer

Correct Answer

B

Option B is correct because the savepoint lets the service undo the parent insert when a child insert fails, while returning a controlled error. Option A is not correct because partial success conflicts with the requirement that all records persist or none do. Option C is not correct because separate Queueable transactions cannot provide one atomic commit. Option D is not correct because catching an exception does not undo earlier successful DML.

Question 5 of 15 Single Choice

A warehouse reservation service queries inventory records with available quantities, calculates the quantity needed for an order, and then updates those records. Two sales teams can submit reservations at the same time, and both requests must not reserve the same stock. The service must select the specific inventory rows it will update, and it must detect when the remaining quantity is insufficient.

Which change to the SOQL query best meets the concurrency requirement?

Show Answer

Correct Answer

A

Option A is correct because FOR UPDATE locks the queried inventory rows while the transaction checks and updates available quantities. Option B is not correct because WITH USER_MODE enforces access checks but does not prevent concurrent updates. Option C is not correct because ALL ROWS includes deleted records rather than establishing a lock. Option D is not correct because aggregation returns summary values, not the individual rows that must be reserved.

Question 6 of 15 Single Choice

A bulk invoice import can insert up to 20 invoices in one transaction. Each invoice must be sent to an external billing service, but the remote request must run only after the Salesforce transaction commits. The support team also needs to retain an asynchronous job identifier so it can check the job status later. The integration must handle the invoice IDs as one queued unit of work.

Which integration approach best meets these requirements?

Show Answer

Correct Answer

B

Option B is correct because enqueueing a Queueable job defers callouts from the transaction and returns a job ID that the service can retain. Option A is not correct because a future method does not return its asynchronous job ID to the caller. Option C is not correct because trigger-time callouts occur before the invoice transaction commits. Option D is not correct because a platform event identifier is not the Queueable job status identifier requested.

3

User Interface

20% of the exam

Candidates must select suitable Salesforce interface technologies and techniques for the requirements of a workplace application. They must also assess controller changes, user-facing errors, partial page updates, and responsive component behavior.

Question 7 of 15 Single Choice

A Lightning web component submits a service request by calling an Apex method imperatively. The method inserts a custom record, and the component displays messages from its rejected promise. The controller currently lets a DmlException propagate, but the support team requires diagnostic details in its existing log and a clear message for users that does not expose internal field or database information.

Which change should the developer make to the Apex controller so the component can show a safe, useful error to the user?

Show Answer

Correct Answer

A

Option A is correct because the controller can log diagnostic details while AuraHandledException provides a controlled message for the component to display. Option B is not correct because a method that performs DML cannot be cacheable. Option C exposes internal exception details. Option D hides the failure and gives the component no reliable error to display.

Question 8 of 15 Single Choice

A Visualforce page lets service agents choose a request category and click a command button that runs a controller action. The action updates a status message shown in an output panel. Agents must remain on the same page, see only that panel update, and receive a visible indication while the request is processing. The current button submits the page with a full refresh.

Which Visualforce change best meets the requirements?

Show Answer

Correct Answer

A

Option A is correct because rerender targets the result panel during the command button's AJAX request, while apex:actionStatus can show activity during that request. Option B is not correct because immediate changes validation behavior and does not itself request a partial refresh. Option C is not correct because outputPanel does not invoke the controller action. Option D reloads the page.

Question 9 of 15 Single Choice

A Lightning web component appears on a Salesforce record page used on desktop monitors and phones. It contains a detailed panel and a compact summary, and the requirement is to show the summary instead of the detail panel on narrow screens. The display must adapt when the viewport changes, and the change must not require an Apex request or a page reload.

Which implementation best satisfies the responsive display requirement?

Show Answer

Correct Answer

A

Option A is correct because a CSS media query responds to the viewport width and can change the displayed panels without a server request. Option B is not correct because Apex does not provide a reliable client viewport measurement. Option C is not correct because the Aura $Browser global is not a Lightning web component template feature. Option D is not correct because Visualforce rerendering does not automatically respond to window resizing.

4

Testing, Debugging, and Deployment

20% of the exam

This topic covers techniques for testing and debugging Apex, Lightning components, and Visualforce code, along with tools for source-driven deployments. Candidates must be able to isolate causes of test failures, choose suitable test doubles, and plan a deployment process that meets its release requirements.

Question 10 of 15 Single Choice

A team maintains an Apex service that sends a JSON request through a Named Credential and converts the response into a quote object. Its unit test must verify the HTTP method, request body, and parsed result. The continuous integration environment has no network access, and the test must not depend on endpoint credentials or live service availability.

Which testing approach best meets the requirement?

Show Answer

Correct Answer

B

Option B is correct because the mock can inspect the outbound request and return a controlled response without network access, allowing the test to verify parsing. Option A is not correct because Apex tests cannot make the live callout. Option C is not correct because test setup cannot create an external credential. Option D is not correct because SeeAllData does not supply callout behavior.

Question 11 of 15 Single Choice

A trigger handler sets Approval_Date__c only when an update changes Stage__c from Pending to Approved. A unit test creates a record with Stage__c already set to Approved, updates its Description, and then finds Approval_Date__c blank. The test runs without exceptions, and the handler is covered by other tests, but this assertion fails consistently.

What change should the developer make to the test?

Show Answer

Correct Answer

B

Option B is correct because the trigger requires an actual transition from Pending to Approved, which makes the old and new values satisfy its condition. Option A is not correct because changing Description does not create that transition. Option C is not correct because test boundaries do not alter field values. Option D is not correct because existing records do not fix the test's missing transition.

Question 12 of 15 Single Choice

A release team stores its Salesforce DX project in version control and deploys from a reviewed source directory. The production change requires local tests, and the release window is short. The team wants to validate the exact changes against production before approval, then deploy those validated changes without running the validation tests again.

Which deployment process best satisfies the release requirements?

Show Answer

Correct Answer

A

Option A is correct because production validation runs the required tests against the intended target, and quick deploy uses that successful validation without repeating the deployment validation. Option B is not correct because it starts a new deployment rather than reusing the validation. Option C is not correct because source tracking push is not the production release process. Option D is not correct because a scratch org validation cannot authorize a production quick deploy.

5

Performance

18% of the exam

This topic covers techniques for improving Apex and application performance, especially when code processes large data sets. Candidates must identify inefficient logic and choose query structures, reusable code, and execution patterns that meet performance requirements.

Question 13 of 15 Single Choice

An after-update trigger processes batches of up to 200 Account records. For each account, the current handler queries its open Opportunities and counts them in Apex. The organization has tens of millions of Opportunities, and the trigger must update a count field on each affected Account within the same transaction. The count must include only open Opportunities.

Which change best meets the requirement while limiting query rows and Apex heap use?

Show Answer

Correct Answer

A

Option A is correct because grouping the query by AccountId returns counts for the affected accounts without loading each opportunity record into Apex. Option B is not correct because it performs a query for each account and can exceed transaction limits. Option C is not correct because retrieving organization-wide rows wastes query capacity and heap. Option D is not correct because separate jobs add overhead and delay the required trigger calculation.

Question 14 of 15 Single Choice

A service returns custom records to an internal client in pages of 500, ordered from oldest to newest. The object contains several million records, and users may browse far beyond the first pages. The current SOQL query uses LIMIT and OFFSET, and later page requests are increasingly slow. The client can send back the CreatedDate and Id of the last record it received.

Which query approach best supports the required pagination at this data volume?

Show Answer

Correct Answer

B

Option B is correct because using the last CreatedDate and Id as a cursor avoids scanning and skipping large offsets while preserving a stable order. Option A is not correct because a larger LIMIT does not remove the cost or platform limit associated with deep offsets. Option C is not correct because loading all records consumes excessive heap. Option D is not correct because a smaller page does not make deep OFFSET pagination efficient.

Question 15 of 15 Single Choice

Two Apex trigger handlers calculate invoice totals using the same related rate records. Each handler currently contains copied logic and performs a rate query inside a loop, which causes limit failures for bulk updates. The handlers must remain separate because they respond to different record events, but their calculation rules must stay consistent and process batches of up to 200 invoices.

Which design best improves performance while allowing both entry points to reuse the calculation?

Show Answer

Correct Answer

A

Option A is correct because both handlers can share one bulk-capable method that queries rates for the full invoice set and returns reusable results. Option B is not correct because duplicated logic retains the per-invoice query cost and makes changes harder to maintain. Option C is not correct because a shared method still performs one query per invoice. Option D is not correct because a Visualforce controller is not an appropriate service layer for trigger processing.

Continue Your Plat-Dev-301 Preparation

You have seen 15 questions from a full set of 161. Prepare with the Plat-Dev-301 dumps PDF and the Web-Based Practice Test.

PDF

  • Compatible with All Devices
  • Printable Format
  • No Download Limits

Practice Test

  • Check your timing and weak areas
  • No Practice Limits
  • Regularly Updated
Get Full Access
  • 100% Money-Back Guarantee
  • 90 Days Free Updates
  • Instant Access

Frequently Asked Questions

Which part of Plat-Dev-301 tends to challenge experienced Apex developers most?

The Process Automation, Logic, and Integration section carries the largest topic weight at 27 percent. Its scenarios require you to reason about declarative automation and Apex within the same record transaction, then choose suitable trigger practices, transaction controls, SOQL features, or asynchronous Apex. Knowing each feature separately is not enough if you cannot predict how they interact. Practise tracing a transaction from record change through automation, and write down where limits or transaction boundaries affect your choice.

Why can the Performance section be difficult even when I know Apex well?

The exam tests whether your code choices suit large data sets, not simply whether the code compiles. You may need to spot inefficient logic and select query structures, reusable code, or execution patterns that meet stated performance requirements. That demands attention to how much work a solution performs as records increase. Review your own code for repeated queries and loops that scale poorly, then practise explaining why a more efficient structure fits the scenario.

I understand automation features individually, but struggle to predict their combined behavior. How should I prepare?

That gap is common because the exam asks how declarative automation and Apex behave during record transactions, rather than testing them as isolated topics. Build a few transaction maps that show the order and purpose of the automation involved in a record change. The Exam4Success PDF can support review when you are away from a Salesforce environment. Use it to reinforce concepts, then apply them to scenarios by identifying the requirement and transaction behavior before choosing a pattern.

How can I tell whether my weak area is knowledge or exam pacing?

Plat-Dev-301 has 60 questions and up to five unscored questions, with 120 minutes for the exam. A Practice Test can help you distinguish timing problems from topic gaps by showing where your preparation needs attention. After an attempt, review missed or uncertain items by topic, especially Process Automation, Logic, and Integration, which accounts for 27 percent. Record whether each miss came from a misunderstood requirement, a platform concept, or spending too long on a scenario.

What practical capability should I expect to strengthen while preparing for Platform Developer II?

Preparation focuses on making sound development decisions across Salesforce, including how configuration, sharing, localization, and multiple currencies affect Apex. It also covers interface choices, testing approaches, deployments, and performance for larger data sets. These are useful skills when a development task involves more than writing a working method. As you study, connect each topic to a decision you would make on a real application, such as choosing a suitable interface technique for a workplace requirement.

Will this exam help me assess my readiness to own more complex Salesforce application work?

The objectives span advanced Apex fundamentals, automation and integrations, user interfaces, testing and deployment, and performance. Preparing for them can help you identify whether you can select an approach that meets a requirement, test it effectively, and account for platform behavior. The exam itself is not a substitute for project experience, but its scenarios can reveal areas to strengthen. Choose one recent application task and assess how you would test, deploy, and monitor its solution using the exam topics.

How should I decide whether I am ready to book the exam?

First check that you can explain and apply the objectives across all five topic areas, rather than relying on strength in Apex alone. The exam is proctored onsite at a testing center or in an online environment, and it is offered in English, French, and Japanese. Spanish is listed as coming in September 2026. Use the Exam4Success Practice Test to check timing and identify weak topics, then revisit any area where your reasoning is uncertain before deciding.

What should I study first if my preparation time is limited?

Start with Process Automation, Logic, and Integration, which represents 27 percent of the exam, then plan time for User Interface and Testing, Debugging, and Deployment, each at 20 percent. Performance accounts for 18 percent, while Advanced Developer Fundamentals accounts for 15 percent. Do not skip a lower-weight area, since each tests distinct platform decisions. The Exam4Success PDF can help structure topic review away from a lab. Make a short plan that gives extra practice to higher-weight sections and reserves review time for all five.

Exam4Success is an independent exam preparation provider and is not affiliated with or endorsed by Salesforce.