ExamGecko
Ask Question

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

List of questions

Question 71

Report
Export
Collapse

What Visualforce tag can be used to display custom messages in pages using the Salesforce Ul styling for errors, warnings, and other types of messages?

<apex:customMessage>
<apex:customMessage>
<apex:error>
<apex:error>
<apex:message>
<apex:message>
<apex:pageMessage>
<apex:pageMessage>
Suggested answer: D
asked 23/09/2024
Franziska Kreuz
36 questions

Question 72

Report
Export
Collapse

A developer is working on code that requires a call to an external web service from a batch. How should the developer enable this functionality?

Implement a custom System.CalloutException class
Implement a custom System.CalloutException class
Include Database.AllowCallout() in the class definition
Include Database.AllowCallout() in the class definition
Implement an @future method for the callout, and invoke it from the batch
Implement an @future method for the callout, and invoke it from the batch
Specify "callout=true" in the batch implementation
Specify "callout=true" in the batch implementation
Suggested answer: B
asked 23/09/2024
Bates, Michael
36 questions

Question 73

Report
Export
Collapse

A developer must create a custom pagination solution for accessing approximately 2000 records and displaying 50 records on each page. Data from Salesforce will be accessed via an API and not via Apex.

How can the developer meet these requirements? (Choose two.)

Use a StandardSetController
Use a StandardSetController
Use CURSOR 50 in SOQL queries
Use CURSOR 50 in SOQL queries
Use OFFSET in SOQL queries
Use OFFSET in SOQL queries
Use LIMIT 50 in SOQL queries
Use LIMIT 50 in SOQL queries
Suggested answer: C, D
asked 23/09/2024
Freddy KUBIAK
49 questions

Question 74

Report
Export
Collapse

A developer must create a way for external partners to submit millions of leads into Salesforce per day-How should the developer meet this requirement?

Publicly expose a Visualforce page via Force.com Sites
Publicly expose a Visualforce page via Force.com Sites
Create a web service on Heroku that uses Heroku Connect
Create a web service on Heroku that uses Heroku Connect
Host a Web-to-Lead form on the company website
Host a Web-to-Lead form on the company website
Publicly expose an Apex Web Service via Force.com Sites
Publicly expose an Apex Web Service via Force.com Sites
Suggested answer: B
asked 23/09/2024
Memo Albah
24 questions

Question 75

Report
Export
Collapse

Which is a valid Apex REST Annotation? (Choose two.)

@Http Patch
@Http Patch
@HttpDelete
@HttpDelete
©HttpUpsert
©HttpUpsert
@HttpAction
@HttpAction
Suggested answer: A, B
asked 23/09/2024
Genivaldo Costa
42 questions

Question 76

Report
Export
Collapse

A customer requires that when the billing address field on an Account gets updated, the address field on all its related contact records should reflect the same update.

How can this requirement be met with minimal customizations?

Create an After Trigger on Account to upd|ate its related contact records on update
Create an After Trigger on Account to upd|ate its related contact records on update
Create a Workflow Rule on Account to update related child Contact records
Create a Workflow Rule on Account to update related child Contact records
Create a Lightning Process on Account to update related child Contact records
Create a Lightning Process on Account to update related child Contact records
Create a scheduled batch job that updates all contact address fields based on the related account record.
Create a scheduled batch job that updates all contact address fields based on the related account record.
Suggested answer: C
asked 23/09/2024
Shariifa DEME
33 questions

Question 77

Report
Export
Collapse

A company requires an external system to be notified whenever an account is updated.

Salesforce Certified Platform Developer II image Question 77 67724 09232024003104000000

What LimitException could the following code trigger?

System.LimitException: Too many future calls
System.LimitException: Too many future calls
System.LimitException: Too many callouts
System.LimitException: Too many callouts
System.LimitException: Too many SOQL queries
System.LimitException: Too many SOQL queries
System.CalloutException: Callout from triggers are currently not supported
System.CalloutException: Callout from triggers are currently not supported
Suggested answer: A
asked 23/09/2024
Mustapha Amine Atmani
46 questions

Question 78

Report
Export
Collapse

A developer is using a third-party JavaScript library to create a custom user interface in Visualforce.

The developer needs to use JavaScript to get data from a controller method in response to a user action.

How can the developer accomplish this?

Use <apex:actionFunction> to create a JavaScript wrapper for the controller method
Use <apex:actionFunction> to create a JavaScript wrapper for the controller method
Use the @RemoteAction annotation on the method definition with JavaScript Remoting
Use the @RemoteAction annotation on the method definition with JavaScript Remoting
Use the $Controller global variable to access the controller method via JavaScript
Use the $Controller global variable to access the controller method via JavaScript
Use <apex:actionSupport> to enable JavaScript support for the controller method
Use <apex:actionSupport> to enable JavaScript support for the controller method
Suggested answer: B
asked 23/09/2024
David Ezejimofor
36 questions

Question 79

Report
Export
Collapse

A company exposes a REST web service and wants to establish two-way SSL between Salesforce and the REST web service. A certificate signed by an appropriate certificate authority has been provided to the developer.

What modification is necessary on the Salesforce side? (Choose two.)

Create an entry for the certificate in Certificate and Key Management
Create an entry for the certificate in Certificate and Key Management
Update the code to use HttpRequest.setClientCertificateName()
Update the code to use HttpRequest.setClientCertificateName()
Configure two-factor authentication with the provided certificate
Configure two-factor authentication with the provided certificate
Update the code to use HttpRequest.setHeaderQ to set an Authorization header.
Update the code to use HttpRequest.setHeaderQ to set an Authorization header.
Suggested answer: A, B
asked 23/09/2024
Ali Alaqoul
34 questions

Question 80

Report
Export
Collapse

What is a consideration when using bind variables with dynamic SOQL? (Choose two.)

Dynamic SOQL cannot reference fields on bind variables
Dynamic SOQL cannot reference fields on bind variables
Dynamic SOQL cannot use bind variables
Dynamic SOQL cannot use bind variables
Bind variables must be public or global
Bind variables must be public or global
Bind variables must be in local scope
Bind variables must be in local scope
Suggested answer: A, D
asked 23/09/2024
Shariifa DEME
33 questions
Total 438 questions
Go to page: of 44
Search

Related questions