
Salesforce Platform Developer II Exam Practice Questions
US$39
Every question with the correct answer and why the other options are wrong.
Card, Apple Pay, Google Pay or PayPal. Your PDF is prepared and emailed to you after checkout, usually within a few hours.
I struggled initially with data integration, but the study resources helped clarify concepts. With steady effort, I passed PDII. I appreciate the support from Cert Stash on tricky parts.
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?
Show answer and explanation
Correct answer: C. Use lazy loading to load the data on demand, instead of the controller's constructor.
Lazy loading defers data retrieval until it is actually needed, reducing the initial page load time and the amount of data that must be processed upfront. This is the optimal strategy for pages displaying large datasets. Option A offloads processing but doesn't reduce data transfer. Option B marks variables as transient to exclude them from viewstate, but doesn't solve loading large amounts of data initially. Option D uses actionPoller to load data asynchronously but still loads all data eventually, not on-demand.
Why the other options are wrong
- A. Moving processing to the browser still requires all data to be transferred initially, not reducing the load time problem.
- B. Transient keywords prevent viewstate bloat but don't address the core issue of loading all data upfront.
- D. ActionPoller loads data asynchronously but still retrieves the entire dataset rather than loading on demand.
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?
Show answer and explanation
Correct answer: D. An Apex Trigger that creates Apex Managed Sharing records based on the junction object's relationships
Apex Managed Sharing creates dynamic sharing records based on the relationships defined in the junction object, allowing certain community users to access multiple department Account records based on their Contact relationships. This provides fine-grained, relationship-based access control that adapts to the complex Account hierarchy. Option A using without sharing would expose too much data. Option B is limited to owner-based filtering. Option C reports don't enforce sharing rules for record access.
Why the other options are wrong
- A. Without sharing bypasses sharing rules entirely, exposing data to users who shouldn't have access rather than controlling access properly.
- B. List view filters based on owner don't accommodate junction object relationships or cross-department access scenarios.
- C. Reports and components don't enforce data access restrictions; they simply display data that users already have permission to see.
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?
Show answer and explanation
Correct answer: D. Named Credential
Named Credentials encapsulate authentication details and endpoints, allowing the underlying authentication method to be changed without modifying Apex code. The code calls the named credential, not the authentication directly, making it vendor-agnostic. Option A stores configuration but not authentication methods. Option B stores settings but requires code changes to swap authentication types. Option C is not a real Salesforce feature for this purpose.
Why the other options are wrong
- A. Custom Metadata stores reference data but doesn't provide a mechanism to abstract authentication away from code.
- B. Custom Settings would require code changes to handle different authentication types when switching vendors.
- C. Dynamic Endpoint is not a standard Salesforce feature for managing authentication abstraction.
1 review for Salesforce Platform Developer II Exam Practice Questions
Only logged in customers who have purchased this product may leave a review.
How much of the Salesforce Platform Developer II bank is free?
424 questions in the bankEach step includes the one before, so buying only adds new questions.
- You are here10questionsFree sampleThree on this page, all ten as a PDF.Download the sample
- 10625% of the bankPractice pageFree on the site, every answer explained.Go to the practice page
- 197the first half of the packHalf PackFree by email, as one PDF, every answer explained.Get the Half Pack
- 424100%, the whole bankFull pack, US$39Plus the questions-only PDF, monthly updates, refund if you fail.Get the full pack
What’s in the Salesforce Platform Developer II pack
- 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
- Delivered by email shortly after checkout
- 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.
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.
Questions before you buy
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.
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, or swap it for any other pack if you would rather keep studying. 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.
What is your pass rate?
99% of customers who prepare with a CertStash pack pass. If you do not, we refund the pack, or swap it for another pack.
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.





Jude Lambert –
I struggled initially with data integration, but the study resources helped clarify concepts. With steady effort, I passed PDII. I appreciate the support from Cert Stash on tricky parts.