Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Exam PDI All Questions
Exam PDI All Questions

View all questions & answers for the PDI exam

Salesforce Developers PDI Question # 60 Topic 7 Discussion

PDI Exam Topic 7 Question 60 Discussion:
Question #: 60
Topic #: 7

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?


A.

Use the with sharing keyword on the class declaration.


B.

Use the without sharing keyword on the class declaration.


C.

Use the userInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.


D.

Use the schema describe calls to determine if the logged-in user has access to the Account object.


Get Premium PDI Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.