function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dragon123dragon123 

need right answer

1.  An organization has two custom objects to track job positions and salaries for those positions. Everyone in the organization should be able to view the positions, however, only select users can view the salary records. What steps should a developer take to ensure the requirement is fulfilled?
 
A.  Create a lookup relationship between positions and salaries; define public access on position and private access on salary
B.  Create a Master-Detail relationship between positions and salaries; define public access on position and private access on salary
C.  Create a Master-Detail relationship between positions and salaries; define private access on position and create sharing rules on salary
D.  Create a lookup relationship between positions and salaries; define public access on position and public access on salary; create sharing rules on salary to restrict visibility
Best Answer chosen by Admin (Salesforce Developers) 
Kalpana ReddyKalpana Reddy

Answer should be A, not D.

It should be Lookup relationship between position and salary records since they are independent.

so the B, C are eliminated. D is not right since sharing only 'adds' the permissions not to 'restrict' 

permissions.

 

Thanks,

Kalpana

All Answers

Yoganand GadekarYoganand Gadekar

D is the Correct one.

PrasadVRPrasadVR
Hi Yoganand ,

Could you please explain how D is Correct answer ? why we need to create sharing rule on salary after making it as public?
Kalpana ReddyKalpana Reddy

Answer should be A, not D.

It should be Lookup relationship between position and salary records since they are independent.

so the B, C are eliminated. D is not right since sharing only 'adds' the permissions not to 'restrict' 

permissions.

 

Thanks,

Kalpana

This was selected as the best answer