exam questions

Exam DA0-001 All Questions

View all questions & answers for the DA0-001 exam

Exam DA0-001 topic 1 question 129 discussion

Actual exam question from CompTIA's DA0-001
Question #: 129
Topic #: 1
[All DA0-001 Questions]

Which of the following is the most likely reason for a data analyst to optimize a query using parameterization?

  • A. To return a subset of records
  • B. To insert a temporary table
  • C. To prevent SQL injections
  • D. To increase the query speed
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
mohammed25helal
6 months, 3 weeks ago
D. To increase the query speed. The real fact is that the use on Parameterization is definitely a security approach to prevent SQL injections. But this is not a DBA certifications. The term SQL Injection in not even mentioned in some books. Meanwhile, In Chapter 3 Databases and Data Acquisition, in Query Optimization, the first factor they mention is Parameterization, and quote: "Effective use of parameterization reduces the number of times the database has to parse individual queries".
upvoted 1 times
...
Swift_and_Quick
1 year ago
C. To prevent SQL injections Parameterization in query optimization involves using parameters instead of embedding values directly into the SQL statement. One of the primary reasons for parameterization is to prevent SQL injection attacks, where malicious SQL code is inserted into input fields by attackers. By parameterizing queries, input values are treated as data rather than executable code, reducing the risk of SQL injection vulnerabilities. While improving query speed (option D) is also a potential benefit of parameterization, preventing SQL injections is typically the most critical reason for implementing parameterized queries in database applications.
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