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

PDI Online Practice Questions and Answers

Questions 4

A platform developer needs to write an apex method that will only perform an action if a record is assigned to a specific record type. Which two options allow the developer to dynamically determine the ID of the required record type by its name? Choose 2 answers

A. Use the getrecordtypeinfosbydevelopername() method in the describesobjectresult class

B. Make an outbound web services call to the SOAP API

C. Execute a SOQL query on the recordtype object

D. Hardcore the ID as a constant in an apex class

Buy Now
Questions 5

A developer declared a class as follow.

public class wysiwyg { // Properties and methods including DML } Which invocation of a class method will obey the organization-wide defaults and sharing settings for the running user in the Salesforce Organization?

A. An Apex Trigger that invokes a helper method in this class

B. A Visualforce page with an Apex controller that invokes a method in this class

C. A user on an external system that has an API call into Salesforce that invokes a method in this class

D. A developer using the Developer Console that invokes a method in this class from the execute anonymous window

Buy Now
Questions 6

Managed Packages can be created in which type of org?

A. Developer Sandbox

B. Unlimited Edition

C. Developer Edition

D. Partial Copy Sandbox

Buy Now
Questions 7

A developer executes the following code in the Developer Console:

List fList = new List ();For(integer i= 1; I <= 200; i++){fList.add(new Account ( Name = `Universal Account ` + i));}Insert fList;List sList = new List();For (integer I = 201; I <= 20000; i ++){sList.add

(new Account (Name = `Universal Account ` + i));}Insert sList;How many accounts are created in the Salesforce organization ?

A. 20000

B. 0

C. 200

D. 1000

Buy Now
Questions 8

Which resource can be included in a Lightning Component bundle?Choose 2 answers

A. Apex class

B. Adobe Flash

C. JavaScript

D. Documentation

Buy Now
Questions 9

What is a valid source and destination pair that can send or receive change sets? (Choose 2)

A. Developer Edition to Sandbox

B. Sandbox to Production

C. Sandbox to Sandbox

D. Developer Edition to Production

Buy Now
Questions 10

What are the methods used to show input in classic and lightning?

A. Use visualforce page in classic and lightning component in lightning

B. PlaceHolder

C. PlaceHolder

Buy Now
Questions 11

A develop completed modification to a customized feature that is comprised of two elements:

1.

Apex trigger

2.

Trigger handler Apex class

What are two factors that the developer must take into account to properly deploy the modification to the production environment?

A. Apex classes must have at least 75% code coverage org-wide.

B. At least one line of code must be executed for the Apex trigger.

C. All methods in the test classes must use @isTest.

D. Test methods must be declared with the testMethod keyword.

Buy Now
Questions 12

Refer to the code snippet below:

When a Lightning web component is rendered, a list of apportunities that match certain criteria shopuld be retrievved from the database and displayed to the end user.

Which three Considerations must the developer implement to make the method available within the Lightning web component?

Choose 3 answer

A. The method must specify the (cacheable=true) attribute.

B. The method must specify the (continuation=true) attribute.

C. The method must be annotated with the @AuraEnabled annotation.

D. The method must be annotated with the @InvocableMethod annotation.

E. The method cannot mutate the result set retrieved from the database.

Buy Now
Questions 13

As part of new feature development, a developer is asked to build a responsive application capable of responding to touch events, that will be executed on stateful clients.

Which three technologies are built on a framework that fully supports the business requirement? Choose 3 answers

A. Aura Components

B. Vlsualforce Components

C. Lightning Web Components

D. Visualforce Pages

Buy Now
Exam Code: PDI
Exam Name: Salesforce Certification for Platform Developer I
Last Update: Mar 05, 2025
Questions: 719
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99