exam questions

Exam CS0-002 All Questions

View all questions & answers for the CS0-002 exam

Exam CS0-002 topic 1 question 218 discussion

Actual exam question from CompTIA's CS0-002
Question #: 218
Topic #: 1
[All CS0-002 Questions]

Portions of a legacy application are being refactored to discontinue the use of dynamic SQL. Which of the following would be BEST to implement in the legacy application?

  • A. Input validation
  • B. SQL injection
  • C. Parameterized queries
  • D. Web-application firewall
  • E. Multifactor authentication
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
bob12356
2 years, 4 months ago
Selected Answer: C
Parameterized queries would be the best option to implement in the legacy application. Dynamic SQL is prone to SQL injection attacks, which can be prevented by using parameterized queries.
upvoted 3 times
2Fish
2 years, 1 month ago
Agree. This is Parameterized Queries.
upvoted 1 times
...
...
forest111
2 years, 4 months ago
Selected Answer: C
most secure option for SQL Injection is use of parametrized queries
upvoted 3 times
...
Comptia_Secret_Service
2 years, 4 months ago
Selected Answer: C
it is C.
upvoted 3 times
...
White_T_10
2 years, 4 months ago
this should be D
upvoted 2 times
Comptia_Secret_Service
2 years, 4 months ago
The question is asking an implementation in the application not a security control. Answer is C.
upvoted 2 times
...
forest111
2 years, 4 months ago
question says IN the application, co it have to be in the code, WAF is appliance
upvoted 1 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