SF-Admin Object Manager and Lightning App Builder Practice Question
Cloud Kicks has a custom object 'Shipment__c' with a master-detail relationship to 'Order__c'. The administrator needs to create a new field on 'Shipment__c' that automatically calculates the total weight of all related 'Package__c' records. Which two actions should the administrator take to achieve this? (Choose two.)
⚠ Common exam trap
The trap here is assuming that a cross-object formula or an automation tool can sum child records, but only a roll-up summary field with a master-detail relationship can perform this aggregation declaratively.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Ensure that 'Package__c' has a master-detail relationship to 'Shipment__c'.
To automatically calculate the total weight of related 'Package__c' records on 'Shipment__c', the administrator should create a roll-up summary field on 'Shipment__c'. This requires that 'Package__c' has a master-detail relationship to 'Shipment__c'. Roll-up summary fields are the standard declarative tool for aggregating child records, making these two actions the correct combination.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Create a trigger on 'Package__c' that updates the parent 'Shipment__c' record.
Why it's wrong here
Apex triggers can achieve aggregation, but they require code and maintenance. The scenario asks for a declarative solution, and triggers are not necessary when roll-up summary fields are available. Triggers also consume governor limits and are more error-prone than standard functionality.
- ✗
Create a formula field on 'Shipment__c' that uses a cross-object formula to reference 'Package__c'.
Why it's wrong here
Cross-object formula fields can reference fields on parent objects, not child records. Since 'Package__c' is a child of 'Shipment__c', a formula cannot aggregate multiple child records. This approach would not work because formulas operate on a single record and cannot sum related lists.
- ✓
Ensure that 'Package__c' has a master-detail relationship to 'Shipment__c'.
Why this is correct
Roll-up summary fields require a master-detail relationship between the objects. The detail object must be on the child side of the relationship. This ensures the roll-up can traverse the relationship to aggregate values. Without this relationship, a roll-up summary cannot be created.
- ✗
Use a Process Builder to update the total weight field whenever a 'Package__c' record is created or updated.
Why it's wrong here
Process Builder can automate field updates, but it is not designed for real-time aggregation across many child records. It would require complex logic and may hit governor limits. Moreover, it is not the standard declarative solution for roll-up summaries, which are more efficient and reliable.
- ✓
Create a roll-up summary field on 'Shipment__c' that sums the 'Weight__c' field from 'Package__c'.
Why this is correct
A roll-up summary field on the master object can aggregate values from related detail records. Since 'Package__c' is likely a detail of 'Shipment__c', this field will sum the weights automatically. This is a standard declarative approach and meets the requirement without code.
About these practice questions
One of 202 original SF-Admin practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Salesforce exam blueprint
This SF-Admin practice question is part of Courseiva's free Salesforce certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SF-Admin exam.