Salesforce Platform Developer I (legacy) — Question 138
Universal Containers has a support process that allows users to request support from its engineering team using a custom object, Engineering_Support__c.
Users should be able to associate multiple Engineering_Support__c records to a single Opportunity record. Additionally, aggregate information about the Engineering_Support__c records should be shown on the Opportunity record.
What should a developer implement to support these requirements?
Answer options
- A. Master-detail field from Opportunity to Engineering_Support__c
- B. Lookup field from Engineering_Support__c to Opportunity
- C. Lookup field from Opportunity to Engineering_Support__c
- D. Master-detail field from Engineering_Support__c to Opportunity
Correct answer: D
Explanation
The correct answer is D because a master-detail relationship from Engineering_Support__c to Opportunity allows multiple Engineering_Support__c records to be associated with a single Opportunity, and enables aggregate data to flow back to the Opportunity. Options A and C do not meet the requirement of aggregating data on the Opportunity, while option B only allows a single Engineering_Support__c to be associated with an Opportunity, which does not satisfy the need for multiple associations.