Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Salesforce PDI Practice Exam with Questions & Answers | Set: 4

Questions 31

What are two benefits of using declarative customizations over code?

Choose 2 answer

Options:
A.

Declarative customizations automatically update with each Salesforce release.

B.

Declarative customizations automatically generate test classes.

C.

Declarative customizations cannot generate run time errors

D.

Declarative customizations generally require less maintenance

Salesforce PDI Premium Access
Questions 32

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

Options:
A.

Database. insert (records, true)

B.

insert records

C.

insert (records, false)

D.

Database. insert (records, false)

Questions 33

Which two characteristics are true for Lightning Web Component custom events?

Choose 2 answers

Options:
A.

Data may be passed in the payload of a custom event using @wire decorated properties.

B.

Data may be passed In the payload of a custom event using a property called detail.

C.

By default a custom event only propagates to its immediate container and to its immediate child component.

D.

By default a custom event only propagates to it’s immediate container.

Questions 34

A developer created a trigger on a custom object. This custom object also has some dependent pick lists.

According to the order of execution rules, which step happens first?

Options:
A.

The original record is loaded from the database.

B.

System validation is run for maximum field lengths.

C.

Old values are overwritten with the new record values.

D.

JavaScript validation is run in the browser,

Questions 35

A developer created this Apex trigger that calls MyClass.mystaticMethod:

The developer creates a test class with a test method that calls MyClass.myStaticMethod directly, resulting in 81% overall code coverage What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exists?

Options:
A.

The deployment passes because both classes and the trigger were included in the deployment.

B.

The deployment fails because no assertions were made in the test method.

C.

The deployment passes because the Apex code has the required >75% code coverage.

D.

The deployment fails because the Apex trigger has no code coverage.

Questions 36

A developer wants to mark each Account in a List as either Active or Inactive, based on the value in the LastModified each Account being greater than 90 days in the past.

Which Apex technique should the developer use?

Options:
A.

An if-else statement, with a for loop inside

B.

A witch statement, with a for loop inside

C.

A for loop, with an if or if/else statement inside

D.

A for loop, with a switch statement inside

Questions 37

Which two are phases in the Aura application event propagation framework?

Choose 2 answers

Options:
A.

Control

B.

default

C.

Buddle

D.

Emit

Questions 38

Cloud Kicks has a multi-screen flow that its call center agents use when handling inbound service desk calls.

At one of the steps in the flow, the agents should be presented with a list of order numbers and dates that are retrieved from an external order management system in real time and displayed on the screen.

What should a developer use to satisfy this requirement?

Options:
A.

An outbound message

B.

An Apex REST class

C.

An Apex controller

D.

An invocable method

Questions 39

Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with prepopulated values.

What can the developer use to accomplish this?

Options:
A.

Validation rules

B.

Apex triggers

C.

Record triggered flows

D.

Quick Actions

Questions 40

A developer is alerted to an issue with a custom Apex trigger that is causing records to be duplicated.

What is the most appropriate debugging approach to troubleshoot the issue?

Options:
A.

Review the Historical Event logs to identify the source of the issue.

B.

Add system.debug statements to the code to track the execution flow and identify the issue.

C.

Use the Apex Interactive Debugger to step through the code and identify the issue.

D.

Disable the trigger in production and test to see if the issue still occurs.

Exam Code: PDI
Certification Provider: Salesforce
Exam Name: Salesforce Certified Platform Developer 1 (SP25)
Last Update: Jul 10, 2025
Questions: 204