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

Page 10 of 90

A company has a custom object, Sales Demo Request, that has a lookup to an Opportunity. It is required that a Sales Demo Request record be created when an Opportunity’s Probability is greater than 50%.
What is the optimal way to automate this?

  1. Use an Apex Trigger on Opportunity.
  2. Build a Flow on Opportunity.
  3. Create a Workflow on Opportunity.
  4. Build a Process on Opportunity.

Answer(s): A



A company represents their customers as Accounts in Salesforce. All customers have a unique Customer_Number c that is unique across all of the company’s systems. They also have a custom
Invoice c object, with a Lookup to Account, to represent invoices that are sent out from their external system. This company wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer is paying their bills on time.

What is the optimal way to implement this?

  1. Ensure Customer_Number c is an External ID and that a custom field Invoice_Number c is an External ID and Upsert invoice data nightly.
  2. Query the Account Object upon each call to insert invoice data to fetch the Salesforce ID corresponding to the Customer Number on the invoice.
  3. Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly.
  4. Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code.

Answer(s): A



An Apex trigger creates an Order c record every time an Opportunity is won by a Sales Rep. Recently the trigger is creating two orders.
What is the optimal method for a developer to troubleshoot this?

  1. Set up debug logging for every Sales Rep, then monitor the logs for errors and exceptions.
  2. Turn off all Workflow Rules, then turn them on one at time to see which one causes the error.
  3. Add system.debug() statements to the code and use the Developer Console logs to trace the code.
  4. Run the Apex Test Classes for the Apex trigger to ensure the code still has sufficient code coverage.

Answer(s): C



A company wants to incorporate a third-party web service to set the Address fields when an Account is inserted, if they have not already been set.
What is the optimal way to achieve this?

  1. Create a Process, call an Apex @future(callout=true) method from it, and make the callout from that Apex method.
  2. Create a Process, call an Apex @InvocableMethod from it, and make the callout from that Apex method.
  3. Create an after insert trigger, call an Apex @InvocableMethod method from it, and make the callout from that Apex method.
  4. Create an after insert trigger, call an @future(callout=true) method from it, and make the callout from that Apex method.

Answer(s): D



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