ExamGecko
Home Home / Salesforce / Certified Platform Developer II

Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 32

Question list
Search
Search

List of questions

Search

Related questions











Which technique can run custom logic when a Lightning web component is loaded?

A.
Call SA.enqueueAction passing in the method to call.
A.
Call SA.enqueueAction passing in the method to call.
Answers
B.
Use the connectedCallback () method.
B.
Use the connectedCallback () method.
Answers
C.
Use an aura:handler "init" event to call a function.
C.
Use an aura:handler "init" event to call a function.
Answers
D.
Use the renderedCallback ( ) method.
D.
Use the renderedCallback ( ) method.
Answers
Suggested answer: B

When developing a Lightning web component, which setting displays lightning-layout-items in one column on small devices, such as mobile phones, and in two columns on tablet-size and desktop-size screens?

A.
Set size=M6" mobile-device-size="12"
A.
Set size=M6" mobile-device-size="12"
Answers
B.
Set size-"12" medium-device-size="6"
B.
Set size-"12" medium-device-size="6"
Answers
C.
Set size-"12" tablet-device-size-"6"
C.
Set size-"12" tablet-device-size-"6"
Answers
D.
Set size-"6" small-device-size-"12"
D.
Set size-"6" small-device-size-"12"
Answers
Suggested answer: B

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?

A.
Upsert on the Account and specify the ERP_Customer_ID__c.
A.
Upsert on the Account and specify the ERP_Customer_ID__c.
Answers
B.
Merge on the Order__c object and specify the ERP_Customer_ID__c.
B.
Merge on the Order__c object and specify the ERP_Customer_ID__c.
Answers
C.
Insert on the Order__c object followed by an update on the Order__c object.
C.
Insert on the Order__c object followed by an update on the Order__c object.
Answers
D.
Upsert on the Order__c object and specify the ERP_Customer_ID__c.
D.
Upsert on the Order__c object and specify the ERP_Customer_ID__c.
Answers
Suggested answer: C

Given the following containment hierarchy:

What is the correct way to communicate the new value of a property named "passthrough" to myparent component if the property is defined within my-child-component?

A.
A.
Answers
B.
B.
Answers
C.
C.
Answers
D.
D.
Answers
Suggested answer: B

A developer receives complaints that the component loads slowly.

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

A.
Change the default for showContacrlnfo to "false".
A.
Change the default for showContacrlnfo to "false".
Answers
B.
Move the contents of <c: concacclnfo into the component.
B.
Move the contents of <c: concacclnfo into the component.
Answers
C.
Change the type of contactlnfo to "Map".
C.
Change the type of contactlnfo to "Map".
Answers
D.
Add a change event handler for showContactinfo
D.
Add a change event handler for showContactinfo
Answers
Suggested answer: A

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

A.
SELECT id FROM ACCOUNT WHERE Name = !: ' '
A.
SELECT id FROM ACCOUNT WHERE Name = !: ' '
Answers
B.
SELECT id FROM ACCOUNT WHERE Name = Null
B.
SELECT id FROM ACCOUNT WHERE Name = Null
Answers
C.
SELECT id FROM ACCOUNT WHERE Name = Null AND Customer_Number_c= 'ValueA'
C.
SELECT id FROM ACCOUNT WHERE Name = Null AND Customer_Number_c= 'ValueA'
Answers
D.
SELECT id FROM ACCOUNT WHERE id IN (list of Account Ids)
D.
SELECT id FROM ACCOUNT WHERE id IN (list of Account Ids)
Answers
Suggested answer: C, D

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.
A.
Answers
B.
B.
Answers
Suggested answer: A

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

Choose 2 answers

A.
Internal Apps can use Outbound Messages.
A.
Internal Apps can use Outbound Messages.
Answers
B.
Internal Apps can use Process Builder.
B.
Internal Apps can use Process Builder.
Answers
C.
External Apps require the standard Streaming API
C.
External Apps require the standard Streaming API
Answers
D.
External Apps use an API to publish event messages
D.
External Apps use an API to publish event messages
Answers
Suggested answer: B, D

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?

A.
Aura Components
A.
Aura Components
Answers
B.
Lightning Web Components
B.
Lightning Web Components
Answers
C.
Visualforce
C.
Visualforce
Answers
D.
Lightning Experience Builder
D.
Lightning Experience Builder
Answers
Suggested answer: C

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.
A.
Answers
B.
B.
Answers
C.
C.
Answers
D.
D.
Answers
Suggested answer: A
Total 408 questions
Go to page: of 41