New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Salesforce Certified Platform Developer 1 Exam CRT-450 Question # 25 Topic 3 Discussion

Salesforce Certified Platform Developer 1 Exam CRT-450 Question # 25 Topic 3 Discussion

CRT-450 Exam Topic 3 Question 25 Discussion:
Question #: 25
Topic #: 3

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


A.

Use the @ReadOnly annotation to bypass the number of rows returned by a SOQL.


B.

Use partial DML statements to ensure only valid data is committed.


C.

Use the System.limit class to monitor the current CPU governor limit consumption.


D.

Use the Database.Savepoint method to enforce database integrity.


Get Premium CRT-450 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.