ExamGecko
Ask Question

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

List of questions

Question 271

Report
Export
Collapse

Salesforce Certified Platform Developer II image Question 271 67918 09232024003105000000

What can be done to improve the performance of the insert trigger shown above?

Suggested answer: D
asked 23/09/2024
Georgios Kavvalakis
31 questions

Question 272

Report
Export
Collapse

Which annotation exposes an Apex class as a RESTful neb service?

@RemoteAction
@RemoteAction
@RestRtsoorct
@RestRtsoorct
@AuraEnaWed
@AuraEnaWed
@HttpInvocabte
@HttpInvocabte
Suggested answer: B
asked 23/09/2024
Leandro Zaneratto
46 questions

Question 273

Report
Export
Collapse

A developer Is tasked with ensuring that email addresses entered into the system for Contacts and for a Custom Object called Survey_Response__c do not belong to a list of blacklisted domains. The list of blacklisted domains will be stored In a custom object for ease of maintenance by users. Note that the Survey_Response__c object is populated via a custom visualforce page.

What is the optimal way to implement this?

Implement the logic in an Apex trigger on Contact and also implement the logic within the Custom visualforce page controller.
Implement the logic in an Apex trigger on Contact and also implement the logic within the Custom visualforce page controller.
Implement the logic in the Custom Visualforce page controller and call that method from an Apex trigger on Contact.
Implement the logic in the Custom Visualforce page controller and call that method from an Apex trigger on Contact.
Implement the logic in a helper class that is called by an Apex trigger on Contact and from the Custom Visualforce page controller.
Implement the logic in a helper class that is called by an Apex trigger on Contact and from the Custom Visualforce page controller.
Implement the logic in a Validation Rule on the Contact and a validation Rule on the Survey_Response__c object.
Implement the logic in a Validation Rule on the Contact and a validation Rule on the Survey_Response__c object.
Suggested answer: C
asked 23/09/2024
evalson martin laplap
49 questions

Question 274

Report
Export
Collapse

Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers' sales representatives can edit the orders on the same Visualforce page.

What should a developer use in an Apex test class to test that record sharing is enforced on the Visualforce page?

Use System.profllels() to test as an administrator and a community user,
Use System.profllels() to test as an administrator and a community user,
Use System.profilels() to test as a sales rep and a community user.
Use System.profilels() to test as a sales rep and a community user.
Use System.runAs() to test as a sales rep and a community user.
Use System.runAs() to test as a sales rep and a community user.
Use System.runAs() to test as an administrator and a community user.
Use System.runAs() to test as an administrator and a community user.
Suggested answer: C
asked 23/09/2024
Farrah Colson
34 questions

Question 275

Report
Export
Collapse

A company has a custom object. Request__c. that has a field, Completed__c. and a Lookup to Opportunity, Opportunity__c.

Which SOQL query will get a unique list of all of the Opportunity records that have a Completed Request?

Suggested answer: C
asked 23/09/2024
Leandro Franklin Franklin
43 questions

Question 276

Report
Export
Collapse

What is a benefit of using a WSDL with Apex?

Allows for web services to be tested and achieve code coverage
Allows for web services to be tested and achieve code coverage
Allows for classes to be imported into Salesforce
Allows for classes to be imported into Salesforce
Reduces the number of callouts to third-party web services
Reduces the number of callouts to third-party web services
Enables the user to not pass a Session ID where it is not necessary
Enables the user to not pass a Session ID where it is not necessary
Suggested answer: B
asked 23/09/2024
Test Test
25 questions

Question 277

Report
Export
Collapse

An org contains two custom objects; Building__c and Office__c. Office__c has a Lookup field to Building__c.

A developer is asked to automatically populate the Number_of_Offices__c field on the Building__c object with the count of related Office__c records anytime an Office__c record s created or deleted. The developer cannot modify the field types.

Which solution meets the requirements?

Flow
Flow
Workflow
Workflow
Apex Trigger
Apex Trigger
Process Builder
Process Builder
Suggested answer: C
asked 23/09/2024
Duc Hai
40 questions

Question 278

Report
Export
Collapse

A developer i$ tasked Dy Unversai Containers to build out a system to track the container repair process. Containers should be tracked as they move through the repair process, starting when a customer reports an issue and ending when the container is returned to the customer.

Which solution meets these business requirements while following best practices?

Use Flow Builder|.to develop a Sites page for customers to submit repair requests and track the status of their request.
Use Flow Builder|.to develop a Sites page for customers to submit repair requests and track the status of their request.
involve a Salesforce administrator and build out a declarative solution that works in Salesforce desktop and mobile.
involve a Salesforce administrator and build out a declarative solution that works in Salesforce desktop and mobile.
Build an automated Lightning Application using Application Events to ensure data integrity.
Build an automated Lightning Application using Application Events to ensure data integrity.
Use Platform Events with Workflow Rules and RFID integration to ensure proper tracking of the containers.
Use Platform Events with Workflow Rules and RFID integration to ensure proper tracking of the containers.
Suggested answer: A
asked 23/09/2024
Daniel Silva
42 questions

Question 279

Report
Export
Collapse

A developer receives an error when trying to call a global server-side method using the @remoteAction decorator. How can the developer resolve the error?

Add static to the server-side method signature.
Add static to the server-side method signature.
Decorate the server-side method with (static=true).
Decorate the server-side method with (static=true).
Change the function signature to be private static.
Change the function signature to be private static.
Decorate the server-side method with (static=false)
Decorate the server-side method with (static=false)
Suggested answer: A
asked 23/09/2024
DAVID STAATZ
40 questions

Question 280

Report
Export
Collapse

A developer wants to integrate invoice and invoice line data into Salesforce from a custom billing system. The developer decides to make realtime callouts from the billing system using the SOAP API.

Unfortunately, the developer is getting a lot of errors when inserting the invoice line data because the invoice header record doesn't exist yet.

What will help ensure ne transactional Integrity of the integration?

Create the invoice header and the related invoice lines in the same create() call leveraging External Ids.
Create the invoice header and the related invoice lines in the same create() call leveraging External Ids.
Develop a custom Apex web service to handle a custom JSON data structure with both invoice header and related invoice lines.
Develop a custom Apex web service to handle a custom JSON data structure with both invoice header and related invoice lines.
Use an ETL tool and the Bulk API running nightly, thus ensuring all of the data is handled at the same time.
Use an ETL tool and the Bulk API running nightly, thus ensuring all of the data is handled at the same time.
Set the AIIOrNoneHeader to true when calling each of create() for invoice headers and create() for invoice lines.
Set the AIIOrNoneHeader to true when calling each of create() for invoice headers and create() for invoice lines.
Suggested answer: A
asked 23/09/2024
Roberto Recine
50 questions
Total 438 questions
Go to page: of 44
Search

Related questions