ADM-201 · Question #309
Universal Container's administrator has been asked to create a many-to-many relationship between two existing custom objects. Which two steps should the administrator take when enabling the…
The correct answer is A. Create a junction with a custom object. C. Create two master-detail relationships on the new object. To establish a many-to-many relationship, an administrator must create a new custom object, known as a junction object, and then define two master-detail relationships on this junction object to link the two primary objects.
Question
Universal Container's administrator has been asked to create a many-to-many relationship between two existing custom objects. Which two steps should the administrator take when enabling the many-to-many relationship? Choose 2 answers
Options
- ACreate a junction with a custom object.
- BCreate two lookup relationships on the new object.
- CCreate two master-detail relationships on the new object.
- DCreate URL fields on a custom object.
How the community answered
(27 responses)- A78% (21)
- B7% (2)
- D15% (4)
Why each option
To establish a many-to-many relationship, an administrator must create a new custom object, known as a junction object, and then define two master-detail relationships on this junction object to link the two primary objects.
A junction object is a custom object used to connect two standard or custom objects in a many-to-many relationship by linking to both primary objects.
While lookup relationships connect objects, they do not establish a strong many-to-many relationship with the same data integrity and reporting capabilities as master-detail relationships.
To form a many-to-many relationship, the junction object must have two master-detail relationships, one for each of the two objects it connects, allowing records from both primary objects to be related through the junction object. These master-detail relationships ensure strong data integrity, as the junction object's records inherit security and deletion behavior from its master records.
Creating URL fields on a custom object is for storing web addresses and has no direct relevance to establishing a many-to-many relationship between objects.
Concept tested: Many-to-many relationships and junction objects
Source: https://help.salesforce.com/s/articleView?id=sf.relationships_manytomany.htm&type=5
Topics
Community Discussion
No community discussion yet for this question.