A developer has identified a method in an Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a DML statement to save the changes to the datadase. Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits? Choose 2 answers
A. Use partial DML statements to ensure only valid data is committed.
B. Use the System,Limit classto monitor the current CPU governor limit consumption.
C. Use the Database,Savepoint method to enforce database integrity.
D. Use the Reedonly annotation to bypass the number of rows returned by a SOQL.
What should a developer do to check the code coverage of a class after running all tests?
A. View the Code Coverage column in the list view on the Apex Classes page.
B. View the Class Test Percentage tab on the Apex Class fist view m Salesforce Setup.
C. View Use cede coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab.
D. Select and run the class on the Apex Test Execution page in the Developer Console.
A developer created a trigger on the Account object. While testing the trigger, the developer sees the error message 'Maximum trigger depth exceeded’, What could be the possible causes?
A. The developer does not have the correct user permission.
B. The trigger is getting executed multiple times.
C. The trigger is a a helper class.
D. The trigger does not have sufficient code coverage.
What should be used to create scratch orgs?
A. Developer Console
B. Salesforce CLI
C. Workbench
D. Sandbox refresh
Universal Containers has large number of custom applications that were built using a third- party javaScript framework and exposed using Visualforce pages. The Company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and most effective manner?
A. Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.
B. Rewrite all Visualforce pages asLightning components.
C. Set the attribute enableLightning to true in the definition.
D. Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application.
Page 17 out of 48 Pages |
Previous |