A Salesforce Administrator at an enterprise software firm needs to model a relationship between a custom Application__c object and a custom Security_Audit__c object. The business requires that deleting an Application__c record must automatically delete all associated Security_Audit__c records. Additionally, managers must be able to view the total count of completed Security_Audit__c records directly on the Application__c record page without using custom code. Which two configuration steps should the administrator take to fulfill these requirements? (Choose 2 answers)
- Create a Master-Detail relationship field on the Security_Audit__c object referencing the Application__c object.Answer
- BCreate a Lookup relationship field on the Security_Audit__c object and enable the 'Delete this record also' cascade deletion setting.
- Create a Roll-Up Summary field on the Application__c object using the COUNT function to aggregate related Security_Audit__c records.Answer
- DCreate a Roll-Up Summary field on the Security_Audit__c object to aggregate data from the parent Application__c record.
Answer
The administrator must create a Master-Detail relationship field on the Security_Audit__c object pointing to Application__c, and create a Roll-Up Summary field on the Application__c object to count related audit records.
To satisfy both business requirements—automatic deletion of child records upon master deletion and Declarative aggregate calculations—a Master-Detail relationship must be implemented. Creating the Master-Detail relationship field on the Security_Audit__c object establishes Application__c as the master, enabling cascading deletes. Creating a Roll-Up Summary field on Application__c allows the administrator to count related audit records without custom code.
Step-by-Step Solution
Key Concept
Master-Detail Relationships and Roll-Up Summary Fields