Salesforce Certified Platform App Builder — Question 258
Universal Containers uses a custom object called Candidates to track information about people who are being recruited for jobs within the company. Employees should be able to create a Candidate record; however, only HR users should be able to view, edit, and report on the Salary field.
What action should be recommended for controlling who can view the Salary field?
Answer options
- A. Create and assign separate Candidate page layouts for general employee users and HR users.
- B. Restrict access to the "Salary" field for general employee users using field-level security.
- C. Create and assign separate Candidate record types for general employee users and HR users.
- D. Restrict access to the "Salary" field for general employee users using custom sharing settings.
Correct answer: B
Explanation
The correct answer is B, as field-level security allows specific control over who can see and edit individual fields, ensuring that only HR users can access the Salary field. Option A is incorrect because page layouts do not restrict field access but only change the layout. Options C and D do not directly control field visibility in the same way field-level security does, making them less appropriate for this requirement.