Leads4pass > Salesforce > Salesforce Certifications > PDI > PDI Online Practice Questions and Answers

PDI Online Practice Questions and Answers

Questions 4

A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org. Which tool should the developer use to troubleshoot?

A. AppExchange

B. Salesforce CLI

C. Visual Studio Core IDE

D. Developer Console

Buy Now
Questions 5

Which three methods help ensure quality data?

A. Create a lookup filter

B. Adding an error to a field in before trigger

C. Sending an email alert using a workflow rule

D. Handling an exception in Apex

E. Adding a validation rule

Buy Now
Questions 6

A developer has the following code block:

public class PaymentTax {public static decimal SalesTax = 0.0875;} trigger OpportunityLineItemTrigger on OpportunityLineItem (before insert, before update) {PaymentTax PayTax = new PaymentTax();decimal ProductTax = ProductCost *

XXXXXXXXXXX;} To calculate the productTax, which code segment would a developer insert at the XXXXXXXXXXX to make the value the class variable SalesTax accessible within the trigger?

A. SalesTax

B. PayTax.SalesTax

C. PaymentTax.SalesTax

D. OpportunityLineItemTngger.SalesTax

Buy Now
Questions 7

A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page. Which three attributes need to be defined with values in the tag to accomplish this? (Choose three.)

A. action

B. renderAs

C. standardController

D. readOnly

E. extensions

Buy Now
Questions 8

A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page.

What should the developer do to deploy to production?

A. Create a test class that provides coverage of the Visualforce page.

B. Create a test page that provides coverage of the Visualforce page.

C. Create a test page that provides coverage of the custom controller.

D. Create a test class that provides coverage of the custom controller.

Buy Now
Questions 9

A developer executes the following query in Apex to retrieve a list of contacts for each account: List accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ;

Which two exceptions may occur when it executes? (Choose two.)

A. CPU limit exception due to the complexity of the query.

B. SOQL query row limit exception due to the number of contacts.

C. SOQL query limit exception due to the number of contacts.

D. SOQL query row limit exception due to the number of accounts.

Buy Now
Questions 10

Which two number expressions evaluate correctly? (Choose two.)

A. Double d = 3.14159;

B. Integer I = 3.14159;

C. Decimal d = 3.14159;

D. Long l = 3.14159;

Buy Now
Questions 11

Universal Containers decides to use exclusively declarative development to build out a new Salesforce application. Which three options should be used to build out the database layer for the application? Choose 3 answers

A. Roll-Up Summaries

B. Triggers

C. Relationships

D. Process Builder

E. Custom Objects and Fields

Buy Now
Questions 12

What can be developed using the Lightning Component framework?

A. Hosted web applications

B. Single-page web apps

C. Dynamic web sites

D. Salesforce integrations

Buy Now
Questions 13

Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page?

A. Option A

B. Option B

C. Option C

D. Option D

Buy Now
Exam Code: PDI
Exam Name: Salesforce Certification for Platform Developer I (Plat-Dev-201)
Last Update: Jul 02, 2026
Questions: 270
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99