Certbus > Salesforce > Salesforce Developer > PDI > PDI Online Practice Questions and Answers

PDI Online Practice Questions and Answers

Questions 4

A developer wants to handle the click event for a lightning:button componentthe onclick attribute for the component references a javascript function in which resource in the component bundle?

A. Helper.js

B. Handler.js

C. Renderer.js

D. Controller.js

Browse 719 Q&As
Questions 5

How should a developer write unit tests for a private method in an Apex class?

A. Use the SeeAllData annotation.

B. Add a test method in the Apex class.

C. Use the TestVisible annotation.

D. Mark the Apex class as global.

Browse 719 Q&As
Questions 6

Universal Hiring is using Salesforce to capture job applications. A salesforce administrator created two custom objects; Job c acting as the master object, Job application._: acting as the detail.

Within the Job_c object, a custom multi-select picklist, Preferred Locations Op, contains a list of approved states for the position. Each Job-_Application e record relates to a Contact within the system through a master-detail relationship.

Recruiters have requested the ability to view whether the Contact's Mailing State value matches a value selected on the Preferred Locations e field, within the Job_ Application c record. Recruiters would like this value to be kept in sync, if

changes occur to the Contact's Mailing State or if the Job's Preferred_Locations_c field is updated.

What is the recommended tool a developer should use to meet the business requirement?

A. Record-triggered flow

B. Process Builder

C. Formula field

D. Apex trigger

Browse 719 Q&As
Questions 7

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.

Browse 719 Q&As
Questions 8

What are two benefits of using declarative customizations over code? Choose 2 answers What are two benefits of using declarative customizations over code?

A. Declarative customizations automatically update with each Salesforce release.

B. Declarative customizations automatically generate test classes.

C. Declarative customizations automatically generate test classes.

D. Declarative customizations generally require less maintenance.

Browse 719 Q&As
Questions 9

A developer creates a custom exception as shown below:

What are two ways the developer can fire the exception in Apex? Choose 2 answers

A. Throw new ParityException (parity does not match);

B. New ParityException( );

C. New ParityException (parity does not match);

D. Throw new parityException ( );

Browse 719 Q&As
Questions 10

How does the Lightning Component framework help developers implement solutions faster?

A. By providing an Agile process with default steps

B. By providing code review standards and processes

C. By providing device-awareness for mobile and desktops

D. By providing change history and version control

Browse 719 Q&As
Questions 11

The sales management team at Universal Containers requires that the Lead Source field of the Lead record be populated when a Lead is converted. What should be used to ensure that a user populates the Lead Source field prior to converting a Lead?

A. Process Builder

B. Validation Rule

C. Formula Field

D. workflow Rule

Browse 719 Q&As
Questions 12

A team of many developers work in their own individual orgs that have the same configuration at the production org. Which type of org is best suited for this scenario?

A. Developer Sandbox

B. Developer Edition

C. Full Sandbox

D. Partner Developer Edition

Browse 719 Q&As
Questions 13

Which statement should be used to allow some of the records in a list of records to be inserted rf others fail to be inserted?

A. insert records

B. Database.insert(records, true)

C. insert (records, false)

D. Database.insert(records, false)

Browse 719 Q&As
Questions 14

In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?

A. As a List with each value as an element in the list

B. As a String with each value separated by a comma

C. As a String with each value separated by a semicolon

D. As a Set with each value as an element in the set

Browse 719 Q&As
Questions 15

Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)

A. tag

B. Inline CSS

C. tag

D. tag

E. A static resource

Browse 719 Q&As
Questions 16

Why would a developer consider using a custom controller over a controller extension?

A. To increase the SOQL query governor limits.

B. To implement all of the logic for a page and bypass default Salesforce functionality

C. To leverage built-in functionality of a standard controller

D. To enforce user sharing settings and permissions

Browse 719 Q&As
Questions 17

In which two org types can a developer create new Apex Classes? Choose 2 answers

A. Developer Edition

B. Sandbox

C. Enterprise Edition

D. Unlimited

Browse 719 Q&As
Questions 18

Which two statements are acceptable for a developer to use inside procedural loops?

A. Contact con = new Contact();

B. ContactList.remove(i);

C. Delete contactList; D. Account a = [SELECT id, Name FROM account WHERE id = : con.AccountId LIMIT 1];

Browse 719 Q&As
Exam Code: PDI
Exam Name: Salesforce Certification for Platform Developer I
Last Update: Apr 20, 2024
Questions: 719 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99