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

Page 20 of 90

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?

  1. Create an After Trigger on Account to update its related contact records on update
  2. Create a Workflow Rule on Account to update related child Contact records
  3. Create a Lightning Process on Account to update related child Contact records
  4. Create a scheduled batch job that updates all contact address fields based on the related account record

Answer(s): C



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

trigger AccountTrigger on Account (after update){ for (Account updatedAccount:Trigger.new){ AccountTriggerHelper.notinyxternalSystem(updatedAccount.id); } } public class AccountTriggerHelperfuture(callout=true){ public static void notinyxternalSystem(Id accountId){ Account acc = [Select id, name from Account where accountId = :accountId]; http objectHttp h = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint('http://example.org/restService'); req.setMethod('POST'); req.setBody(JSON.serialize(acc)); HttpResponse res = h.send(req); } }

What LimitException could the following code trigger?

  1. System.LimitException: Too many future calls
  2. System.LimitException: Too many callouts
  3. System.LimitException: Too many SOQL queries
  4. System.CalloutException: Callout from triggers are currently not supported

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

  1. Use <apex:actionFunction> to create a JavaScript wrapper for the controller method
  2. Use the @RemoteAction annotation on the method definition with JavaScript Remoting
  3. Use the $Controller global variable to access the controller method via JavaScript
  4. Use <apex:actionSupport> to enable JavaScript support for the controller method

Answer(s): D



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

  1. Create an entry for the certificate in Certificate and Key Management
  2. Update the code to use HttpRequest.setClientCertificateName()
  3. Configure two-factor authentication with the provided certificate
  4. Update the code to use HttpRequest.setHeader() to set an Authorization header

Answer(s): A,B



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