Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 95 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 95
Topic #: 1
[All Certified Platform Developer II Questions]

A developer has created a Team Member sObject that has a Master-Detail relationship to a Project sObject and a Lookup relationship to the User sObject. The developer must ensure that a User listed on a Team Member record has Read-Write access to the parent Project record.
How can the developer accomplish this if the Project sObject has a Private sharing model and thousands of Project records?

  • A. Create a Controller that uses the Without Sharing keyword
  • B. Create a Criteria-Based Sharing Rule on the Project sObject
  • C. Create a Team Member Trigger that inserts Project_Share records
  • D. Create a Project Sharing Rule that shares to the Team Member Group
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
peixotmarc
1 year, 2 months ago
Selected Answer: C
If you want to share with a group, you should already have the group created. As you do not know, and any user could be added, a apex sharing should be created
upvoted 1 times
...
AppleDash
1 year, 5 months ago
This also explains a bit more: https://developer.salesforce.com/blogs/developer-relations/2017/04/salesforce-data-security-model-explained-visually
upvoted 1 times
...
lorenac2
1 year, 10 months ago
Selected Answer: C
Personally, it's my understanding that apex sharing is used when a record needs to be shared with a specific user automatically. It can be shared with a group as well but sharing rules should be considered first in that case. Reference: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_bulk_sharing_creating_with_apex.htm
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...