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

Page 18 of 90

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



Page 18 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