Free CERTIFIED-PLATFORM-DEVELOPER-II Salesforce CERTIFIED-PLATFORM-DEVELOPER-II Practice Test Question

Loading demo links...

Showing 10–12 of 28 questions

Question 10 (Topic 1)

What is a recommended practice with regard to the Apex CPU limit? (Choose two.)

Select an option, then click Submit answer.

  • Optimize SOQL query performance
  • Use Map collections to cache sObjects
  • Avoid nested Apex iterations
  • Reduce view state in Visualforce pages
Question 11 (Topic 1)

Which statement is true regarding the use of user input as part of a dynamic SOQL query?

Select an option, then click Submit answer.

  • Free text input should not be allowed, to avoid SOQL injection
  • The String.format() method should be used to prevent injection
  • Quotes should be escaped to protect against SOQL injection
  • The string should be URL encoded by the input form to prevent errors
Question 12 (Topic 1)

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); } }

Select an option, then click Submit answer.

  • 1, 2, 3, 3
  • 1, 2, 3, 4
  • 2, 2, 4, 4
  • 2, 2, 3, 3