Salesforce Certified Platform Developer II Practice Test 7
Question 1 / 40
A company has a custom object Sales_Help_Request__c that has a Lookup relationship to Opportunity. The Sales_Help_Request__c has a number field, Number_of_Hours__c, that represents the amount of time spent on the Sales_Help_Request__c.
A developer is tasked with creating a field, Total_Hours__c, on Opportunity that should be the sum of all of the Number_of_Hours__c values for the Sales_Help_Request__c records related to that Opportunity.
What should the developer use to implement this?
A workflow rule on the Sales_Help_Request__c object
A roll-up summary field on the Opportunity object
A trigger on the Opportunity object
A trigger on Sales_Help_Request__c