Question 1
Choose 1
A software company is using Salesforce to track the companies they sell their software to in the Account object. They also use Salesforce to track bugs in their software with a custom object, Bug c. As part of a process improvement initiative, they want to be able to report on which companies have reported which bugs. Each company should be able t report multiple bugs and bugs can also be reported by multiple companies. What is needed to allow this reporting?
Correct answer:
B. Junction object between Bug c and Account
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.
- 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.

