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

Câu 38: Certified Platform Developer

A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Within the class, the developer identifies the following method as a security threat: What are two ways the developer can update the method to prevent a SOQL injection attack? (Choose two.)

Nội dung câu hỏi

A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Within the class, the developer identifies the following method as a security threat: What are two ways the developer can update the method to prevent a SOQL injection attack? (Choose two.)

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. Use variable binding and replace the dynamic query with a static SOQL — đáp án hiện tại
  2. B. Use the escapeSingleQuotes method to sanitize the parameter before its use — đáp án hiện tại
  3. C. Use the @ReadOnly annotation and the with sharing keyword on the class
  4. D. Use a regular expression expression on the parameter to remove special characters

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ề