Objects And Applications Flashcards

1
Q

What is the difference between a lookup and master-detail relationship?

A

Both allow one object to be related to another in a one-many relationship. However, in a master-detail, the detail record wouldn’t exist without the master and usually when the master is deleted, the detail records are deleted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How is a many-to-many relationship created?

A

Using a Junction object. This object sits between the 2 objects in the many-to-many relationship, and has 2 master-detail fields, one for each of the objects to be related.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the appropriate relationship type if one record would not exist without the other?

A

A master-detail relationship is used when one record would not exist without the other, such as Order Line Items would not exist without Orders

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When should a many-to-many relationship type be used when relating custom objects?

A

When a record from one object can be linked to multiple records from another object and vice versa

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

If there is a possibility that a detail record should be linked to a different parent record be linked to a different parent record when the master is deleted, should a master detail relationship be used?

A

Yes, master-detail relationship types have a reparenting option to allow detail records to be associated with another master record.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which relationship type could be used to link one contact with another?

A

Self relationship (thru Lookup Relationship field)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which relationship is if the security and ownership of the child custom object records should depend on the parent standard object record?

A

Master-detail relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which relationship type is available on the user object record to associate one user with another?

A

Hierarchical relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What needs to be created to define a many-to-many relationship in Salesforce?

A

A junction object with two master-detail relationship fields

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which standard objects are not supported for master-detail relationships?

A

User and Lead

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which option is available to allow a detail record to be linked to a different parent record in a master-detail relationship?

A

Allow reparenting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What needs to be true in order to convert a master-detail relationship to a lookup relationship?

A

There should be no roll-up summary field on the master object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an important consideration for converting a lookup relationship to a master-detail relationship?

A

The lookup field in all detail records should contain a value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which type of field can be created to count and display the number of records of a child object that is related to a parent object though a master-detail relationship?

A

Roll-Up Summary Field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly