Sharing and Visibility Wi22 Flashcards
After testing and deploying a new trigger that creates a related order when an opportunity is closed, the Architect begins receiving complaints of permission error messages appearing when closing an opportunity.
How did this error occur?
A. Trigger is using IsCreateable() Apex method and the user doesn’t have Create permission on the Order object.
B. The trigger handlers class does not use any sharing keywords and the user does not have access to the orders related to the opportunity.
C. The trigger should be using RunAs() when creating the order.
D. The trigger handler class is using “with sharing” and the user does not have access to the orders related to the opportunity.
D. The trigger handler class is using “with sharing” and the user does not have access to the orders related to the opportunity.
Susan posts a file to the Chatter feed for a record of an object which OWD is private.
Which two statements accurately describe who can view the file by default?
Choose 2 answers.
A. Susan and users with the View All Data permission.
B. Susan and users with access to the record.
C. Susan and users with a shared chatter post link to the file.
D. Susan only.
A. Susan and users with the View All Data permission.
B. Susan and users with access to the record.
Universal Containers (UC) has 600 sales reps. UC has a rollout plan to deploy Salesforce in 3 weeks. At the end of the second week, they received a “User Role Limit Exceeded” error. After investigation, they discovered that during the user provisioning process, a new role was generated for every new user.
Which two recommendations could solve this problem?
Choose 2 answers.
A. Review the user provisioning process to not automatically create a user role for any new user.
B. Remove role hierarchy from salesforce org and control the record access using apex managed sharing.
C. Contact Salesforce support and request to increase the number of user roles allowed.
D. Create an Apex class to replace the User Roles by generic one as soon as they are created.
A. Review the user provisioning process to not automatically create a user role for any new user.
C. Contact Salesforce support and request to increase the number of user roles allowed.
The architect at Universal Containers is trying to ensure that security vulnerabilities are not present within the Salesforce organization. What two tests should the architect verify?
Choose 2 answers
A. Test for SOQL Injection.
B. Test Cross-Site Scripting on Apex queries.
C. Test Cross-Site Scripting on custom pages.
D. Test for invalid user access attempts.
A. Test for SOQL Injection.
C. Test Cross-Site Scripting on custom pages.
Universal Containers has a large network of partners, who each have seasonal workers that need short-term access to the community.
How might the Architect design the solution to federate user setup to the partners?
Choose 2 answers
A. Allow external users to self register.
B. Create a permission set giving Read/Write to the user object to Partner manager.
C. Grant the Modify users permission to the partner managers.
D. Assign delegated external administrators at each partner.
A. Allow external users to self register.
D. Assign delegated external administrators at each partner.
Sales Operations at Universal Containers (UC) has created Public Report and Dashboard folders for sales managers that report to the VP of Sales. Sales Operations currently spends a few hours each month updating users that should have access to edit items in these folders.
In which two ways can UC grant access to sales managers to automate access to these Reports and Dashboards folders?
Choose 2 answers
A. Share the folders lowest roles in the Role Hierarchy, superiors will get access automatically.
B. Share the folders with the “VP of Sales” Role and Subordinates.
C. Share the folders with the “Sales Managers” Queue.
D. Share the folders with a “Sales Managers” Public Group.
B. Share the folders with the “VP of Sales” Role and Subordinates.
D. Share the folders with a “Sales Managers” Public Group.
Universal Containers is planning to pilot a new application to a small set of Sales Reps.
What is the optimal way to grant only those Sales Reps access to the new functionality, while hiding the legacy functionality?
A. Create a permission set to grant access to the new functionality and hide the old functionality.
B. Clone the Sales Rep profile, adjust settings, and assign the pilot users the new profile.
C. Revoke access to legacy functions in the Sales Rep profile and create a permission set for the new functionality.
D. Create new user records for the pilot user that they will use for the pilot.
B. Clone the Sales Rep profile, adjust settings, and assign the pilot users the new profile.
Universal Containers (UC) stores basic employee information in a custom Employee object (OWD - Public Read Only). There are a few sensitive fields that need restricted access (salary, grade level, last performance rating).
Other than field level security, what other options are available to make these fields accessible to the Human Resource team?
A. Create a new custom object controlled by parent and a Master-Detail relationship to Employee to store new restricted information.
B. Change OWD of Employee custom object to private and a Lookup self-relationship to store only new restricted information.
C. Create a new custom object with private OWD and Lookup relationship to Employee to store new restricted information.
D. There are no other options besides using field level security.
C. Create a new custom object with private OWD and Lookup relationship to Employee to store new restricted information.
Sales managers at Universal Containers (UC) have requested viewing customer invoices in Salesforce. Invoice data is mastered in the ERP system. The architect at UC decided to surface the customer invoices in salesforce using external objects and did the following:
- Configured an external object called Invoice.
- Created a lookup relationship between the account and the invoice.
How can the architect grant the sales managers access to the customer invoices data?
A. By creating sharing rules to share the invoices records with users in sales managers roles.
B. By creating manual sharing to share invoices with relevant sales managers.
C. By controlling the invoices object permissions on the sales manager’s profile.
D. By creating a sharing set to share invoices with users in sales manager role.
C. By controlling the invoices object permissions on the sales manager’s profile.
Sales managers want their team members to help each other close Opportunities. The Opportunity and Account organization-wide defaults are private. To grant Opportunity access to sales reps on the same team, ownership-based sharing rules were created for each team.
What is the side effect of this approach?
A. All sales reps will have Read access to Accounts for all Opportunities
B. Sales Reps on the same team will have Edit access to the Accounts for Opportunities owned by their team members.
C. All sales reps will have Read access to all Accounts.
D. Sales reps on the same team will have Read access to the Accounts for Opportunities owned by their team members.
D. Sales reps on the same team will have Read access to the Accounts for Opportunities owned by their team members.
Universal Containers (UC) has a custom object to track the internal net promoter score (NPS) for all its employees.
How can UC ensure that NPS records cannot be accessed by an individual employee’s manager?
A. Use Apex sharing to remove NPS object share records for Manager Profiles
B. Remove Create, Read, Edit and Delete from Manager Profiles and Permission sets.
C. Set organization-wide default to Private and uncheck the Access Using Hierarchies option for the NPS object
D. Create a criteria-based sharing rule to remove access to Manager role and above in the Role Hierarchy
C. Set organization-wide default to Private and uncheck the Access Using Hierarchies option for the NPS object
Sales Operations at Universal Containers (UC) wants to create list views to filter opportunities for certain geographies. In which two ways can UC hide list views that are not relevant to an individual user since there will be over 50 list views?
Choose 2 answers
A. Share the list views with the appropriate queue.
B. Share the list views with the appropriate role in the role hierarchy.
C. Share the list views with the appropriate individual users.
D. Share the list views with the appropriate public group.
B. Share the list views with the appropriate role in the role hierarchy.
D. Share the list views with the appropriate public group.
Universal Containers uses Person Accounts to represent retail customers and business accounts to represent commercial customers. The Retail Sales team should not have access to commercial customers but have access to ALL retail customers.
With organization-wide default on Account set to Private, how might the architect meet these
requirements?
A. Update Retail Sales profile to grant access to Person Account record type.
B. Create an owner-based sharing rule on AccountContactRelation to grant access to all account contact roles records owned by retail sales reps.
C. Create a criteria-based sharing rule giving Retail Sales role access to Accounts of type Person Account.
D. Give View All access for Accounts to the Retail Sales profile.
C. Create a criteria-based sharing rule giving Retail Sales role access to Accounts of type Person Account.
Universal Containers (UC) operates worldwide with offices in more than 100 regions in 10 different countries and has established a complex role hierarchy to control data visibility. In the new fiscal year, UC is planning to reorganize the roles and reassign accounts owners.
Which two points should an architect consider in this situation?
Choose 2 answers
A. Replacing Account records ownership massively can cause data skew.
B. Using a temporary parking lot account to improve performance.
C. Changing complex role hierarchy can cause a high level of sharing recalculation.
D. Restricting the organization-sharing configurations to private.
A. Replacing Account records ownership massively can cause data skew.
C. Changing complex role hierarchy can cause a high level of sharing recalculation.
Universal Containers (UC) has implemented Customer Community with customer community plus licenses for their distributors. Some distributors requested granting specific community users (agents) to view cases submitted by other agents of the same distributor.
Which feature only supports these requirements?
A. Partner community admin
B. Partner super user
C. Permission set to grant community admin permission.
D. Delegate external user
B. Partner super user
Super users can access data owned by other partner users who have the same role or a role below them. Super user access applies to cases, leads, custom objects, and opportunities only.
Universal Containers (UC) wants all full-time internal employees to be able to view all leads. A subset of Contractors and temporary employees should also be able to see leads.
Which organization-wide default (OWD) approach should an architect recommend that will help UC implement these requirements?
A. Implement a Public Read Only OWD on Lead.
B. Implement a Public Read/Write/Transfer OWD on Lead.
C. Implement a Private OWD on Lead.
D. Implement a Public Read/Write OWD on Lead.
C. Implement a Private OWD on Lead.
Universal Containers (UC) uses a custom lightning component with an Apex class to display shipment information (custom object, private OWD). UC sales managers are complaining about two important points:
- Shipment records that belong to their teams can be seen by other users.
- Shipment amount should be visible only by managers, but sales reps are able to view it.
Which two features did the development team miss that is causing the problems?
Choose 2 answers.
A. Use runAs in test class to enforce user permissions and field-level permissions.
B. Use With Sharing keyword in Apex classes to enforce sharing rules evaluation.
C. Use isSharable keyword in Apex classes to assure record visibility.
D. Use isAccessible() method in Apex classes to check field accessibility.
B. Use With Sharing keyword in Apex classes to enforce sharing rules evaluation.
D. Use isAccessible() method in Apex classes to check field accessibility.
By default, how many roles are created when the first external user is created on a partner account?
A. 0
B. 3
C. 2
D. 1
D. 1
Universal Containers (UC) service reps are assigned to a profile which has “View All” in Case object (Private OWD).
To make sure service reps have access to all relevant information to attend to customer requests, which two details should a salesforce Architect consider?
Choose 2 answers:
A. Service reps will be able to access all UC contact records if they are controlled by parent.
B. Service reps will NOT be able to access all UC contact records if they are controlled by parent.
C. Service reps will be able to access all the UC Account records due to Implicit Sharing.
D. Service reps will NOT be able to access all the UC Accounts records because Account OWD is private.
B. Service reps will NOT be able to access all UC contact records if they are controlled by parent.
C. Service reps will be able to access all the UC Account records due to Implicit Sharing.
B&D? Dificil de comprobar
- Implicit sharing not used when sharing on the child is controlled by its parent.*
- If you have access to an account’s child record, you have implicit read only access to the account.*
Universal Containers has developed a custom Visualforce page that will accept user input and must perform a dynamic SOQL query returning the results to the users.
Which two techniques should be used to ensure the users cannot perform a SOQL injection attack?
Choose 2 answers
A. Use the With Sharing keyword on the controller.
B. Use bind variables in the SOQL query.
C. Use the escapesinglequotes() method to sanitize user input.
D. Escape double quotes in the user input.
B. Use bind variables in the SOQL query.
C. Use the esacapesinglequotes() method to sanitize user input.
A sales rep at Universal Containers (UC) is a member of the Default Opportunity team for an account manager. The account manager created an opportunity and the sales rep is added to that Opportunity team.
The sales rep is complaining about no longer having access to an opportunity record that the sales rep was helping with.
What is the cause of this problem?
A. The Account team was changed and consequently the Opportunity team members were replaced by the Account team members.
B. The Sales rep was manually removed from the Opportunity team.
C. The Sales rep was removed from the Opportunity team in another opportunity record of the same account.
D. The opportunity owner can enable/disable if the “Default Opportunity team” is able to access the record.
B. The Sales rep was manually removed from the Opportunity team.
To grant Universal Containers sales managers access to shipment records properly, it was necessary to leverage Apex managed sharing. The IT team is worried about improper access to records.
Which two features and best practices should a Salesforce architect recommend to mitigate this risk?
Choose 2 answers
A. Use runAs system method in test classes to test different users and profiles.
B. Use With Sharing keyword in Apex classes to assure record visibility will be followed.
C. Use isShareable keyword in Apex classes to assure record visibility will be followed.
D. Use isAccessible keyword in Apex classes to assure record visibility will be followed.
A. Use runAs system method in test classes to test different users and profiles.
B. Use With Sharing keyword in Apex classes to assure record visibility will be followed.
Universal Containers (UC) has implemented Customer Community with customer community licenses for their customers. UC requested that any record owned by its customers should be accessible by UC users in the customer support role.
How can an Architect configure the system to support the requirements?
A. Share Group
B. Apex Sharing
C. Sharing Set
D. Sharing Rule
A. Share Group
Universal Containers (UC) is implementing Sales Cloud. During the last quarter of the financial year, Sales agents help each other close deals. They requested a solution in Salesforce to allow them to specify an assistant agent on the opportunity record. When the sales agent changes the assistant field, the system should automatically remove access from the previous assistant and grant access to the new assistant.
What is the optimum solution to meet the requirements?
A. Use apex sharing to share and unshare opportunities with the assistant agent.
B. Use sharing rule to share opportunities with the assistant agent.
C. Use opportunity team and create an assistant field, use apex to share opportunities with the assistant agent.
D. Use share group to share opportunities with the assistant agent.
A. Use apex sharing to share and unshare opportunities with the assistant agent.