Câu 22: Certified Platform Developer
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 practi…
Nội dung câu hỏi
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 two.)
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Use partial DML statements to ensure only valid data is committed. — đáp án hiện tại
- B. Use the System.Limit class to monitor the current CPU governor limit consumption.
- C. Use the Database.Savepoint method enforce database integrity. — đáp án hiện tại
- D. Use the @ReadOnly annotation to bypass the number of rows returned by a SOQL.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.