Show answerHide answer
Correct answer: B Junction object between Bug c and Account
Explanation
Explanation:- Since each company can report multiple bugs, and each bug can be reported by multiple companies, this is a many-to-many relationship.
- Salesforce does not support direct many-to-many relationships, so a junction object is required to link Bug__c and Account.
- The junction object will have two lookup fields, one to Bug__c and one to Account, allowing flexible reporting on which companies reported which bugs.
❌ Why the other options are incorrect:
A. Roll-up summary field of Bug__c on Account
❌ Only works with master-detail relationships, and only rolls up child data — doesn’t allow many-to-many.
C. Lookup field on Bug__c to Account
❌ This creates a one-to-many relationship: one bug to many accounts is not supported with just one lookup.
D. Master-detail field on Bug__c to Account
❌ Also creates a one-to-many relationship: each bug could belong to only one account.
Key Takeaways:
✅ Junction object (B) is the only way to model many-to-many relationships in Salesforce.
🚫 Other options force one-to-many relationships, violating the requirement.
