Salesforce Platform Developer II Exam Practice Test

Page: 1 / 14
Total 167 questions
Question 1
Question 2

A developer is building a Lightning web component that searches

for Contacts. The component must communicate the search

results to other unrelated Lightning web components, that are in

different DOM trees, when the search completes.

What should the developer do to implement the communication?



Answer : D


Question 3

A developer has working business logic code, but sees the following error in the test class:

You have uncommitted work pending. Please commit

or rollback before calling out.

What is a possible solution?



Answer : B


Question 4

An Apex class does not achieve expected code coverage. The testsetup method explicitly calls a method In the Apex class..

How can the developer generate the code coverage?



Answer : C


Question 5

A developer is creating a Lightning web component that displays a list of records in a lightning-datatable. After saving a new record to the database, the list is not updating.

What should the developer change in the code above for this to

happen?



Answer : C


Question 6

Consider the following code snippet:

Choose 2 answers



Answer : A, D


Question 7

Universal Containers wants to notify an external system, in the event that an unhandled exception occurs, by publishing a custom event using Apex.

What is the appropriate publish/subscribe logic to meet this requirement?



Answer : A


Page:    1 / 14   
Total 167 questions