exam questions

Exam Certified Sharing and Visibility Designer All Questions

View all questions & answers for the Certified Sharing and Visibility Designer exam

Exam Certified Sharing and Visibility Designer topic 1 question 86 discussion

Actual exam question from Salesforce's Certified Sharing and Visibility Designer
Question #: 86
Topic #: 1
[All Certified Sharing and Visibility Designer Questions]

Universal Containers (UC) has a team that analyzes customer orders looking for fraud. This team needs access to Invoice records (Custom object, Private OWD). UC has complex rules to control users’ access. The Salesforce Architect recommended using Apex managed sharing to meet these requirements.
Which two recommendations should a Salesforce Developer consider when implementing the changes? (Choose two.)

  • A. Use runAs system method to test different users accessing these records.
  • B. Use “Without Sharing” keyword to make sure record visibility will be considered.
  • C. Use “With Sharing” keyword to make sure record visibility will always be considered.
  • D. Use “With Sharing” keyword to enforce field-level security.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
BorisBoris
1 year, 11 months ago
A,C The "With Sharing" keyword in Apex ensures that the record-level sharing rules and permissions are enforced while performing database operations. It respects the organization's security settings and permissions, which is crucial when working with private OWD and complex sharing rules. By using "With Sharing," the developer can guarantee that the code adheres to the defined sharing rules, and users can only access the records they have the appropriate permissions for. and, The runAs system method allows the developer to test the code under the context of a specific user, which is essential for testing the different user scenarios and ensuring that the sharing rules are working correctly. By using runAs, the developer can simulate different user profiles and permissions to verify the record visibility and access controls. Not D because, "With Sharing" keyword in Apex enforces record-level security, not field-level security. Field-level security is handled separately by Salesforce and is not related to the "With Sharing" keyword in Apex.
upvoted 2 times
...
saibalg
2 years, 4 months ago
Selected Answer: AC
Enforcing sharing rules by using the with sharing keyword doesn't enforce the user's permissions and field-level security. Apex always has access to all fields and objects in an organization, ensuring that code won't fail to run because of fields or objects that are hidden from a user.
upvoted 3 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 ...