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

Page 31 of 90

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



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