Salesforce App Builder Complete Practice Exam 2025

Question: 1 / 400

What type of relationship field must exist before creating a roll-up summary field on a custom object?

A lookup relationship field on the parent object.

A lookup relationship field on the child object.

A master-detail relationship field on the parent object.

A master-detail relationship field on the child object.

To create a roll-up summary field on a custom object, a master-detail relationship field must be established on the parent object. This relationship defines a direct link between the parent and child records, ensuring that the roll-up summary field can aggregate data from the child records that are directly associated with a single parent record.

In this scenario, the master-detail relationship allows for the automatic summarization of the child record values (such as COUNT, SUM, MIN, MAX) at the parent level. This is a critical aspect of roll-up summary fields because they rely on the hierarchical relationship to function properly, allowing the parent to compute values based on related child records.

Other relationship types, such as lookup relationships, do not support the creation of roll-up summary fields since they do not establish the same level of dependency and ownership required for direct data aggregation. With a master-detail relationship, if the parent record is deleted, all associated child records are also deleted, reinforcing the strong tie that roll-up summary fields rely upon.

Get further explanation with Examzify DeepDiveBeta
Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy