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

Ace the Salesforce PDII Exam: Ultimate Preparation Guide

Questions 51

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

Buy Now
Questions 52

A page throws an ‘Attempt to dereference a null object’ error for a Contact.

What change in the controller will fix the error?

Options:

A.

Declare a static final Contact at the top of the controller.

B.

Use a condition in the getter to return a new Contact if it is null.

G Change the setter’s signature to return a Contact.

C.

Change the getter's signature to be static Contact.

Buy Now
Questions 53

Consider the queries in the options below and the following Information:

* For these queries, assume that there are more than 200,000 Account records.

* These records Include soft-deleted records; that is, deleted records that are still in the Recycle Bin.

* There are two fields that are marked as External Id on the

Account. These fields are customer_Number_c and ERR_Key_ s.

Which two queries are optimized for large data volumes?

Choose 2 answers

Options:

A.

SELECT I4 FROM Account WHERE Name !— NULL

B.

SELECT 1d FROM Accounts WHERE Name != '°

AND Customer_Number_c- "ValueA’

C.

SELECT ID FROM Account WHRE id IN :aListVariable

D.

SELECT Id FROM Account WHERE Name != ‘ ‘AND IsDeleted = false

Buy Now
Questions 54

An Aura component has a section that displays some information about an Account

and it works well on the desktop, but users have to scroll horizontally to see the description field output on their mobile devices and tablets.

PDII Question 54

How should a developer change the component to be responsive for mobile and tablet devices?

A)

PDII Question 54

B)

PDII Question 54

C)

PDII Question 54

D)

PDII Question 54

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 55

When the code is executed, the callout is unsuccessful and the following error appears within the Developer Console:

System.CalloutException: Unauthorized endpoint

Which recommended approach should the developer implement

to resolve the callout exception?

Options:

A.

Annotate the getkRFCatalogContents method with @Future (Callout-true),

B.

Change the access modifier for ERPCatalog from public to global.

C.

Use the SetHeader() method to specify Basic Authentication,

D.

Create a remote site setting configuration that includes the endpoint.

Buy Now
Questions 56

Recently, users notice that fields that were recently added for one department suddenly disappear without warning.

Which two statements are true regarding these issues and resolution?

Choose 2 answers

Options:

A.

A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.

B.

Page Layouts should never be deployed via Change Sets, as this causes Field-Level Security to be reset and fields to disappear.

C.

The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts in production.

D.

The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production.

Buy Now
Questions 57

Refer to the markup below:

PDII Question 57

A Lightning web component displays the Account name and two custom fields out of

275 that exist on the abject. The custom fields are correctly declared and

populated. However, the developer receives complaints that the component

performs slowly.

What can the developer do to improve the performance?

Options:

A.

Replace Layout-type =''Full1" with Layout-type="Partial”.

B.

Replace layout-type =''1" with fields=(fields}.

C.

Add density="compat" to the component.

D.

Add cache="true" to the component.

Buy Now
Questions 58

Refer to the Aura component below:

PDII Question 58

A developer receives complaints that the component loads slowly.

Which change can the developer implement to make the component perform faster?

Options:

A.

Change the type of contactInfo to "Map”.

B.

Move the contents of <c: contactInfo into the componant.

C.

Add a change event handler for showContactInfo.

D.

Change the default for showContactInfo to “False.

Buy Now
Exam Code: PDII
Exam Name: Salesforce Certified Platform Developer II (WI24)
Last Update: Dec 12, 2024
Questions: 193

PDF + Testing Engine

$164.99
$66

Testing Engine

$124.99
$50

PDF (Q&A)

$104.99
$42

Salesforce Free Exams

Salesforce Free Exams
Examstrack provides free Salesforce exam prep materials and practice tests to support your Salesforce certification goals.