How should an app builder configure the data model?
Show answerHide answer
Correct answer: D Two Master-detail relationships on a new custom object
Explanation
Explanation:Ursa Major Solar needs to model a many-to-many relationship between:
Contact (standard object)
Solar Project (custom object)
In Salesforce, the best practice for modeling many-to-many relationships is to use a junction object. This is a custom object that connects two other objects via two master-detail relationships.
✅ Why Option D is Correct
You create a junction object (e.g., “Project Contact Assignment”).
This junction object has:
A Master-Detail relationship to Contact
A Master-Detail relationship to Solar Project
This setup allows:
One Contact to be linked to many Solar Projects
One Solar Project to be linked to many Contacts
The junction object holds the relationship records and inherits ownership and sharing from both master objects.
❌ Why the Other Options Don’t Work
A. You cannot have two master-detail relationships directly on the Contact and Solar Project objects. That doesn’t create a junction object.
B. Two lookup relationships on a custom object would work, but lookup relationships don’t support roll-up summaries or strict referential integrity like master-detail does.
C. One lookup on each object doesn’t create a junction object and doesn’t support many-to-many relationships.
📘 Reference
You can read more in Salesforce’s official guide to many-to-many relationships