Courseiva
Cloud Platform and Infrastructure SecuritymediumMultiple SelectObjective-mapped

CCSP Cloud Platform and Infrastructure Security Practice Question

A cloud architect is securing a serverless application that uses serverless functions and an API gateway. Which TWO practices help protect against injection attacks?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Parameterized queries for database access

Input validation and parameterized queries prevent injection attacks such as SQL injection or command injection.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Parameterized queries for database access

    Why this is correct

    Correct: Parameterized queries prevent SQL injection.

  • Using environment variables for secrets

    Why it's wrong here

    Protects secrets but not against injection.

  • Using a custom domain name

    Why it's wrong here

    Domain name does not prevent injection.

  • Input validation

    Why this is correct

    Correct: Validating input helps reject malicious payloads.

  • Enabling API caching

    Why it's wrong here

    Caching improves performance, not security.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

One of 964 original CCSP practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CCSP practice question is part of Courseiva's free ISC2 certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CCSP exam.