Free Certified Platform Developer II Exam Braindumps
Certified Platform Developer II Questions 121–125 (page: 26)

Updated On: 10-Feb-2026

What is the correct syntax for calling a controller action from a Visualforce page and updating part of the page once the action is completed? (Choose two.)

  1. <apex:commandFunction action="{!Save}" value="Save" rendered="thePageBlock"/>
  2. <apex:actionFunction action="{!Save}" name="Save" rerender="thePageBlock"/>
  3. <apex:commandButton action="{!Save}" value="Save" redraw="thePageBlock"/>
  4. <apex:actionSupport action="{!Save} " event="onchange" rerender="thePageBlock"/>

Answer(s): B,D



Employee_c is a Child object of Company_c. The Company_c object has an external Id field Company_Id_c. How can a developer insert an Employee_c record linked to Company_c with a Company_Id_c of '999'?

  1. Employee_c emp = new Employee_c(Name='Developer'); emp.Company_r = '999' insert emp;
  2. Employee_c emp = new Employee_c(Name='Developer'); emp.Company_c = '999' insert emp;
  3. Employee_c emp = new Employee_c(Name='Developer'); emp. Company_c = new Company_c(Company_Id_c='999') insert emp;
  4. Employee_c emp = new Employee_c(Name='Developer'); emp.Company_r = new Company_r(Company_Id_c='999') insert emp;

Answer(s): D



A developer must create a custom pagination solution.
While users navigate through pages, if the data is changed from elsewhere, users should still see the cached results first accessed.
How can the developer meet these requirements?

  1. Use @Cache annotation
  2. Use a StandardSetController
  3. Use OFFSET in SOQL queries
  4. Use OFFSET WITH CACHE in SOQL queries

Answer(s): B



Which use case is an appropriate fit for the @future asynchronous Apex method? (Choose two.)

  1. A developer has jobs that need larger query results than regular transactions allow
  2. A developer needs to segregate DML operations and bypass the mixed save DML error
  3. A developer has long-running jobs with large data volumes that need to be performed in batches
  4. A developer has long-running methods and needs to prevent delaying an Apex transaction

Answer(s): B,D



A developer has written an After Update trigger on Account. A workflow rule and field update cause the trigger to repeatedly update the Account records.
How should the developer handle the recursive trigger?

  1. Deactivate the trigger and move the logic into a Process or Flow
  2. Deactivate the workflow rule to prevent the field update from executing
  3. Use a static variable to prevent the trigger from executing more than once
  4. Use a global variable to prevent the trigger from executing more than once

Answer(s): C



Viewing page 26 of 86
Viewing questions 126 - 130 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!