Salesforce Platform Developer I (legacy) — Question 229
How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?
Answer options
- A. Create a Sharing Rule comparing the custom object owner to the account owner.
- B. Create a validation rule on the custom object comparing the record owners on both records.
- C. Include the sharing related list on the custom object page layout.
- D. Ensure that the relationship between the objects is Master-Detail.
Correct answer: D
Explanation
The correct answer is D because a Master-Detail relationship automatically inherits sharing settings from the parent record, ensuring consistent access. The other options involve manual configurations that do not guarantee the same level of sharing access as a Master-Detail relationship provides.