Question 206

After a Platform Event is defined in a Salesforce org, events can be published via which two mechanisms? Choose 2 answers
  • Question 207

    What is the value of "i" printed by the System.debug statement, if the value of "j" is 2 at the end of the transaction? insert new Account[]{new Account(Name = 'yyy'), new Account(Name = 'yyy')}; integer i = 0; integer j; for (Account[] tmp : [SELECT Id FROM Account WHERE Name = 'yyy']) j=tmp.size(); i++; System.debug(i);
  • Question 208

    A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org. Users report that they receive a "Maximum view state size limit" error message under certain conditions.
    According to Visualforce best practice, which three actions should the developer take to reduce the view state?
    (Choose three.)
  • Question 209

    A developer writes the following Apex trigger so that when a Case is closed, a single Survey record is created for that Case. The issue is that multiple Survey_c records are being created per Case.

    What could be the cause of this issue?
  • Question 210

    What are the ways a developer can create test data of Contacts? (Choose two.)