Free CERTIFIED-PLATFORM-DEVELOPER-II Salesforce CERTIFIED-PLATFORM-DEVELOPER-II Practice Test Question

Loading demo links...

Showing 1–3 of 28 questions

Question 1 (Topic 1)

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

Select an option, then click Submit answer.

  • Use Javascript to move data processing to the browser instead of the controller.
  • Use the transient keywords for the List variables used in the custom controller.
  • Use lazy loading to load the data on demand, instead of the controller's constructor.
  • Use an in the page to load all of the data asynchronously.
Question 2 (Topic 1)

A company has many different unit test methods that create Account records as part of their data setup. A new required field was added to the Account and now all of the unit tests fail. What is the optimal way for a developer to fix the issue?

Select an option, then click Submit answer.

  • Add a before insert trigger on Account to set the value of the required field.
  • Create a TestDataFactory class that serves as the single place to create Accounts for unit tests and set the required field there.
  • Change the required field to be a validation rule that excludes the System Administrator profile.
  • Add the required field to the data setup for all of the unit tests.
Question 3 (Topic 1)

A custom Visualforce controller calls the ApexPages.addMessage() method, but no messages are rendering on the page. Which component should be added to the Visualforce page to display the message?

Select an option, then click Submit answer.