A developer has to Identify 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 esure transaction control and avoid exceeding governor limits? Choose 2 answers
Suggested Answer: A, B
Get Premium DEX-450 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
WY
Wynell
12 months ago
Wait, can you really bypass row limits with @ReadOnly? That’s surprising!
AR
Arlette
12 months ago
Partial DML statements sound interesting, but do they really help?
LO
Long
12 months ago
@ReadOnly annotation? Not sure that’s the right approach.
RE
Rene
1 year ago
I think monitoring with System.Limit is a must too.
SH
Shenika
1 year ago
Definitely need to use Database.Savepoint for integrity!
IS
Isabelle
1 year ago
Partial DML statements sound familiar, but I can't recall if they really help with governor limits or just data integrity.
MA
Marsha
1 year ago
I’m a bit confused about the @ReadOnly annotation. I thought it was more about performance rather than limiting rows returned.
TE
Terrilyn
1 year ago
I think we practiced a question about monitoring governor limits with System.Limit, which seems relevant for this scenario.
SH
Sherita
1 year ago
I remember discussing the importance of using Database.Savepoint for transaction control, but I'm not sure if it's the best choice here.
CH
Cheryll
1 year ago
This question seems pretty straightforward. I'll carefully read through the options and try to eliminate the ones that are clearly false.
PA
Pamella
1 year ago
Option D looks good to me. Checking the recommended firmware levels in the HP SAN Design Reference Guide is probably the best way to ensure everything is compatible.
FA
Farrah
1 year ago
I remember practicing with questions about CPM, and I feel pretty confident it's true that it's about paying for a million views, like in this question.