Question 161
After a Platform Event is defined in a Salesforce org, events can be published via which two mechanisms?
Choose 2 answers
Question 162
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.
trigger CaseTrigger on Case (after insert, after update){ List<Survey_c> createSurveys = new List<Survey_c>(); for (Case c : trigger.new){ if (c.IsClosed
&& (trigger.isInsert II trigger.isUpdate && trigger.oldMap.get(c.Id).IsClosed == false)){ createSurveys.add(new Survey_c(Case_c = c.Id)); } } insert createSurveys; } What could be the cause of this issue?
Question 163
What is a benefit of JavaScript remoting over Visualforce Remote Objects?
Question 164
To reduce the amount of time needed to write test coverage, a developer wants to use a spreadsheet uploaded as a Static Resource to supply test data in a test method. What code can the developer use to accomplish this?
Question 165
How should a developer verify that a specific Account record is being tested in a test class for a visualforce controller?
