Exam Sharing-and-Visibility-Designer Topic 3 Question 66 Discussion
Actual exam question for Salesforce's Sharing-and-Visibility-Designer exam
Question #: 66
Topic #: 3
Question #: 66
Topic #: 3
Which two are potential vulnerabilities in the following code snippet? <apex:page> <apex:form> <apex:outputText value="Enter Name"/> <apex:inputText value="{!name}" /> <apex:commandButton value="Query" action="{!query}" /> </apex:form> </apex:page> public class SOQLController { public String name { get { return name;} set {name=value;} } public PageReference query() { String qryString='SELECT Id FROM Contact WHERE '+ '(IsDeleted = false and Name like \'%' + name + '%\'}'; queryResult = Database.query(qryString); retunr null; } } Choose 2 answers
Suggested Answer: B,D Vote an answer
by Giles at Nov 20, 2026, 07:40 PM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).