Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Free Exam Questions

PDII Exam Questions & Answers

Salesforce Certified Platform Developer II (old)  •  Salesforce

202 Questions 120 min Updated Sep 2026 99% Pass Rate
Get Full Access

100% money-back guarantee

Sample PDII Questions

Practice with real exam-style questions, each with the verified correct answer and explanation.

Q1 MultipleChoice

An Apex class does not achieve expected code coverage. The testsetup method explicitly calls a method In the Apex class..

How can the developer generate the code coverage?

Correct Answer: D
Explanation:

When an Apex class does not achieve the expected code coverage, it suggests that the test methods are not executing parts of the class. The @testvisible annotation can be used to increase code coverage by allowing test methods to access private or protected members of another class. This enables the test method to call methods that may not be directly accessible, but it is not a direct means to generate code coverage. The code coverage is actually achieved when the test methods execute the code within these methods. Therefore, to properly generate code coverage, the developer must ensure that the test methods call the relevant portions of the code that need to be covered. The use of @testvisible can facilitate this process by making otherwise inaccessible code available for testing.


Apex Developer Guide - Testing Best Practices

Apex Developer Guide - @testVisible Annotation

Q2 MultipleChoice

Consider the following code snippet:

How should the component communicate to the

component that an order has been selected by the user?

Correct Answer: D
Explanation:

Create and dispatch a custom event. This approach allows LWC components to communicate effectively, maintaining component encapsulation and reusability.

Q3 MultipleChoice

Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called Candidate was created with organization-wide defaults set to Private. A lookup on the Candidate object sets an employee as an Interviewer.

What should be used to automatically give Read access to the record when the lookup field is set to the Interviewer user?

Correct Answer: C
Explanation:

A sharing rule can be used to automatically give Read access to a user specified in a lookup field. Sharing rules are declarative and can be based on criteria such as the value of a lookup field. This can be done without writing code and is maintainable through the Salesforce UI.

Q4 MultipleChoice

A developer is responsible for formulating the deployment process for a Salesforce project. The project follows a source-driven development approach, and the developer wants to ensure efficient deployment and version control of the metadata changes.

Which tool or mechanism should be utilized for managing the source-driven deployment process?

Correct Answer: D
Explanation:

Salesforce CLI with Salesforce DX is the best tool for managing a source-driven deployment process. It facilitates version control, scriptable deployment, and rollback, and is optimized for collaboration and continuous integration.

Q5 MultipleChoice

A developer is trying to access org data from within a test class.

Which sObject type requires the test class to have the (seeAllData=true)

annotation?

Correct Answer: C
Explanation:

https://salesforce.stackexchange.com/questions/149110/when-is-it-appropriate-to-use-seealldata-true

Get access to all 202 verified questions with detailed answers.

Unlock All PDII Questions

Frequently Asked Questions

You must have a valid Salesforce Platform Developer I (PDI) certification before attempting the PDII exam. It's also recommended to have 2+ years of experience developing custom applications on the Salesforce platform using Apex, Visualforce, and Lightning components.

The exam is 120 minutes long with 60 multiple-choice questions. You need to achieve a minimum score of 63% to pass the certification.

The exam covers advanced Apex development, asynchronous programming, security and sharing, testing and debugging, and performance optimization. It also includes topics on advanced Lightning component development, batch processing, and integration patterns.

The exam typically costs $200 USD, though pricing may vary by region. You can retake the exam, but must wait 14 days after your previous attempt before scheduling another test.

Salesforce offers official study guides, practice exams, and trailhead learning paths specifically designed for PDII preparation. Additionally, many third-party platforms offer exam prep courses, and joining Salesforce developer communities can provide valuable peer support and study materials.
Exam Details
  • Exam CodePDII
  • VendorSalesforce
  • Total Questions202
  • Duration120 min
  • LanguageEnglish
  • Last UpdatedSep 6, 2026
4.9/5

Pass PDII First Time

Get all 202 exam questions with verified answers and 90-day free updates.

Buy Now & Pass
  • PDF + Practice Test Bundle
  • 90-Day Free Updates
  • 100% Money-Back Guarantee
  • Instant Download
  • 24/7 Customer Support
99% Pass Rate Trusted by 50,000+ IT professionals