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