PDI Online Practice Questions

Home / Salesforce / PDI

Latest PDI Exam Practice Questions

The practice questions for PDI exam was last updated on 2025-06-01 .

Viewing page 1 out of 16 pages.

Viewing questions 1 out of 83 questions.

Question#1

A developer is asked to write helper methods that create test data for unit tests.



What should be changed in the Testvtils class so that its methods are only usable by unit test methods?

A. Change public to private on line 01.
B. Add @IsTest above line 03,
C. Add @IsTest above line 01.
D. Remove static from line 03.

Question#2

Universal Containers has a Visualforce page that displays a table of every Container__c being rented by a given Account. Recently this page is failing with a view state limit because some of the customers rent over 10,000 containers.
What should a developer change about the Visualforce page to help with the page load errors?

A. Use JavaScript remotlng with SOQL Offset.
B. Implement pagination with a StandardSetController.
C. Implement pagination with an OffaetController.
D. Use lazy loading and a transient List variable.

Question#3

Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page.
Example values are as follow
Name
Amount
Account
Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)

A. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
B. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.
C. Create an after update trigger on the Opportunity object that calls a helper method using @Future (Callout=true) to perform the HTTP REST callout.
D. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.

Question#4

Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers

A. Upload the SVG as a static resource.
B. Import the static resource and provide a getter for it in JavaScript.
C. Reference the getter in the HTML template.
D. Reference the import in the HTML template.
E. Import the SVG as a content asset file.

Question#5

What is the result of the following code snippet?


A. Accounts are inserted.
B. Account Is inserted.
C. 200 Accounts are inserted.
D. 201 Accounts are Inserted.

Exam Code: PDIQ & A: 237 Q&AsUpdated:  2025-06-01

 Get All PDI Q&As