Salesforce Certified Sharing and Visibility Designer — Question 29

DreamHouse Realty has the following requirements:
A Visualforce controller that needs to be written with “Without Sharing” at the top level.
Specific methods within the page need to enforce the user permissions for creating records and accessing certain fields.
An Architect needs to ensure this requirement is enforced.
Which two methods will be used to achieve this goal? (Choose two.)

Answer options

Correct answer: B, C

Explanation

The correct methods are B and C because Schema.DescribeSObjectResult provides metadata about the object, including field accessibility based on user permissions, and Schema.DescribeFieldResult gives information about individual fields, which also includes permission details. Options A and D do not provide the necessary access control checks for user permissions related to creating records and field access.