Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 54 Topic 6 Discussion

Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 54 Topic 6 Discussion

PDII Exam Topic 6 Question 54 Discussion:
Question #: 54
Topic #: 6

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?


A.

use System. profiles=() to test as a sales rep and a community user.


B.

use System. profiles() to test as an administrator and a community user.


C.

use System. profiles1h=() to test as a sales rep and a community user.


D.

use System. runsAs () to test as an administrator and a community user.


Get Premium PDII 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.