nerdexam
Salesforce

PDI · Question #210

In the following example, which sharing context will myMethod execute when it is invoked?

Sign in or unlock PDI to reveal the answer and full explanation for question #210. The question stem and answer options stay visible for context.

Submitted by sofia.br· Apr 18, 2026Logic and Process Automation

Question

In the following example, which sharing context will myMethod execute when it is invoked?

Options

  • ASharing rules will not be enforced for the running user.
  • BSharing rules will be Inherited from the calling context.
  • CSharing rules will be enforced by the instantiating class.
  • DSharing rules will be enforced for the running user.

Unlock PDI to see the answer

You've previewed enough free PDI questions. Unlock PDI for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Apex Sharing#Inherited Sharing#Apex Security#with sharing/without sharing
Full PDI Practice