ExamGecko
Ask Question

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

List of questions

Question 281

Report
Export
Collapse

A developer migrated functionality from JavaScript demoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data.

Which modification to the method is necessary?

A The method must be decorated with ©AuraEnabled.
A The method must be decorated with ©AuraEnabled.
The method must return a JSON Object.
The method must return a JSON Object.
The method must be decorated with (cacheable=true).
The method must be decorated with (cacheable=true).
The method must return a String of a serialized JSON Array.
The method must return a String of a serialized JSON Array.
Suggested answer: A
asked 23/09/2024
Danilo Nogueira
37 questions

Question 282

Report
Export
Collapse

A custom Aura component, AddressValidation,cmp,exists in the system. The Salesforce admin for the organization is unable to find and select the component while creating a quick action for the Account sObject.

What should the developer do to ensure that AddressValidation,cmp can be selected when creating a quick action?

Ensure the component implements the lightning:actionOverride interface.
Ensure the component implements the lightning:actionOverride interface.
Ensure the component implements the force:lighningQuickAction.interface.
Ensure the component implements the force:lighningQuickAction.interface.
Ensure the access attribute of the aura:component tag is st t Global.
Ensure the access attribute of the aura:component tag is st t Global.
Ensure the component implements the force:hasRecordedId interface.
Ensure the component implements the force:hasRecordedId interface.
Suggested answer: B
asked 23/09/2024
Mathieu Alingum Nubee
39 questions

Question 283

Report
Export
Collapse

Universal Containers has an existing automation where a custom record called Account Plan is created upon an Account being marked as a Customer. Recently, a Workflow Rule was added so that whenever an Account is marked as a

Customer, a 'Customer Since' date field is updated with today's date.

Now, since the addition of the Workflow Rule, two Account Plan records are created whenever the Account is marked as a Customer.

What might cause this to happen?

The Apex Trigger responsible for the record creation is not bulk sate and calls insert inside of a for loop.
The Apex Trigger responsible for the record creation is not bulk sate and calls insert inside of a for loop.
The Apex Trigger responsible for the record creation does not use a static variable to ensure It only fires once.
The Apex Trigger responsible for the record creation does not use a static variable to ensure It only fires once.
The Workflow Rule responsible for the record creation fires twice because the 'Customer Since' field Update Is marked as 'Re-evaluate Workflow Rules After Field Change
The Workflow Rule responsible for the record creation fires twice because the 'Customer Since' field Update Is marked as 'Re-evaluate Workflow Rules After Field Change
The Process Builder responsible for the record creation fires before and after the Workflow rule.
The Process Builder responsible for the record creation fires before and after the Workflow rule.
Suggested answer: C
asked 23/09/2024
Elizaveta Kutuzova
54 questions

Question 284

Report
Export
Collapse

Which statement is true regarding savepoints?

Savepoints are not limited by DML statement governor limits
Savepoints are not limited by DML statement governor limits
You can roll back to any savepoint variable created In any order
You can roll back to any savepoint variable created In any order
Static variables are not reverted during a rollback.
Static variables are not reverted during a rollback.
Reference to savepoints can cross trigger invocations.
Reference to savepoints can cross trigger invocations.
Suggested answer: C
asked 23/09/2024
Maciej Kozlowski
38 questions

Question 285

Report
Export
Collapse

The Salesforce instance at Universal Containers currently integrates with a third-party company to validate mailing addresses via REST services. The third-party address verification system recently changed endpoint URLs for all their set vices from https://th-addreaa-service.3pc.com to https://plc1-mailsarvice.3pc.com. Everything else remained the same. The developer updated codeto reflect this endpoint change, but the mailing address validation service stopped working after thechange.

What else should be done to complete this web service end point change?

Test the callout property using HttpCalloutMock.
Test the callout property using HttpCalloutMock.
Add web service IP Addresses to Trusted IP Ranges m the Network Access security controls settings.
Add web service IP Addresses to Trusted IP Ranges m the Network Access security controls settings.
Use a Custom Setting with the new endpoint Instead of hard coding the URL.
Use a Custom Setting with the new endpoint Instead of hard coding the URL.
Create a new Remote Site for the new endpoint URL.
Create a new Remote Site for the new endpoint URL.
Suggested answer: D
asked 23/09/2024
Maurice Sterkenburg
35 questions

Question 286

Report
Export
Collapse

As part of their quoting and ordering process, a company needs to send PDFs to their document storage system's REST endpoint that supports OAuth 2.0. Each Salesforce user must be individually authenticated with the document storage system to send the PDF.

What is the optimal way for a developer to implement the authentication to the REST endpoint?

Named Credential with an OAuth Authentication Provider
Named Credential with an OAuth Authentication Provider
Hierarchy Custom Setting with a password custom field
Hierarchy Custom Setting with a password custom field
Named Credential with Password Authentication
Named Credential with Password Authentication
Hierarchy Custom Setting with an OAuth token custom field
Hierarchy Custom Setting with an OAuth token custom field
Suggested answer: A
asked 23/09/2024
Veacheslav Stasiuc
33 questions

Question 287

Report
Export
Collapse

Which three actions must be completed in a Lightning web component for a JavaScript file in a static resource to be loaded?

Choose 3 answers

Reference the static resource in a <script> tag.
Reference the static resource in a <script> tag.
Import the static resource.
Import the static resource.
Import a method from the platformftesourceLoader,
Import a method from the platformftesourceLoader,
Call loadscript.
Call loadscript.
Append the static resource to the DOM.
Append the static resource to the DOM.
Suggested answer: B, C, D
asked 23/09/2024
Igor Vasiliev
44 questions

Question 288

Report
Export
Collapse

An Apex trigger creates a Contract record every time an Opportunity record is marked as Closed end Won. This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance.

When a test batch of records are loaded, the Apex trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created.

What is the most extendable way to update the Apex trigger to accomplish this?

Use a List Custom Setting to disable the trigger for the user who loads the data.
Use a List Custom Setting to disable the trigger for the user who loads the data.
Add a Validation Rule to the Contract to prevent Contract creation by the user who loads the data.
Add a Validation Rule to the Contract to prevent Contract creation by the user who loads the data.
Use a Hierarchy Custom Setting to skip executing the logic inside the trigger for the user who loads the data.
Use a Hierarchy Custom Setting to skip executing the logic inside the trigger for the user who loads the data.
Add the Profile ID of the user who loads the data to the trigger so the trigger will not fire for this user.
Add the Profile ID of the user who loads the data to the trigger so the trigger will not fire for this user.
Suggested answer: C
asked 23/09/2024
Danilo Nogueira
37 questions

Question 289

Report
Export
Collapse

Customer billing data must be added and updated into Salesforce from a remote system on a weekly basis. Additionally, customer activity information must be extracted from Salesforce and put it into an on-premises data warehouse on a weekly basis.

Which approach should be used to import data into Salesforce and export data out of Salesforce, taking into consideration that these imports and exports can interfere with end-user operations during business hours and involve large amounts of data?

Call-in directly from each remote system to Salesforce APIs to push and pull the data
Call-in directly from each remote system to Salesforce APIs to push and pull the data
Salesforce Connect to push data to and pull data from the remote systems
Salesforce Connect to push data to and pull data from the remote systems
Batch Apex, where Salesforce pushes data to and pulls data from the remote systems
Batch Apex, where Salesforce pushes data to and pulls data from the remote systems
Replication via third-party ETL to push data into Salesforce and pull data out in batches
Replication via third-party ETL to push data into Salesforce and pull data out in batches
Suggested answer: B
asked 23/09/2024
Edward Eric
36 questions

Question 290

Report
Export
Collapse

A developer created a Lightning web component that uses a Lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record.

Which best practice should the developer use to perform the validations, and allow more than one error message to be displayed simultaneously?

Client-side validation
Client-side validation
Process Builder
Process Builder
Apex REST
Apex REST
Custom validation rules
Custom validation rules
Suggested answer: A
asked 23/09/2024
Steven Reyes
37 questions
Total 438 questions
Go to page: of 44
Search

Related questions