Salesforce Tableau Crm Einstein Discovery Consultant · Free Practice Question Medium
Question 9
What is the difference between a lookup relationship and a master-detail relationship in Salesforce?
- A A. Lookup relationships are one-to-many, while master-detail relationships are many-to-many.
- B B. Lookup relationships are many-to-many, while master-detail relationships are one-to-many.
- C C. Lookup relationships allow deletion of child records, while master-detail relationships do not.
- D D. Master-detail relationships allow sharing of child records, while lookup relationships do not.
Reveal correct answer
Correct answer: C
Explanation
The proposition C, which states that lookup relationships allow deletion of child records while master-detail relationships do not, is correct. In Salesforce, a lookup relationship is a type of relationship between two objects where one object (the child) has a reference to another object (the parent). This relationship is one-to-many, meaning that one parent record can have multiple child records, but each child record can only have one parent record. On the other hand, a master-detail relationship is a type of relationship between two objects where one object (the detail) is considered a subordinate to another object (the master). This relationship is many-to-one, meaning that multiple detail records can be associated with one master record, but each detail record can only be associated with one master record. The reason why proposition C is correct is that in a lookup relationship, the child record is not dependent on the parent record. This means that if the parent record is deleted, the child record will still exist and will simply lose its reference to the parent record. Therefore, in a lookup relationship, it is possible to delete child records without affecting the parent record. In contrast, in a master-detail relationship, the child record is dependent on the parent record. This means that if the parent record is deleted, all associated child records will also be deleted. Therefore, in a master-detail relationship, it is not possible to delete child records without also deleting the parent record. To summarize, the main difference between a lookup relationship and a master-detail relationship in Salesforce is the level of dependency between the parent and child records. Lookup relationships allow for more flexibility in terms of deleting child records, while master-detail relationships provide more control over the sharing of child records.Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
