ExamGecko
Ask Question

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

List of questions

Question 311

Report
Export
Collapse

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

Call SA.enqueueAction passing in the method to call.
Call SA.enqueueAction passing in the method to call.
Use the connectedCallback () method.
Use the connectedCallback () method.
Use an aura:handler "init" event to call a function.
Use an aura:handler "init" event to call a function.
Use the renderedCallback ( ) method.
Use the renderedCallback ( ) method.
Suggested answer: B
asked 23/09/2024
Francesco Pugliese
37 questions

Question 312

Report
Export
Collapse

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?

Set size=M6" mobile-device-size="12"
Set size=M6" mobile-device-size="12"
Set size-"12" medium-device-size="6"
Set size-"12" medium-device-size="6"
Set size-"12" tablet-device-size-"6"
Set size-"12" tablet-device-size-"6"
Set size-"6" small-device-size-"12"
Set size-"6" small-device-size-"12"
Suggested answer: B
asked 23/09/2024
Alexandru adrian Blaga
22 questions

Question 313

Report
Export
Collapse

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?

Upsert on the Account and specify the ERP_Customer_ID__c.
Upsert on the Account and specify the ERP_Customer_ID__c.
Merge on the Order__c object and specify the ERP_Customer_ID__c.
Merge on the Order__c object and specify the ERP_Customer_ID__c.
Insert on the Order__c object followed by an update on the Order__c object.
Insert on the Order__c object followed by an update on the Order__c object.
Upsert on the Order__c object and specify the ERP_Customer_ID__c.
Upsert on the Order__c object and specify the ERP_Customer_ID__c.
Suggested answer: C
asked 23/09/2024
Prakhar Sengar
33 questions

Question 314

Report
Export
Collapse

Given the following containment hierarchy:

Salesforce Certified Platform Developer II image Question 314 67961 09232024003105000000

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?

Suggested answer: B
asked 23/09/2024
Sérgio Filipe Soares
43 questions

Question 315

Report
Export
Collapse

Salesforce Certified Platform Developer II image Question 315 67962 09232024003105000000

A developer receives complaints that the component loads slowly.

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

Change the default for showContacrlnfo to "false".
Change the default for showContacrlnfo to "false".
Move the contents of <c: concacclnfo into the component.
Move the contents of <c: concacclnfo into the component.
Change the type of contactlnfo to "Map".
Change the type of contactlnfo to "Map".
Add a change event handler for showContactinfo
Add a change event handler for showContactinfo
Suggested answer: A
asked 23/09/2024
Akshi Raj
42 questions

Question 316

Report
Export
Collapse

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

SELECT id FROM ACCOUNT WHERE Name = !: ' '
SELECT id FROM ACCOUNT WHERE Name = !: ' '
SELECT id FROM ACCOUNT WHERE Name = Null
SELECT id FROM ACCOUNT WHERE Name = Null
SELECT id FROM ACCOUNT WHERE Name = Null AND Customer_Number_c= 'ValueA'
SELECT id FROM ACCOUNT WHERE Name = Null AND Customer_Number_c= 'ValueA'
SELECT id FROM ACCOUNT WHERE id IN (list of Account Ids)
SELECT id FROM ACCOUNT WHERE id IN (list of Account Ids)
Suggested answer: C, D
asked 23/09/2024
Spencer Karenbauer
37 questions

Question 317

Report
Export
Collapse

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

Suggested answer: A
asked 23/09/2024
Hasan Elmas
51 questions

Question 318

Report
Export
Collapse

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

Choose 2 answers

Internal Apps can use Outbound Messages.
Internal Apps can use Outbound Messages.
Internal Apps can use Process Builder.
Internal Apps can use Process Builder.
External Apps require the standard Streaming API
External Apps require the standard Streaming API
External Apps use an API to publish event messages
External Apps use an API to publish event messages
Suggested answer: B, D
asked 23/09/2024
Paul Tierney
41 questions

Question 319

Report
Export
Collapse

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?

Aura Components
Aura Components
Lightning Web Components
Lightning Web Components
Visualforce
Visualforce
Lightning Experience Builder
Lightning Experience Builder
Suggested answer: C
asked 23/09/2024
Babak Sadeghpour
28 questions

Question 320

Report
Export
Collapse

Refer to the code snippet below:

Salesforce Certified Platform Developer II image Question 320 67967 09232024003105000000

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?

Suggested answer: A
asked 23/09/2024
Hiren Patel
35 questions
Total 438 questions
Go to page: of 44
Search

Related questions