exam questions

Exam 1z0-148 All Questions

View all questions & answers for the 1z0-148 exam

Exam 1z0-148 topic 1 question 8 discussion

Actual exam question from Oracle's 1z0-148
Question #: 8
Topic #: 1
[All 1z0-148 Questions]

You are designing and developing a complex database application built using many dynamic SQL statements. Which option could expose your code to SQL injection attacks?

  • A. Using bind variables instead of directly concatenating parameters into dynamic SQL statements
  • B. Using automated tools to generate code
  • C. Not validating parameters which are concatenated into dynamic SQL statements
  • D. Validating parameters before concatenating them into dynamic SQL statements
  • E. Having excess database privileges
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
orakell
Highly Voted 5 years, 2 months ago
The question asks which option COULD expose code. The answer is C.
upvoted 10 times
...
pmeyer
Most Recent 1 year, 8 months ago
Selected Answer: C
The answer is C.
upvoted 1 times
...
chrishillinger
2 years, 5 months ago
Selected Answer: C
C of course, that's why directly concatenation variables is considered (very) bad practice
upvoted 2 times
...
CosminCof
4 years, 4 months ago
The answers are C and E. C->validation with DBMS_ASSERT E->SQL injection can be made by an user with a variety of privilleges
upvoted 2 times
...
peguynya
4 years, 6 months ago
The correct answer is C . A is not correct because the use of bind variables protect the Db form sql injection.
upvoted 2 times
...
peguynya
4 years, 6 months ago
the correct answer is C. A is not corrst because the using of bindings variables protect the Db from sql injection
upvoted 2 times
...
Swetank123
4 years, 9 months ago
bind variables protect against sql injection So, correct answer ic C.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago