SALESFORCE · Platform Developer II

Salesforce Platform Developer II Exam Practice Questions

424 questionsPDF by emailUpdated September 2026

US$39

Try 10 questions free

Card, Apple Pay or Google Pay. Your PDF is sent by email as soon as you check out.

Pass or your money backFail the exam after using this pack and we refund it. How the guarantee works
Category:
TRY BEFORE YOU BUY

Three of the 424 questions in this pack

Question 1

A Visualforce page loads slowly due to the large amount of data it displays. Which strategy can a developer use to improve the performance?

  1. Use Javascript to move data processing to the browser instead of the controller.
  2. Use the transient keywords for the List variables used in the custom controller.
  3. Use lazy loading to load the data on demand, instead of the controller's constructor.
  4. Use an <apex:actionPoller> in the page to load all of the data asynchronously.
Show answer and explanation

Correct answer: C. Use lazy loading to load the data on demand, instead of the controller's constructor.

of the controller's constructor. Lazy loading defers data retrieval until it is actually needed, reducing the initial page load time and controller overhead. By loading data on demand rather than in the constructor, the page renders faster and only fetches the necessary information when the user requests it. This is the most effective strategy for handling large datasets in Visualforce.

Why the other options are wrong

  • A. Moving data processing to the browser with JavaScript does not reduce server load or improve initial page rendering time.
  • B. The transient keyword prevents variables from being stored in ViewState, but it does not reduce the amount of data being queried or processed by the controller.
  • D. actionPoller loads data asynchronously but still loads all data at once rather than on demand, and it does not improve the initial page load.

Question 2

Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments' containers, based on a junction object that relates the Contact to the various Account records that represent the departments. Which solution solves these requirements?

  1. A Visualforce page that uses a Custom Controller that specifies without sharing to expose the records
  2. A Custom List View on the junction object with filters that will show the proper records based on owner
  3. A Custom Report Type and a report Lightning Component on the Community Home Page
  4. An Apex Trigger that creates Apex Managed Sharing records based on the junction object's relationships
Show answer and explanation

Correct answer: D. An Apex Trigger that creates Apex Managed Sharing records based on the junction object's relationships

records based on the junction object's relationships An Apex Managed Sharing trigger is the correct solution because it allows granular, dynamic sharing based on the junction object relationships. When a contact is related to multiple department accounts through the junction object, the trigger can automatically create sharing records that grant the community user access to those specific accounts. This provides the complex, hierarchy-aware access control required without relying on ownership or static views.

Why the other options are wrong

  • A. A Visualforce page with a custom controller using without sharing can expose records, but it does not automatically manage the sharing relationships based on the junction object and does not scale to the dynamic nature of account hierarchies.
  • B. A custom list view filters records based on static criteria and owner, but it cannot dynamically grant access based on junction object relationships or provide the granular control needed for complex account hierarchies.
  • C. A custom report type and Lightning component displays data but does not actually grant sharing access to community users for the underlying records they need to view.

Question 3

Universal Containers wants to use an external Web Service provided by a third-party vendor to validate that shipping and billing addresses are correct. The current vendor uses basic password authentication, but Universal Containers might switch to a different vendor who uses OAuth. What would allow Universal Containers to switch vendors without updating the code to handle authentication?

  1. Custom Metadata
  2. Custom Setting (List)
  3. Dynamic Endpoint
  4. Named Credential
Show answer and explanation

Correct answer: D. Named Credential

Named Credentials encapsulate authentication details and endpoint information in a single, reusable configuration that can be referenced in Apex code without hardcoding authentication logic. By abstracting authentication away from the code, a Named Credential allows the authentication method and endpoint to be changed in setup without modifying Apex, enabling a switch from basic password authentication to OAuth or to a different vendor entirely.

Why the other options are wrong

  • A. Custom Metadata can store configuration values but does not provide built-in authentication handling or the ability to dynamically manage different authentication protocols.
  • B. Custom Settings store data values but do not provide authentication protocol handling or the abstraction layer needed to switch authentication methods transparently.
  • C. A dynamic endpoint as a concept does not exist as a Salesforce feature; the term does not represent a mechanism for managing authentication or vendor switching.

