Study for the Salesforce App Builder Exam. Challenge yourself with interactive questions and get detailed feedback. Boost your confidence and ace your exam!

Practice this question and more.


Which component type must be present for creating a roll-up summary in Salesforce?

  1. Lookup relationship field on parent object.

  2. Master-detail relationship field on child object.

  3. Lookup relationship field on child object.

  4. Master-detail relationship field on parent object.

The correct answer is: Master-detail relationship field on child object.

Creating a roll-up summary field in Salesforce requires a specific relationship between the parent object and the child object. A roll-up summary can only be created on a master-detail relationship, which means that the child record is dependent on the parent record. In this context, the correct choice indicates that there must be a master-detail relationship field on the child object. The roll-up summary field operates by aggregating data from related child records (such as sum, count, or minimum/maximum values) and displaying that information on the parent record. This relationship ensures that the parent can accurately summarize the data from its children. The master-detail relationship also makes sure that when the parent record is deleted, the child records are also deleted, which maintains data integrity. Thus, the presence of a master-detail relationship on the child object is essential for roll-up summaries to function correctly, accurately processing and summarizing the related child data for the parent record.