New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: Board70

Pearson PDII New Attempt

Page: 10 / 12
Question 40

A company has a Lightning page with many Lightning Components, some that cache reference data. It is reported that the page does not always show the most current reference data.

What can a developer use to analyze and diagnose the problem in the Lightning page?

Options:

A.

Salesforce Lightning Inspector Transactions tab

B.

Salesforce Lightning Inspector Actions tab

C.

Salesforce Lightning Inspector Event Log tab

D.

Salesforce Lightning Inspector Storage tab

Question 41

An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary’ to control this feature.

The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters.

What is the optimal way to implement these requirements?

Options:

A.

Write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.

B.

Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.

C.

Write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.

D.

Write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.

Question 42

There is an Apex controller and a Visualforce page in an org that displays records with a custom filter consisting of a combination of picklist values selected by the

user.

The page takes too long to display results for some of the input combinations, while for other input choices it throws the exception, "Maximum view state size limit exceeded”.

What step should the developer take to resolve this issue?

Options:

A.

Adjust any code that filters by picklist values since they are not indexed,

B.

Remove instances of the transient keyword from the Apex controller to avoid the view state error.

C.

Use a StandardSetController or SOQL LIMIT in the Apex controller to limit the number of records displayed at a time.

D.

Split the layout to filter records in one Visualforce page and display the list of records in a second page using the same Apex controller.

Question 43

A user receives the generic "An internal server error has occurred” while interacting

with a custom Lightning component.

What should the developer do to ensure a more meaningful message?

Options:

A.

Add an onerror event handler to the tag.

B.

Add an error-view component to the markup.

C.

Use platform events to process the error

D.

Use an AuraHandledexception in a try-catch block.

Page: 10 / 12
Exam Code: PDII
Exam Name: Salesforce Certified Platform Developer II (SU24)
Last Update: Dec 22, 2024
Questions: 193
PDII pdf

PDII PDF

$25.5  $84.99
PDII Engine

PDII Testing Engine

$28.5  $94.99
PDII PDF + Engine

PDII PDF + Testing Engine

$40.5  $134.99