SHARING-AND-VISIBILITY-DESIGNER practice question 3 of 30
Universal Containers would like to create a custom team solution that can be used on a custom Loan object. The following requirements must be met…
Full set: 212 questionsThe requirements call for a dynamic sharing solution where access level (Read Only vs. Read/Edit) depends on a field on a related custom object. This cannot be achieved with declarative sharing rules. Apex managed sharing is required. A trigger on the Custom Team object (A) can create or update share records in the Loan object's share table (LoanShare), granting the appropriate access level. Using Apex Sharing Reasons (C) is a best practice to label these programmatically created shares, making them easier to identify and manage, and to allow users to see why they have access.
B. Criteria-based sharing rules are static. They cannot dynamically grant different access levels (Read vs. Edit) based on a field value in a related record.
D. Owner-based sharing rules share records based on the record owner's role or group membership, not based on users listed in a related custom object.
1. Salesforce Developer Documentation, Apex Developer Guide, "Apex Managed Sharing". This guide explains how to use Apex to programmatically insert, update, and delete records in an object's share table to implement complex sharing logic.
2. Salesforce Developer Documentation, Apex Developer Guide, "Creating Apex Sharing Reasons". This section details how to define custom sharing reasons to track why a record was shared via Apex.
3. Salesforce Help, Salesforce Security Guide, "Sharing Rules". This document outlines the capabilities and limitations of declarative sharing rules, which do not support the dynamic, multi-level access required here.
Keep practicing
Take the free SHARING-AND-VISIBILITY-DESIGNER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other SHARING-AND-VISIBILITY-DESIGNER practice questions
- Question 1Universal Containers is a fast-growing company that sells containers globally. It has tho…
- Question 2Universal Containers uses 75,000 distributors that have close to 1 million total users. D…
- Question 4Universal Containers has a private sharing model on Accounts. Apex Managed Sharing is req…
- Question 5Universal Containers keeps product brochures in Salesforce as files. Sarah shares a publi…
- Question 6What is the best practice for testing sharing and visibility changes?
- Question 7Besides their own team accounts, sales managers at Universal Containers need to have READ…
