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

Page 46 of 90

When testing batch classes, what must a developer do? (Choose two.)

  1. Use seeAllData=true
  2. Encapsulate code in Test.startTest() and Test.stopTest()
  3. Call the class' "execute" method
  4. Limit the amount of records you test to < 200

Answer(s): B,D

Explanation:

If you use "seeAllData=true," you are a bad person



If a developer wanted to display error messages with the standard Salesforce UI styling, what would they use?

  1. <apex:pageMessages>
  2. <apex:message>
  3. <apex:outputText>
  4. <apex:error>

Answer(s): A



During the Visualforce Page execution, what step follows immediately after "Evaluate constructors on controller and extensions"?

  1. Create the view state
  2. Evaluate constructors, extensions, and expression on attribute definitions on any custom components present
  3. Evaluate expressions, <apex:page> attribute actions, and other method calls (getters/setters) on main page
  4. Send HTML to Browser

Answer(s): B



Where in a query can you use Geolocation and Distance? (Choose two.)

  1. Select clause
  2. Filter clause
  3. Order By clause
  4. Group By clause

Answer(s): B,C



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