Question

Difficulty: EasyStandard and Custom Object Management

A System Administrator is managing a custom object named Project_Task__c that has a Master-Detail relationship with a parent custom object named Project__c. What happens to the associated child Project_Task__c records when a parent Project__c record is deleted?

  1. The associated Project_Task__c records are automatically deleted and moved to the Recycle Bin.Answer
  2. B
    The associated Project_Task__c records remain active and their Master-Detail relationship field is cleared.
  3. C
    The deletion of the parent Project__c record is blocked until all associated Project_Task__c records are manually deleted.
  4. D
    The associated Project_Task__c records are automatically archived and converted into standard Task activity records.

Answer

The associated child records are automatically deleted and moved to the Recycle Bin along with the master record.
In Salesforce, Master-Detail relationships strictly enforce cascade deletion. When a parent master record is deleted, all of its associated child detail records are automatically deleted and moved to the Recycle Bin.

Step-by-Step Solution

1
Identify the relationship type between the parent object and the child object.
The objects are linked via a Master-Detail relationship.
Master-Detail relationships enforce tight coupling between master and detail records.
2
Evaluate the deletion behavior enforced by Salesforce for Master-Detail relationships.
Deleting a master record automatically triggers a cascading deletion of all related child records.
Child records in a Master-Detail relationship cannot exist independently without their master record.

Key Concept

Master-Detail Relationship Cascade Deletion
Rate this question