See all 10 free questions Get the full pack, US$39

424 practice questions for Salesforce Certified Platform Developer II, with full explanations.

Every question comes with the correct answer, the reasoning behind it, and a short note on why each wrong option is wrong. Work through it once with the answers, then again with the questions-only copy under exam conditions.

  • 424 questions across all five Platform Developer II exam sections
  • Answers and explanations for every question, including the wrong options
  • A questions-only PDF for timed practice runs
  • Instant delivery by email the moment you check out
  • Free monthly updates for as long as the exam is live
  • Pass or your money back

A Platform Developer II attempt costs US$200. This pack is US$39, paid once.

Try 10 questions free before you buy.

Last updated September 2026 · 424 questions

What makes the Platform Developer II hard

Platform Developer II is the exam that separates candidates who can write Apex from those who can design it. Every question assumes Platform Developer level knowledge and asks what you would do at scale: bulkified, asynchronous, governed by limits, and testable. The format is 60 scored questions plus up to five unscored in 120 minutes, with a 70% pass mark, and the questions tend to be long: a requirement plus a code sample or an architecture, with several options that would all compile.

Process Automation, Logic and Integration is the largest section at 27%: choosing between Flow, triggers and Apex, trigger frameworks and recursion control, asynchronous Apex (future, queueable, batch and scheduled jobs) and when each fits, platform events and change data capture, REST and SOAP callouts, named credentials, and building Apex REST services. User Interface and Testing, Debugging and Deployment each carry 20%. User Interface covers Lightning Web Components, the component lifecycle, wire and imperative Apex, Lightning Data Service, and events between components. Testing covers test data factories, mocking callouts, test isolation, code coverage strategy, debug logs, the Apex Replay Debugger, and deployment through change sets, the Metadata API, scratch orgs and unlocked packages.

Performance sits at 18%: SOQL selectivity, indexes, large data volumes, skinny tables, governor limits, caching with Platform Cache, and reducing view state. Advanced Developer Fundamentals, the smallest section at 15%, covers the security model in code, sharing keywords, CRUD and field level security enforcement, custom metadata and custom settings, and common design patterns. Reading the code sample before the answer options is usually the fastest way to the right one, since the answer is often in what the sample does wrong.

About the exam

The Salesforce Certified Platform Developer II credential validates advanced programmatic development on the Salesforce Platform: advanced developer fundamentals, process automation, logic and integration, user interface with Lightning Web Components, performance, and testing, debugging and deployment. It requires the Salesforce Certified Platform Developer credential as a prerequisite.

Exam domains

  • Advanced Developer Fundamentals: 15%
  • Process Automation, Logic and Integration: 27%
  • User Interface: 20%
  • Performance: 18%
  • Testing, Debugging and Deployment: 20%

60 multiple-choice and multiple-select questions plus up to 5 unscored, 120 minutes, pass mark 70%, US$200 per attempt (US$100 for a retake), delivered through Trailhead Academy at Pearson VUE test centres or online, maintained through annual release maintenance modules.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Questions before you buy

What do I get when I buy the Salesforce Platform Developer II pack?

424 practice questions as a PDF, each with the correct answer, a full explanation and a note on why the other options are wrong, plus a separate questions-only PDF for timed practice.

How quickly do I receive it?

Your PDF is prepared and sent to your email address after checkout, and you get a confirmation as soon as it is on its way.

Is there a free sample?

Yes. Ten questions from this pack, with answers and explanations, are free on this page and as a PDF, so you can judge the quality before you pay.

Are updates included?

Yes. The pack is updated every month for as long as the exam is live, and updates are free for everyone who has bought it.

What if I fail the exam?

We refund the pack. Sit the exam 7 to 30 days after buying, then send your official score report within 7 days of the exam date, as set out in the refund policy.

Can I share it with colleagues?

Each purchase is licensed to one person. For a team, school or training organisation, email support@certstash.com for a licence that fits.