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

Câu 80: Salesforce Certified Platform Developer I

A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?

Nội dung câu hỏi

A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?

Minh họa câu hỏi

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. Refactor the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
  2. B. Use the System.Limits.getLimitQueries() method to ensure the number of queries is less than 100.
  3. C. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds. — đáp án hiện tại
  4. D. Use the System.Limits.getQueries() method to ensure the number of queries is less than 100.

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ề