An administrator at a commercial equipment leasing company needs to configure a relationship between the standard Asset object and a custom object named Maintenance_Work_Order__c. The business requires that every maintenance work order record must always be linked to an asset, deleting an Asset record automatically deletes all associated work orders, and total maintenance costs must be summarized directly on the Asset record. Which two configuration choices must the administrator implement to meet these requirements? (Select 2)
- Define a Master-Detail relationship field on Maintenance_Work_Order__c pointing to the Asset object.Answer
- Create a Roll-Up Summary field on the Asset object to aggregate cost values from Maintenance_Work_Order__c records.Answer
- CDefine a Lookup relationship field on Maintenance_Work_Order__c and create a Roll-Up Summary field on the Asset object.
- DDefine a Lookup relationship field on Maintenance_Work_Order__c and enable standard cascade deletion in object settings.
Answer
The administrator must define a Master-Detail relationship on Maintenance_Work_Order__c pointing to Asset and create a Roll-Up Summary field on the Asset object.
Creating a Master-Detail relationship on the child custom object ensures mandatory parent association, enforces automatic cascade deletion when the master Asset is deleted, and enables the creation of a Roll-Up Summary field on the master Asset object to calculate aggregate maintenance costs.
Step-by-Step Solution
Key Concept
Master-Detail Relationship Capabilities and Roll-Up Summary Fields