Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bigdisc65

Download Full Version PDI Salesforce Exam

Page: 4 / 17
Question 16

A developer creates a custom exception as shown below:

public class ParityException extends Exception {}

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

Choose 2 answers

Options:

A.

new ParityException();:

B.

throw new ParityException("parity does not match");

C.

new ParityException('parity does not match');

D.

throw new ParityException();

Question 17

A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders.

What should a developer do to allow their code to move some existing Orderltem records to a new Order record?

Options:

A.

Change the master-detail relationship to an external lookup relationship.

B.

Add without sharing to the Apex class declaration.

C.

Create a junction object between Orderltem and Order.

D.

Select the Allow reparenting option on the master-detail relationship.

Question 18

Which salesforce org has a complete duplicate copy of the production org including data and configuration?

Options:

A.

Developer Pro Sandbox

B.

Partial Copy Sandbox

C.

Production

D.

Full Sandbox

Question 19

As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted.

Which automation tool should be used to meet this business requirement?

Options:

A.

Workflow Rules

B.

Scheduled job

C.

Record-Triggered Flow

D.

Process Builder

Page: 4 / 17
Exam Code: PDI
Exam Name: Platform Developer I (SP23)
Last Update: Jun 20, 2024
Questions: 235
PDI pdf

PDI PDF

$28  $80
PDI Engine

PDI Testing Engine

$33.25  $95
PDI PDF + Engine

PDI PDF + Testing Engine

$45.5  $130