Objective 2.4
CS0-003Given a scenario, recommend controls to mitigate attacks and software vulnerabilities.
Objective 2.4 sits in Vulnerability Management, which carries 30% of the CySA+ exam. The questions below are original, written from the official objective title above, and each explanation cites the CompTIA page it rests on.
Objective title verbatim from the official objectives. CompTIA exam page ↗
A worked example
Shown solved, with the whole explanation open: this is what every question here carries.
A reporting page returns extra rows when a tester appends a single quote and an OR clause to a URL parameter. Which coding pattern makes an application injectable through its database queries?
Correct.
Checked against cheatsheetseries.owasp.org, August 2026Concept
Injection happens where untrusted text is glued into an executable statement. The vulnerable ingredient is the construction pattern, not the database engine or its location.
Why B
The cheat sheet states attackers can use SQL injection when an application has dynamic database queries that use string concatenation and user-supplied input; removing that pattern removes the flaw.
Source
OWASP SQL Injection Prevention Cheat Sheet, checked August 2026Attackers can use SQL injection on an application if it has dynamic database queries that use string concatenation and user-supplied input.
Now you: objective 2.4 questions
No account needed. The explanation opens when you answer.
Sample question 1 of 3
An analyst must recommend the primary control for SQL injection findings across many apps. Which one leads the list?
Sample question 2 of 3
A finding cites this code:
String query = "SELECT account_balance FROM user_data WHERE user_name = " + request.getParameter("customerName");What remediation do you recommend?
Sample question 3 of 3
A legacy team proposes escaping every user input as their whole SQL injection defense. How does the guidance rate that option?
Full CySA+ question bank coming
We’re writing the complete bank from the official objectives right now. Leave your email and we’ll tell you when it ships, nothing else, ever.
Read the sources
These are the official pages the questions above cite. Reading them is studying the objective from the primary source, which is what the explanations point you toward anyway.