ISC2 Certified Cloud Security Professional (CCSP) Practice Question
During a code review of a new cloud-native microservice, you notice that a developer concatenates user-supplied JSON fields directly into a MongoDB query string that is later executed by the service. To avoid introducing a NoSQL injection vulnerability while the service is still in development, which practice offers the MOST effective protection?
Deploy a cloud web application firewall with an injection ruleset in front of the microservice API.
Add client-side regular-expression validation to the single-page application that calls the microservice.
Restrict developer IAM roles so that only the DevSecOps team can modify production database schemas.
Refactor the data-access layer to use parameterized queries or an ORM/ODM that automatically binds user input as parameters.
Building database queries with parameterized statements (or an object-document mapper that performs this on the developer's behalf) ensures that user input is treated strictly as data, not as executable query operators, eliminating the core attack vector for NoSQL injection. A cloud WAF can block some known patterns but is a runtime compensating control, not a fix in the code. Client-side regex checks are easily bypassed and still allow tampering on the server side. Tightening IAM permissions for developers improves governance but does not address how the application processes untrusted input.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a NoSQL injection vulnerability?
Open an interactive chat with Bash
What are parameterized queries and how do they prevent injection attacks?
Open an interactive chat with Bash
What is the role of an ORM/ODM in database security?
Open an interactive chat with Bash
ISC2 Certified Cloud Security Professional (CCSP)
Cloud Application Security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .