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

A developer has to identify a method in en 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 SOQL 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
A . Use the @ReadOnly annotation to bypass the number of rows returned by a SOQ
C . Use Partial DHL statements to ensure only valid data is committed.
D . Use the Database.Savepoint method to enforce database Integrity.
E . Use the System.Limit class to monitor the current CPU governor limit consumption.

Answer: C,D

Latest PDI Dumps Valid Version with 191 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments