nerdexam
Salesforce

CRT-101 · Question #96

Universal Containers 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. B. Create two master detail relationships on the new object. In Salesforce, a many-to-many relationship is implemented using a junction object. Step 1 is A (Create a junction custom object) - a new intermediary object that sits between the two existing objects. Step 2 is B (Create two master-detail relationships on the new junction…

Object Manager and Lightning App Builder

Question

Universal Containers 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 master detail relationships on the new object.
  • CCreate two lookup relationships on the new object.
  • DCreate URL fields on a custom object.

How the community answered

(32 responses)
  • A
    94% (30)
  • C
    3% (1)
  • D
    3% (1)

Explanation

In Salesforce, a many-to-many relationship is implemented using a junction object. Step 1 is A (Create a junction custom object) - a new intermediary object that sits between the two existing objects. Step 2 is B (Create two master-detail relationships on the new junction object) - one master-detail pointing to each of the two original objects. This allows a record in Object A to relate to many records in Object B, and vice versa, through the junction object. Two lookup relationships (C) would create a junction but without the data integrity and cascading delete benefits of master-detail. Creating URL fields (D) is unrelated to object relationships.

Topics

#Many-to-many relationships#Junction objects#Master-detail relationships#Data modeling

Community Discussion

No community discussion yet for this question.

Full CRT-101 Practice