Free Certified Platform Developer II Exam Braindumps
Certified Platform Developer II Questions 106–110 (page: 23)

Updated On: 10-Feb-2026

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



A custom field Exec_Count_c of type Number is created on an Account object. An account record with value of "1" for a: Exec_Count_c is saved. A workflow field update is defined on the Exec_Count_c field, to increment its value every time an account record is created or updated. The following trigger is defined on the account:

trigger ExecOrderTrigger on Account (before insert, before update, after insert, after update){ for (Account accountInstance: Trigger.New){ if (Trigger . isBefore){ accountInstance Exec_Count_c += 1; } System. debug (accountInstance.Exec_Count_c); } }

  1. 1, 2, 3, 3
  2. 1, 2, 3, 4
  3. 2, 2, 4, 4
  4. 2, 2, 3, 3

Answer(s): C



A developer is building a Visualforce page that interacts with external services.
Which interface should the developer implement to test this functionality? (Choose two.)

  1. HTTPCalloutMock
  2. HTTPRequestMock
  3. HTTPResponseMock
  4. StaticResourceCalloutMock

Answer(s): A,D



Viewing page 23 of 86
Viewing questions 111 - 115 out of 424 questions


Post your Comments and Discuss Salesforce Certified Platform Developer II exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!