Salesforce Developers

Salesforce PDII Practice Test & Study Guide

Salesforce Certified Platform Developer II ( Plat-Dev-301 )

Exam code
PDII
Questions
161
Updated
25 Nov 2026

What's in the PDII study guide

  • 161practice questions with answers
  • PDFread and print on any device
  • Test enginepractice and exam modes online
  • 90 daysof free updates
  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email

Price$45

Choose a format

Prices in USD. Downloads appear in My Account once your order is complete.

  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email
Free demo

PDII sample questions

Check the style and quality of the material before you buy.

Question 1

Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates? Choose 3 answers

  • A. <apex:actionSupport>
  • B. <apex:commandButton>
  • C. <apex:form>
  • D. <apex:actionStatus>
  • E.<apex:commandLink>

Answer: A,B,E

Question 2

The test method above calls an @future method that increments the Number_of_Times_Viewed__c value. The assertion is failing because the Number_of_Times_Viewed__c equals 0. What is the optimal way to fix this?

  • A. Change the initialization to acct.Number_Of_Times_Viewed__c = 1.
  • B. Change the assertion to System.assertEquals(0, acctAfter.Number_Of_Times_Viewed__c).
  • C. Add Test.startTest() before and Test.stopTest() after AuditUtil.incrementViewed.
  • D. Add Test.startTest() before and Test.stopTest() after insert acct

Answer: A

Question 3

A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the Account record page. Which design resource configuration should be used?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D

Answer: D

Question 4

A developer is writing code that requires making callouts to an external web service. Which scenario necessitates that the callout be made in an @future method?

  • A. The callouts will be made in an Apex Test class.
  • B. The callouts will be made in an Apex Trigger.
  • C. The callout could take longer than 60 seconds to complete.
  • D. over 10 callouts will be made in a single transaction.

Answer: B

Question 5

For compliance purposes, a company is required to track long-term product usage in their org. The information that they need to log will be collected from more than one object and. over time, they predict they will have hundreds of millions of records.What should a developer use to implement this?

  • A. Field Audit Trail
  • B. Setup Audit Trail
  • C. Field History Tracking
  • D. Bin objects

Answer: D

Question 6

How can a developer efficiently incorporate multiple JavaScript libraries, such as JQuery and MomenUS, in a Lightning Component?

  • A. Implement the libraries in separate helper files.
  • B. Use CONs with script attributes
  • C. Use JavaScript remoting and script tags.
  • D. Join multiple assets from a static resource.

Answer: D

Question 7

A company has a custom object, Order__c, that has a required, unique, external ID field called Order_Number__c. Which statement should be used to perform the DML necessary to insert new records and update existing records in a List of Order__c records?

  • A. upsert orders;
  • B. merge orders;
  • C. merge orders Order_Number__c;
  • D. upsert orders Order_Number__c;

Answer: D

Question 8

There are user complaints about slow render times of a custom data table within a visualforce page that loads thousands of Account records at once.What can a developer do to help alleviate such issues?

  • A. Use the standard Account List controller and implement pagination.
  • B. Use JavaScript remoting to query the accounts.
  • C. Use the transient keyword in the Apex code when querying the Account records.
  • D. Upload a third-party data table library as a static resource.

Answer: A

Question 9

A company has reference data stored in multiple Custom Metadata records that represent default information for certain.When a Contact is inserted, the default information should be set on the Contact from the Custom Metadata records .. Address information.What is the optimal way to automate this?

  • A. Process Builder
  • B. Apex Trigger
  • C. Workflow Rule
  • D. Visual Flow

Answer: A

Question 10

A company processes Orders within their Salesforce instance. When an Order's status changes to 'Paid' it must notify the company's order management system (OMS). The OMS exposes SOAP web service endpoints to listen for when to retrieve the data from Salesforce. What is the optimal method to implement this?

  • A. Create an Apex trigger and make a callout to the OMS from the trigger.
  • B. Generate the Partner WSDL and use it to make a callout to the OMS.
  • C. Create an Outbound Message that contains the session ID and send it to the OMS.
  • D. Generate the Enterprise WSDL and use it to make a callout to the OMS.

Answer: D

Why RealExamCollection is the best choice for Salesforce PDII exam preparation

Secure your position in a competitive IT industry

The Salesforce PDII certification is a strong way to demonstrate your understanding and ability. Our PDII questions & answers help you prepare for it, so you can secure your current position and move your career forward.

Reviewed by IT professionals

We keep our PDII practice questions up to date, with explanations. The questions and answers on RealExamCollection are reviewed by people with professional experience of Salesforce technologies.

One place to prepare

RealExamCollection brings together the material you need for the Salesforce PDII exam. Explanations are added to the questions to help you understand the logic behind them and prepare for other Salesforce exams.

Updated PDII questions & answers

We update the exam files regularly to add new questions. The date of the latest update is shown at the top of this page.

Free PDII demo before you buy

You can view sample PDII questions on this page before buying, to see the format and pattern of the material.

90 days of free updates

You are eligible for 90 days of free updates after buying the PDII exam. If the file is updated in that time, you can download the latest version from your account.

Ready to prepare?

Salesforce PDII · 161 questions

Choose a format