Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam CRT-450 Topic 7 Question 48 Discussion

Actual exam question for Salesforce's CRT-450 exam
Question #: 48
Topic #: 7
[All CRT-450 Questions]

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 database.

Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits'*

Choose 2 answers

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Ryan
4 days ago
I believe using partial DML statements to ensure only valid data is committed is also important to avoid exceeding governor limits.
upvoted 0 times
...
Mattie
8 days ago
I agree with Cherelle. We should also use the System.limit class to monitor the current CPU governor limit consumption.
upvoted 0 times
...
Cherelle
12 days ago
I think we should use the @ReadOnly annotation to bypass the number of rows returned by a SOQL.
upvoted 0 times
...

Save Cancel