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

PDI Premium Exam Questions

Page: 12 / 17
Question 48

A developer is creating a Lightning web component to showa list of sales records.

The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all

fields on the record except the commission field.

How should this be enforced so that the component works for both users without showing any errors?

Options:

A.

Use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.

B.

Use Security. stripInaccessible to remove fields inaccessible to the current user.

C.

Use Lightning Data Service to get the collection of sales records.

D.

Use Lightning Locker Service to enforce sharing rules and field-level security.

Question 49

An Opportunity needs to have an amount rolled up from a custom object that is not in a master-detail relationship.

How can this be achieved?

Options:

A.

Write a trigger on the child object and use a red-black tree sorting to sum the amount for all related child objects under the Opportunity.

B.

Write a Process Builder that links the custom object to the Opportunity.

C.

Write a trigger on the child object and use an aggregate function to sum the amount for all related child objects under the Opportunity

D.

Use the Streaming API to create real-time roll-up summaries.

Question 50

What are three characteristics of change set deployments?

Choose 3 answers

Options:

A.

Change sets can only be used between related organizations.

B.

Change sets can be used to transfer records.

C.

Sending a change set between two orgs requires a deployment connection.

D.

Change sets can deploy custom settings data.

E.

Deployment is done in a one-way, single transaction.

Question 51

Which code statement includes an Apex method named updateaccounts in the Class AccountCont rolles for use in a Lightning web component?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Page: 12 / 17
Exam Code: PDI
Exam Name: Platform Developer I (SP23)
Last Update: Apr 27, 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