CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

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.

  1. A. Use partial DML statements to ensure only valid data is committed. — đáp án hiện tại
  2. B. Use the System.Limit class to monitor the current CPU governor limit consumption.
  3. C. Use the Database.Savepoint method enforce database integrity. — đáp án hiện tại
  4. 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.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề