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?

  • Add client-side regular-expression validation to the single-page application that calls the microservice.

  • Deploy a cloud web application firewall with an injection ruleset in front of the microservice API.

  • 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.

ISC2 Certified Cloud Security Professional (CCSP)
Cloud Application Security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot