ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 211 - Certified Sharing and Visibility Architect discussion

Report
Export

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 Architects consider?

Choose 2 answers:

A.
Service reps will be able to access all UC contact records if they are controlled by parent.
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.
Answers
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.
Answers
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.
Answers
D.
Service reps will not be able to access all the UC Accounts records because Account OWD is private.
Suggested answer: D

Explanation:

How can an architect achieve this?

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_per

ms_enforcing.htm

Example: To check the field-level read permission of the contact's email field before querying

for this field:

if (Schema.sObjectType.Contact.fields.Email.isAccessible()) {

Contact c = [SELECT Email FROM Contact WHERE Id= :Id];

}

Answer for B -

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_key

words_sharing.htm

The ''with sharing'' keyword allows you to specify that the sharing rules for the current user are considered for the class. You have to explicitly set this keyword for the class because Apex code runs in system context. In system context, Apex code has access to all objects and fields--- object permissions, field-level security, sharing rules aren't applied for the current user. This strategy ensures that code doesn't fail to run because of hidden fields or objects for a user.

asked 23/09/2024
Arjen Vleugel
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first