Free Salesforce PDII Exam Braindumps (page: 19)

A developer has been asked to create code that will meet the following requirements:

Receives input of: Map<Id, Project_c), List<Account>
Performs a potentially long-running callout to an outside web service
Provides a way to confirm that the process executed successfully

Which asynchronous feature should be used?

  1. @future (callout=true)
  2. Database.AllowCallouts interface
  3. Schedulable interface
  4. Queueable interface

Answer(s): D



A developer wants to retrieve and deploy metadata, perform simple CSV export of query results, and debug Apex REST calls by viewing JSON responses.
Which tool should the developer use?

  1. Developer Console
  2. Force.com Migration Tool
  3. Workbench
  4. Force.com IDE

Answer(s): C



What is a best practice when unit testing a controller? (Choose two.)

  1. Simulate user interaction by leveraging Test.setMock()
  2. Verify correct references by using getURL()
  3. Access test data by using seeAllData=true
  4. Set query parameters by using getParameters().put

Answer(s): B,D



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

  1. <apex:customMessage>
  2. <apex:error>
  3. <apex:message>
  4. <apex:pageMessage>

Answer(s): D






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

PDII Exam Discussions & Posts