Question

Difficulty: MediumObject Relationships (Lookup, Master-Detail, Many-to-Many)

An administrator at a renewable logistics firm is designing a custom object named Vehicle_Maintenance__c to track service logs for fleet vehicles managed on the standard Asset object. The business requires that deleting an Asset record automatically removes all of its associated Vehicle_Maintenance__c logs. Additionally, management must be able to calculate total maintenance costs directly on the parent Asset record using a native Roll-Up Summary field. Which relationship field type should the administrator create on the Vehicle_Maintenance__c object to fulfill these requirements?

  1. A Master-Detail relationship field referencing the Asset objectAnswer
  2. B
    A Lookup relationship field referencing the Asset object
  3. C
    A Lookup relationship field with cascade delete enabled referencing the Asset object
  4. D
    A Hierarchical relationship field referencing the Asset object

Answer

A Master-Detail relationship field referencing the Asset object is required to support both cascade deletion and Roll-Up Summary fields on the parent object.
A Master-Detail relationship field created on the child object inherently satisfies both core business requirements: it enforces tight life-cycle binding (cascading record deletion from parent to child) and enables standard Roll-Up Summary fields on the parent object to aggregate numeric data from child records.

Step-by-Step Solution

1
Analyze the deletion requirement
Deleting a parent record must automatically delete associated child records.
This behavior is native to Master-Detail relationships where detail records inherit life-cycle management from the master record.
2
Analyze the reporting and aggregation requirement
The parent object requires a native Roll-Up Summary field to aggregate costs from child records.
Standard Roll-Up Summary fields are strictly supported on the master side of a Master-Detail relationship and cannot be created on Lookup relationships.
3
Select the appropriate relationship type
Create a Master-Detail relationship field on the child object pointing to the parent object.
Only a Master-Detail relationship satisfies both requirements simultaneously.

Key Concept

Master-Detail vs. Lookup Relationship Capabilities
Rate this question