Salesforce Platform Developer II Exam Practice Test

Page: 1 / 14
Total 331 questions

Question 1

users complain that a page Is very slow to respond. Upon investigation, the query below Is found to perform slowly.

SELECT id, Name FROM Contact WHERE CustomField_c null;

Which two actions can a developer take to improve performance?

Choose 2 answers



Answer : A, D

Question 2

Refer to the code snippet below:

As part of an Integration development effort, a developer is tasked to create an Apex method mat solely relies on the use of foreign identifiers In order to relate new contact records to existing Accounts in Salesforce. The account object contains a field marked as an external ID, the API Name of this field is Legacy_Id_c.

What Is the most efficient way to instantiate the parentAccount: variable on line 02 to ensure the newly created contact is properly related to the Account?

A)

B)

C)

D)



Answer : A

Question 3

A lead developer for a Salesforce organization needs to develop a page-centric application that allows the user to interact with multiple objects related to a Contact The application needs to implement a third-party JavaScript framework such as Angular, and must be made available in both Classic and Lightning Experience.

Given these requirements, what is the recommended solution to develop the application?



Answer : C

Question 4

After a Platform Event Is defined in a Salesforce org, events can be published via which two mechanisms?

Choose 2 answers



Answer : B, D

Question 5

A company wants to run different logic based on an Opportunity's record type. Which code segment handles this request and follows best practices?

A)

B)



Answer : A

Question 6

Which two queries are selective SOQL queries and can be used for a large data set of 200,000 Account records? Choose 2 answers



Answer : A, D

Question 7

A company accepts orders for customers in their enterprise resource planning (ERP) crder__c records with a lookup field to Account. The Account object has an External ID field, ERP_Customer_ID__c.

What should the integration use to create new Order__c records that will automatically be related to the correct Account?



Answer : C

Page:    1 / 14   
Total 331 questions