Soru

Zorluk: ZorStandard and Custom Object Management

An administrator at a clinical research organization is designing a custom object named Subject_Visit__c to track patient evaluation sessions associated with a parent custom object named Clinical_Trial__c. The business requires that deleting a Clinical_Trial__c record automatically removes all associated Subject_Visit__c records, and that total completed visits must be displayed as an aggregate count on the Clinical_Trial__c record. Which two configuration considerations and object capabilities apply to this implementation? (Select 2)

  1. A Master-Detail relationship must be created on Subject_Visit__c pointing to Clinical_Trial__c to enable native Roll-Up Summary fields on the parent object.Cevap
  2. Standard system audit fields such as CreatedById, LastModifiedDate, and Name are automatically created when the Subject_Visit__c custom object is defined.Cevap
  3. C
    A Lookup relationship can be used to link Subject_Visit__c to Clinical_Trial__c while still supporting native Roll-Up Summary fields on Clinical_Trial__c.
  4. D
    Configuring a Lookup relationship with 'Clear the value of this field' will automatically cascade delete all child Subject_Visit__c records when the parent trial is deleted.

Cevap

The correct selections are that a Master-Detail relationship must be created on Subject_Visit__c pointing to Clinical_Trial__c to enable native Roll-Up Summary fields, and that standard audit fields (such as CreatedById, LastModifiedDate, and Name) are automatically created when defining a custom object.
Master-Detail relationships inherently support native Roll-Up Summary fields on the parent master object and automatically enforce cascading deletion of child records when the master record is deleted. Additionally, whenever a new custom object is created in Salesforce, standard system fields (such as Name, CreatedById, LastModifiedDate, and CreatedDate) are automatically provisioned by the platform.

Adım Adım Çözüm

1
Analyze the relationship and data aggregation requirements between Clinical_Trial__c and Subject_Visit__c.
Cascading deletion and native Roll-Up Summary field capabilities require a Master-Detail relationship rather than a Lookup relationship.
Lookup relationships do not natively support Roll-Up Summary fields on the parent object nor standard cascading record deletion.
2
Evaluate standard field creation behavior for new custom objects in Salesforce.
Creating any custom object automatically provisions standard system fields, including Name, CreatedById, CreatedDate, LastModifiedById, LastModifiedDate, and SystemModstamp.
Salesforce automatically establishes these system audit and identity fields to maintain record integrity and audit history.

Anahtar Kavram

Standard vs Custom Object Capabilities and Master-Detail Relationship Characteristics
Bu soruyu puanla