Salesforce Certified Platform App Builder — Question 1
A junction object has two Master-Detail relationships, a primary and a secondary master object.
What happens to a junction object record when both associated master records are deleted?
Answer options
- A. The junction object record is permanently deleted and can't be restored.
- B. The delete operation cannot be performed on both master records.
- C. The delete operation is not allowed with Roll-up summary fields defined.
- D. The junction object records is deleted and placed in the recycle bin.
Correct answer: A
Explanation
When both master records in a master-detail relationship are deleted, the junction object record is also permanently deleted and cannot be recovered. This is due to the nature of master-detail relationships where the child record's lifecycle is tightly coupled with its parent records. The other options are incorrect as they either misrepresent the behavior of deletions in master-detail relationships or pertain to unrelated scenarios.