Salesforce Certified Platform App Builder — Question 214
Use case:
An object called "House" is related to Opportunity, there can be many Houses per Opportunity. On houses, we have a field named "Square feet". We need to show the total of Square feet for all houses on each Opportunity.
What type of relationship should we have?
Answer options
- A. Cross-Object
- B. Master-Detail
- C. Lookup
- D. Junction
Correct answer: B
Explanation
A Master-Detail relationship is appropriate here because it allows for the aggregation of data, such as calculating the total square footage of all Houses related to an Opportunity. In contrast, a Lookup relationship would not support roll-up summary fields, while Cross-Object and Junction relationships do not apply to this specific requirement.