Skip to content

Certified Platform Developer II

Here you have the best Salesforce Certified Platform Developer II practice exam questions

  • Preview the first 5 of 424 questions for free
  • These questions were last updated on May 12, 2026
  • This site is not affiliated with or endorsed by Salesforce.
Question 1 of 424

A Visualforce page loads slowly due to the large amount of data it displays.

Which strategy can a developer use to improve the performance?

Answer

Suggested Answer

The suggested answer is C.

To improve the performance of a Visualforce page that loads slowly due to a large amount of data, a developer can use lazy loading to load the data on demand, instead of in the controller's constructor. This approach ensures that the page only loads necessary data initially, thereby reducing the initial load time and improving performance.

Question 2 of 424

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?

Answer

Suggested Answer

The suggested answer is D.

To satisfy the requirement that specific community users within the same Account hierarchy be able to see several departments' containers based on a junction object that relates the Contact to various Account records, an Apex Trigger is the most appropriate solution. This is because an Apex Trigger can create Apex Managed Sharing records, which allows for programmatic sharing of records based on complex relationships that can't be managed by standard sharing rules or configurations. This approach provides the flexibility needed to share records dynamically based on the junction object's relationships.

Community Votes4 votes
DSuggested
75%
C
25%
Question 3 of 424

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?

Answer

Suggested Answer

The suggested answer is D.

Named Credentials in Salesforce allow you to specify the URL of a callout endpoint and its authentication parameters. By using Named Credentials, you can abstract the details of the authentication process. This means that if Universal Containers switches from a vendor using basic password authentication to one using OAuth, the underlying code does not need to be modified to handle the different types of authentication. Instead, only the Named Credential configuration needs to be updated, making it the most flexible and maintainable solution for switching vendors without updating code.

Question 4 of 424

A company has a Lightning Page with many Lightning Components, some that cache reference data. It is reported that the page does not always show the MOST current reference data.

What can a developer use to analyze and diagnose the problem in the Lightning Page?

Answer

Suggested Answer

The suggested answer is D.

To analyze and diagnose issues related to cached reference data in a Lightning Page, a developer should use the Salesforce Lightning Inspector Storage Tab. This tab shows the client-side storage for Lightning applications, which includes actions marked as storable. By examining this storage, the developer can determine whether the most current reference data is being correctly cached and retrieved.

Community Votes1 vote
DSuggested
100%
Question 5 of 424

A company has code to update a Request and Request Lines and make a callout to their external ERP system's REST endpoint with the updated records.

Exam Certified Platform Developer II: Question 5 - Image 1

The CalloutUtil.makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error.

What should be done to address the problem?

Answer

Suggested Answer

The suggested answer is C.

The error 'You have uncommitted work pending. Please commit or rollback before calling out' occurs because a callout cannot be made after DML operations within a single transaction. By changing the CalloutUtil.makeRestCallout to an @future method, the callout will be executed in a separate asynchronous transaction, thereby resolving the issue. Future methods allow for callouts to be performed after the current transaction has been committed. This is necessary in order to avoid the pending uncommitted work error.

Community Votes9 votes
CSuggested
89%
B
11%

419 more questions await

Unlock the full Salesforce Certified Platform Developer II question bank

5 of 424 completed1%

Choose your plan

One-time payment · No subscription · No hidden fees

Standard

Quick preparation

$25

30 days access

30 day access to all questions
Instant free updates
Highest passing rate in industry
Printable PDF download
No money-back guarantee
Best Value

Premium

Guaranteed success

$60$35

90 days access

PDF

Printable PDF download

New

Save every question as a PDF for offline study or printing.

90 day access to all questions
Instant free updates
Highest passing rate in industry
Pass guaranteed or money back

100% Money-Back Guarantee

Don't pass? Full refund.

4.9/5

Based on 4,748+ reviews

Trusted by thousands of professionals

Join certified professionals who passed their exams with Examice

Examice helped me pass my AWS certification on the first try! The questions were incredibly similar to the real exam. Comments helped me understand answers I was struggling with.
S
Sarah C.
Cloud Engineer
Great results in a short prep time. Passed on my first attempt.
D
David K.
Network Engineer
I needed to pass an exam for work, and this website delivered. The quality for the price is outstanding, and the support is really good. I passed without issues.
M
Michael R.
Security Analyst
Skeptical at first, but impressed. Every question included clear, detailed explanations.
L
Lisa M.
Solutions Architect
The guarantee gave me confidence to invest in the premium package. Turns out I didn't need it. Passed comfortably. The explanations for each answer were incredibly detailed and helped me grasp security concepts that I'd been struggling with for months.
R
Robert H.
Cybersecurity Consultant
Used Examice for my PMP certification. The questions were well structured and covered all exam domains thoroughly.
J
James T.
IT Manager
After failing my first attempt with other study materials, I switched to Examice and passed confidently on my second attempt.
A
Anna W.
Data Engineer
The premium package was worth it. 90 days of access gave me the flexibility to study when it worked for me, without feeling rushed.
E
Emily J.
DevOps Engineer
Straightforward questions that matched the real exam perfectly. Studied for two weeks and passed with a great score.
K
Karen P.
Systems Administrator

Frequently Asked Questions

Everything you need to know. Contact us for more.

Our Salesforce Certified Platform Developer II questions are based on real exam experiences and are continuously updated to match the current exam format. We maintain a +99% pass rate because our questions closely mirror what you'll see on the actual exam.

With our Premium package, you get a 100% money-back guarantee. If you don't pass your exam after studying with our materials, simply contact us with your exam results and we'll refund your purchase. Terms and conditions apply, read our full refund policy to learn more.

Our question bank is updated regularly based on feedback from recent exam takers. We typically review and update our content every week with reports about new questions or changes to the exam format.

Standard package access cannot be extended. However, Premium package gives you 90 days which is typically more than enough time to prepare thoroughly. If you need additional time, you can purchase a new package at any time.

This is a one-time payment with no recurring charges. Once you purchase, you get full access to all exam questions for the duration of your package (30 days for Standard, 90 days for Premium). No hidden fees or automatic renewals.

Pass on your first try

All 424questions · Detailed explanations · Printable PDF · 90 days access

Money-back guaranteeSecure checkout
$35

one-time payment