Free Certified Platform Developer II Exam Braindumps (page: 19)

Page 19 of 90

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?

  1. Implement a custom System.CalloutException class
  2. Include Database.AllowCallout() in the class definition
  3. Implement an @future method for the callout, and invoke it from the batch
  4. Specify "callout=true" in the batch implementation

Answer(s): 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.)

  1. Use a StandardSetController
  2. Use CURSOR 50 in SOQL queries
  3. Use OFFSET in SOQL queries
  4. Use LIMIT 50 in SOQL queries

Answer(s): 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?

  1. Publicly expose a Visualforce page via Force.com Sites
  2. Create a web service on Heroku that uses Heroku Connect
  3. Host a Web-to-Lead form on the company website
  4. Publicly expose an Apex Web Service via Force.com Sites

Answer(s): B



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

  1. @HttpPatch
  2. @HttpDelete
  3. @HttpUpsert
  4. @HttpAction

Answer(s): A,B



Page 19 of 90



Post your Comments and Discuss Salesforce Certified Platform Developer II exam with other Community members:

Jenil Gandhi commented on November 14, 2024
Hi everyone could sone share the certification voucher for PD2.
INDIA
upvote

Aniq commented on December 02, 2023
Hi every one Could some share the certification voucher for PD2
Anonymous
upvote

Rasheed commented on June 07, 2023
Worth the price. I got 50% off when I selected 2 exams.
PAKISTAN
upvote

Lisha commented on September 21, 2022
Thank you!
Anonymous
upvote