ExamGecko
Home Home / Salesforce / Certified Platform Developer II

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

Question list
Search
Search

List of questions

Search

Related questions











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?

A.
<apex:customMessage>
A.
<apex:customMessage>
Answers
B.
<apex:error>
B.
<apex:error>
Answers
C.
<apex:message>
C.
<apex:message>
Answers
D.
<apex:pageMessage>
D.
<apex:pageMessage>
Answers
Suggested answer: D

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?

A.
Implement a custom System.CalloutException class
A.
Implement a custom System.CalloutException class
Answers
B.
Include Database.AllowCallout() in the class definition
B.
Include Database.AllowCallout() in the class definition
Answers
C.
Implement an @future method for the callout, and invoke it from the batch
C.
Implement an @future method for the callout, and invoke it from the batch
Answers
D.
Specify "callout=true" in the batch implementation
D.
Specify "callout=true" in the batch implementation
Answers
Suggested answer: B

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.)

A.
Use a StandardSetController
A.
Use a StandardSetController
Answers
B.
Use CURSOR 50 in SOQL queries
B.
Use CURSOR 50 in SOQL queries
Answers
C.
Use OFFSET in SOQL queries
C.
Use OFFSET in SOQL queries
Answers
D.
Use LIMIT 50 in SOQL queries
D.
Use LIMIT 50 in SOQL queries
Answers
Suggested answer: C, D

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?

A.
Publicly expose a Visualforce page via Force.com Sites
A.
Publicly expose a Visualforce page via Force.com Sites
Answers
B.
Create a web service on Heroku that uses Heroku Connect
B.
Create a web service on Heroku that uses Heroku Connect
Answers
C.
Host a Web-to-Lead form on the company website
C.
Host a Web-to-Lead form on the company website
Answers
D.
Publicly expose an Apex Web Service via Force.com Sites
D.
Publicly expose an Apex Web Service via Force.com Sites
Answers
Suggested answer: B

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

A.
@Http Patch
A.
@Http Patch
Answers
B.
@HttpDelete
B.
@HttpDelete
Answers
C.
©HttpUpsert
C.
©HttpUpsert
Answers
D.
@HttpAction
D.
@HttpAction
Answers
Suggested answer: A, B

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?

A.
Create an After Trigger on Account to upd|ate its related contact records on update
A.
Create an After Trigger on Account to upd|ate its related contact records on update
Answers
B.
Create a Workflow Rule on Account to update related child Contact records
B.
Create a Workflow Rule on Account to update related child Contact records
Answers
C.
Create a Lightning Process on Account to update related child Contact records
C.
Create a Lightning Process on Account to update related child Contact records
Answers
D.
Create a scheduled batch job that updates all contact address fields based on the related account record.
D.
Create a scheduled batch job that updates all contact address fields based on the related account record.
Answers
Suggested answer: C

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

What LimitException could the following code trigger?

A.
System.LimitException: Too many future calls
A.
System.LimitException: Too many future calls
Answers
B.
System.LimitException: Too many callouts
B.
System.LimitException: Too many callouts
Answers
C.
System.LimitException: Too many SOQL queries
C.
System.LimitException: Too many SOQL queries
Answers
D.
System.CalloutException: Callout from triggers are currently not supported
D.
System.CalloutException: Callout from triggers are currently not supported
Answers
Suggested answer: A

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?

A.
Use <apex:actionFunction> to create a JavaScript wrapper for the controller method
A.
Use <apex:actionFunction> to create a JavaScript wrapper for the controller method
Answers
B.
Use the @RemoteAction annotation on the method definition with JavaScript Remoting
B.
Use the @RemoteAction annotation on the method definition with JavaScript Remoting
Answers
C.
Use the $Controller global variable to access the controller method via JavaScript
C.
Use the $Controller global variable to access the controller method via JavaScript
Answers
D.
Use <apex:actionSupport> to enable JavaScript support for the controller method
D.
Use <apex:actionSupport> to enable JavaScript support for the controller method
Answers
Suggested answer: B

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.)

A.
Create an entry for the certificate in Certificate and Key Management
A.
Create an entry for the certificate in Certificate and Key Management
Answers
B.
Update the code to use HttpRequest.setClientCertificateName()
B.
Update the code to use HttpRequest.setClientCertificateName()
Answers
C.
Configure two-factor authentication with the provided certificate
C.
Configure two-factor authentication with the provided certificate
Answers
D.
Update the code to use HttpRequest.setHeaderQ to set an Authorization header.
D.
Update the code to use HttpRequest.setHeaderQ to set an Authorization header.
Answers
Suggested answer: A, B

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

A.
Dynamic SOQL cannot reference fields on bind variables
A.
Dynamic SOQL cannot reference fields on bind variables
Answers
B.
Dynamic SOQL cannot use bind variables
B.
Dynamic SOQL cannot use bind variables
Answers
C.
Bind variables must be public or global
C.
Bind variables must be public or global
Answers
D.
Bind variables must be in local scope
D.
Bind variables must be in local scope
Answers
Suggested answer: A, D
Total 408 questions
Go to page: of 41