Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam DEX-450 Topic 12 Question 88 Discussion

Actual exam question for Salesforce's DEX-450 exam
Question #: 88
Topic #: 12
[All DEX-450 Questions]

Assuming that name is a String obtained by an tag on a Visualforce page, which two SOQL queries performed are safe from SOQL injection? Choose 2 answers

A)

B)

C)

D)

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Terrilyn
13 days ago
I'm going with B and C. Can't be too careful with SOQL these days, especially when dealing with user input. Gotta keep those databases safe and sound, you know?
upvoted 0 times
Devorah
1 days ago
User 1: I think B and C are the safe queries.
upvoted 0 times
...
Vivan
2 days ago
I think B and C are the safest choices too. Can never be too careful with user input.
upvoted 0 times
...
...
Nell
16 days ago
Definitely B and C. Anything that uses string concatenation like A and D is just asking for trouble. Not today, SOQL injection!
upvoted 0 times
...
Leah
18 days ago
I think B and C are the safest options here. Using a SOQL query with a bind variable like that is the way to go to avoid injection attacks.
upvoted 0 times
...
Leatha
22 days ago
I'm not sure about Option B and Option D. They seem to directly concatenate the input which can lead to SOQL injection.
upvoted 0 times
...
Chantay
24 days ago
I agree with you, Haley. Option A and Option C use binding variables which help prevent SOQL injection.
upvoted 0 times
...
Haley
25 days ago
I think Option A and Option C are safe from SOQL injection.
upvoted 0 times
...
Martina
26 days ago
Can you explain why you think that?
upvoted 0 times
...
Katie
1 months ago
I disagree, I believe options B and D are the safe ones.
upvoted 0 times
...
Martina
1 months ago
I think options A and C are safe from SOQL injection.
upvoted 0 times
...

Save Cancel