Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam DEX-450 Topic 7 Question 66 Discussion

Actual exam question for Salesforce's DEX-450 exam
Question #: 66
Topic #: 7
[All DEX-450 Questions]

Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with

Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see

Accounts they do not own.

What should the developer use to enforce sharing permissions for the currently logged in user while using the custom search tool?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Geraldine
8 days ago
Option C sounds like the way to go. Using the userInfo class to filter the SOQL queries ensures that only the records the user has access to are returned. Keeps things simple and secure.
upvoted 0 times
...
Yvonne
18 days ago
I'm not sure, but I think using the userInfo Apex class to filter SOQL queries could also work to ensure the user only sees their own accounts.
upvoted 0 times
...
Cordelia
21 days ago
I agree with Chandra. Using with sharing will enforce sharing permissions for the currently logged in user.
upvoted 0 times
...
Chandra
26 days ago
I think the developer should use the with sharing keyword on the class declaration.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77