Salesforce Certified Platform App Builder — Question 47
Universal Containers uses a custom object called Reviews to capture information generated by interviewers during the candidate process. The Review records are visible to any user that has access to the related custom Candidate record. The VP of Human Resources wants the comment field on the Review to be private to anyone outside of the HR department.
How should the app builder meet this requirement?
Answer options
- A. Create a page layout with the field for HR users and another page layout without the field for all other users
- B. Create an Apex sharing rule to share the field with users that have ג€HRג€ in their role
- C. Create a sharing rule to share the field with the VP of HR with Role and Subordinates
- D. Create a page layout with the field and use field-level security to hide the field from all other users
Correct answer: D
Explanation
The correct answer is D because using field-level security allows you to control who can see the comment field, ensuring it remains private for HR users only. Option A does not effectively restrict access at the field level, while options B and C focus on sharing rules, which do not apply to individual field visibility.