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

Page 27 of 90

A developer needs to design a custom object that will be integrated into a back-end system.

What should the developer do to ensure good data quality and to ensure that data imports, integrations, and searches perform well? (Choose two.)

  1. Configure a custom field as unique
  2. Configure a custom field as indexed
  3. Configure a custom field as external ID
  4. Configure a custom field as Salesforce ID

Answer(s): A,C



A developer encounters an error that states that the Apex heap size is exceeded.
Which technique may reduce heap size?

  1. Add the transient keyword to the variable definition
  2. Move the variable definition inside the scope of the function
  3. Use static variables instead of instance variables
  4. Use SOQL for loops instead of standard SOQL queries

Answer(s): D



A developer has a Debug method within a class, which is invoked hundreds of times.
What is the optimal functionality in the Developer Console to count the number of calls made to the method?

  1. The "Execution Log" Panel
  2. The "Execution Stack" Panel
  3. The "Executed Units" tab under the Execution Overview Panel
  4. The "Execution Tree" tab under the Stack Tree Panel

Answer(s): C



What is a consideration when testing batch Apex? (Choose two.)

  1. Test methods must execute the batch with a scope size of less than 200 records
  2. Test methods must call the batch execute() method once
  3. Test methods must use the @isTest (SeeAllData=true) annotation
  4. Test methods must run the batch between Test.startTest() and Test.stopTest()

Answer(s): B,D



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