Free Salesforce PDII Exam Braindumps (page: 20)

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






Post your Comments and Discuss Salesforce PDII exam prep with other Community members:

PDII Exam Discussions & Posts