ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 60 - Certified Sharing and Visibility Architect discussion

Report
Export

Universal Container has developed a custom Visualforce page that will accept user input and must prefer returning the results to the users.

Which two techniques should be used to ensure the users cannot perform a SOQL injection attack?

A.
Escape double quotes in the user input.
Answers
A.
Escape double quotes in the user input.
B.
Use bind variable in the SOQL query.
Answers
B.
Use bind variable in the SOQL query.
C.
Use the escapesinglequotes() method to sanitize user input.
Answers
C.
Use the escapesinglequotes() method to sanitize user input.
D.
Use the with Sharing keyword on the controller.
Answers
D.
Use the with Sharing keyword on the controller.
Suggested answer: B, C
asked 23/09/2024
ALEXANDRE NGUYEN
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first