An app builder is creating a custom object called Testimonial__c and wants toconnect Testimonial__c records with both the submitter's
Contact record and Account record. If the Account is deleted, the Testimonial__c should also be deleted. If the Contact is deleted, but the
Account remains, the Testimonial__c should remain.
How should this be accomplished?
- Make both the Contact and Account fields required on the Testimonial__c object and create lookup relationships fromTestimonial__c to Contact and to Account.
- Create a master-detail relationship from Testimonial__c to Accountand a lookup relationship from Testimonial__c to Contact.
- Make Testimonial__c a junction object between Account and Contact using master-detail relationships.
- Create a lookup relationship from Testimonial__c to Account and a master-detail relationship from Testimonial__c to Contact.
Answer(s): B
Explanation:
To connect Testimonial__c records with both the submitter's Contact record and Account record, an app builder should create a master-detail relationship from Testimonial__c to Account and a lookup relationship from Testimonial__c to Contact. A master-detail relationship creates a parent-child relationship between two objects and allows for roll-up summary fields, sharing settings, and cascading actions. A lookup relationship creates a loose association between two objects and allows users to relate records from one object to another. Source
Show Answer Next Question