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

Pass the Salesforce Developers PDII Questions and answers with ValidTests

Exam PDII All Questions
Exam PDII Premium Access

View all detail and faqs for the PDII exam

Viewing page 1 out of 6 pages
Viewing questions 1-10 out of questions
Questions # 1:

Refer to the test method below:

Question # 1

The test method tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers.

The test method fails at the Line 20 because of too many SOQL queries.

What is the correct way to fix this?

Options:

A.

B.

C.

D.

Expert Solution
Questions # 2:

A developer is asked to modify a Lightning web component so that it displays in one column on phones and in two columns on tablets, desktops, and larger devices.

Given to the code below:

Question # 2

Which should the developer add to the code to meet the requirements?

Options:

A.

B.

C.

D.

Expert Solution
Questions # 3:

The use of the transient keyword in Visualforce page controllers helps with which common performance issue?

Options:

A.

Reduces load times

B.

Improves page transfers

C.

Reduces view state

D.

Improves query performance

Expert Solution
Questions # 4:

Which Salesforce feature allows a developer to see when a user last logged in to

Salesforce if real-time notification is not required?

Options:

A.

Calendar Events

B.

Asynchronous Data Capture Events

C.

Event Monitoring Log

D.

Developer Log

Expert Solution
Questions # 5:

A company has a web page that needs to get Account record information, such as name, website, and employee number. The Salesforce record 1D is known to the web page and it uses JavaScript to retrieve the account information.

Which method of integration is optimal?

Options:

A.

Apex SOAP web service

B.

SOAP API

C.

Apex REST web service

D.

REST API

Expert Solution
Questions # 6:

Refer to the markup below:

Question # 6

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.

Expert Solution
Questions # 7:

A developer has a requirement to query three fields (Id, Name, Type) from an Account; and first and last names for all Contacts associated with the Account.

Which option is the preferred, optimized method to achieve this for the Account named ‘Ozone Electronics’?

A)

Question # 7

B)

Question # 7

C)

Question # 7

D)

Question # 7

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Expert Solution
Questions # 8:

A Lightning web component exists in the system and displays information about the record in context as a medal. Salesforce administrators need to use this component

within the Lightning App Builder,

Which two settings should the developer configure within the xml resource file?

Choose 2 answers

Options:

A.

Specify the target to be lightning_RecordPage

B.

Set the IsExposed=d attribute to true.

C.

Specify the target to be lightning_AppPage

D.

Set the IsVisible attribute to true

Expert Solution
Questions # 9:

A developer has a test class that creates test data before making a mock callout but now receives a 'You have uncommitted work pending. Please commit or rollback before calling out’ error.

Which step should be taken to resolve the error?

Options:

A.

Ensure both the Insertion and mock callout occur after the I==L. stoptest_().

B.

Ensure the records are Inserted before the Tezt.startTest() statement and the mock callout occurs within a method annotated with @testSetup.

C.

Ensure both the insertion and mock callout occur after the Test.startTest().

D.

Ensure the records are inserted before the Test.startTess() statement and the mock callout occurs after the Test. Startest().

Expert Solution
Questions # 10:

Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called Candidate was created with organization-wide defaults set to Private. A lookup on the Candidate object sets an employee as an Interviewer.

What should be used to automatically give Read access to the record when the lookup field is set to the Interviewer user?

Options:

A.

The record can be shared using an Apex class.

B.

The record can be shared using a permission set.

C.

The record can be shared using a sharing rule.

D.

The record cannot he shared with the current setup.

Expert Solution
Viewing page 1 out of 6 pages
Viewing questions 1-10 out of questions