nerdexam
Salesforce

PDII · Question #328

PDII Question #328: Real Exam Question with Answer & Explanation

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

Question

Universal Containers allows customers to log into a Salesforce Community and update their orders via a custom Visualforce page. Universal Containers' sales representatives can edit the orders on the same Visualforce page. What should a developer use in an Apex test class to test that record sharing is enforced on the Visualforce page?

Options

  • AUse System.runAs() to test as a sales rep and a community user.
  • BUse System.profileIs() to test as a sales rep and a community user.
  • CUse System.runAs() to test as an administrator and a community user.
  • DUse System.profileIs() to test as an administrator and a community user.

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII 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.

Full PDII Practice