ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 274 - Certified Platform Developer II discussion

Report
Export

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.profllels() to test as an administrator and a community user,
Answers
A.
Use System.profllels() to test as an administrator and a community user,
B.
Use System.profilels() to test as a sales rep and a community user.
Answers
B.
Use System.profilels() to test as a sales rep and a community user.
C.
Use System.runAs() to test as a sales rep and a community user.
Answers
C.
Use System.runAs() to test as a sales rep and a community user.
D.
Use System.runAs() to test as an administrator and a community user.
Answers
D.
Use System.runAs() to test as an administrator and a community user.
Suggested answer: C
asked 23/09/2024
Farrah Colson
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first