exam questions

Exam Certified Sharing and Visibility Architect All Questions

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

Exam Certified Sharing and Visibility Architect topic 1 question 15 discussion

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

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 two.)

  • A. Use isSearchable keyword in Apex classes to assure record visibility.
  • B. Use With Sharing keyword in Apex classes to enforce sharing rules evaluation.
  • C. Use runAs in test class to enforce user permissions and field-level permissions.
  • D. Use isAccessible() method in Apex classes to check field accessibility.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

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
ksho
3 weeks, 6 days ago
Selected Answer: BD
B & D are correct. A is wrong because isSearchable is not a keyword in apex. C is wrong because runAs is only used in test classes, it has no impact on functional code execution. B is correct because it addresses record visibility. without sharing ignores record shares and runs in system context. D is correct because isAccessible() can be used to check field accessibility and coding can be done around it to handle appropriately.
upvoted 1 times
...
BorisBoris
5 months, 3 weeks ago
Option B not given in exam. Therefore only one answer. D
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago