Which two strategies should a developer use to avoid hitting governor limits when developing ina multi-tenant environment?
A. Use variables within Apex classes to store large amounts of data B. Use collections to store all fields from a related object and not just minimally requiredfields C. Use methods from the \LIMITS\ class to monitor governor limits D. Use SOQL for loops to iterate data retrieved from queries that return a high number of rows
The correct answer to this question is C and D. To avoid hitting governor limits when developing in a multi-tenant environment, a developer should use methods from the LIMITS class to monitor the govermor limits in order to be aware of what those limits are at all times.
The developer should also use SOQL for loops to iterate date retreived from queries that return a high number of rows. SOQL is Salesforces object query language. When you use this, you can search your organization's data for specific information. You can use the SOQL in Apex statements, query string parameter in the query, Visualforce controllers and getter methods, and the Schema Explorer of the Force dot com IDE.