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

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.

Answer: B,C

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