Question 151
Universal Containers has a strict security model enforced through object, field, and row-based security mechanisms. The Architect would like to ensure the security model is being thoroughly tested using Apex automated tests. Which three considerations should be made when using the runAs() method to design Apex until tests?
Question 152
The system administrator of Cosmic Enterprises has created a dummy user in Salesforce. The user owns more than 15,000 account records that were recently obtained from a third-party database. A sharing rule has been created to share records owned by this user with all the sales managers and a few other users of the company.
There are performance issues whenever there is a change in the role hierarchy. Which of the following actions should a Solution Architect recommend to improve performance?Choose 3 answers.
There are performance issues whenever there is a change in the role hierarchy. Which of the following actions should a Solution Architect recommend to improve performance?Choose 3 answers.
Question 153
A developer has created the custom controller below for a Visualforce page. Which of the following is the correct method of using a static query with a bind variable to prevent a SOQL injection attack?Choose 1 answer. public class CustomContactController { public String name { get { return name;} set { name = value;}
} public PageReference query() { String qryString = 'SELECT Id FROM Contact WHERE ' + '(IsDeleted = false and Name LIKE \'%\'' + name + '\'%\')'; queryResult = Database.query(qryString); return null; } }
} public PageReference query() { String qryString = 'SELECT Id FROM Contact WHERE ' + '(IsDeleted = false and Name LIKE \'%\'' + name + '\'%\')'; queryResult = Database.query(qryString); return null; } }
Question 154
Get Cloudy Consulting uses a strict security model. They enforce this model through object, field, and row- based security mechanisms. The Chief Technology Officer (CTO) at Get Cloudy Consulting wants to thoroughly test the security model, and an Architect decides to use Apex automated tests to fulfill the CTO's request.
What are three considerations for the Architect when using the runAs() method to design Apex unit tests?
(Choose three.)
What are three considerations for the Architect when using the runAs() method to design Apex unit tests?
(Choose three.)
Question 155
The Finance team at Universal Containers usually does not need access to Account and Contract records A .. given Opportunity access for a big deal to help with tax calculation. She can now also access Account and C..
Which two reasons could be causing this issue? Choose 2 answers
Which two reasons could be causing this issue? Choose 2 answers
