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
9 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
...
Nell
12 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
14 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
18 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
20 days ago
I agree with you, Haley. Option A and Option C use binding variables which help prevent SOQL injection.
upvoted 0 times
...
Haley
21 days ago
I think Option A and Option C are safe from SOQL injection.
upvoted 0 times
...
Martina
22 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77