Courseiva
AI Safety Security And GovernancemediumMultiple SelectObjective-mapped

AIP-C01 AI Safety Security And Governance Practice Question

Which TWO of the following actions can help mitigate the risk of 'prompt injection' in a Generative AI application?

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

Sanitize user input before passing it to the model

Input validation and using Guardrails are the primary defenses against prompt 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.

  • Disable the chat interface

    Why it's wrong here

    This defeats the purpose of the application.

  • Set the temperature to 0.0

    Why it's wrong here

    Temperature impacts randomness, not security.

  • Use the most powerful foundation model available

    Why it's wrong here

    Larger models can still be vulnerable to injection.

  • Sanitize user input before passing it to the model

    Why this is correct

    Input sanitization is a core security practice.

  • Use Bedrock Guardrails for input filtering

    Why this is correct

    Guardrails filter malicious inputs.

About these practice questions

One of 181 original AIP-C01 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 and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Amazon Web Services exam blueprint

This AIP-C01 practice question is part of Courseiva's free Amazon Web Services 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 AIP-C01 exam.