Salesforce Certified Platform Developer II Exam

Page:    1 / 77   
Total 384 questions

A Visualforce page loads slowly due to the large amount of data it displays.
Which strategy can a developer use to improve the performance?

  • A. Use Javascript to move data processing to the browser instead of the controller.
  • B. Use the transient keywords for the List variables used in the custom controller.
  • C. Use lazy loading to load the data on demand, instead of the controllerג€™s constructor.
  • D. Use an <apex:actionPoller> in the page to load all of the data asynchronously.


Answer : C

Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments' containers, based on a junction object that relates the Contact to the various Account records that represent the departments.
Which solution solves these requirements?

  • A. A Visualforce page that uses a Custom Controller that specifies without sharing to expose the records
  • B. A Custom List View on the junction object with filters that will show the proper records based on owner
  • C. A Custom Report Type and a report Lightning Component on the Community Home Page
  • D. An Apex Trigger that creates Apex Managed Sharing records based on the junction objectג€™s relationships


Answer : C

Universal Containers wants to use an external Web Service provided by a third-party vendor to validate that shipping and billing addresses are correct. The current vendor uses basic password authentication, but Universal Containers might switch to a different vendor who uses OAuth.
What would allow Universal Containers to switch vendors without updating the code to handle authentication?

  • A. Custom Metadata
  • B. Custom Setting (List)
  • C. Dynamic Endpoint
  • D. Named Credential


Answer : D

A company has a Lightning Page with many Lightning Components, some that cache reference data. It is reported that the page does not always show the most current reference data.
What can a developer use to analyze and diagnose the problem in the Lightning Page?

  • A. Salesforce Lightning Inspector Actions Tab
  • B. Salesforce Lightning Inspector Event Log Tab
  • C. Salesforce Lightning Inspector Transactions Tab
  • D. Salesforce Lightning Inspector Storage Tab


Answer : D

A company has code to update a Request and Request Lines and make a callout to their external ERP system's REST endpoint with the updated records.

The CalloutUtil.makeRestCallout fails with a 'You have uncommitted work pending. Please commit or rollback before calling out' error.
What should be done to address the problem?

  • A. Remove the Database.setSavepoint and Database.rollback.
  • B. Change the CalloutUtil.makeRestCallout to an @InvocableMethod method.
  • C. Change the CalloutUtil.makeRestCallout to an @future method.
  • D. Move the CalloutUtil.makeRestCallout method call below the catch block.


Answer : C

Page:    1 / 77   
Total 384 questions