AWS Certified AI Practitioner AIF-C01 Practice Question
Developers are building a Q&A chatbot that calls Amazon Bedrock foundation models. They worry that user-supplied text could override system instructions and cause the model to behave unexpectedly. Which approach BEST mitigates this prompt injection risk?
Store every prompt in an Amazon S3 bucket with AWS CloudTrail logging enabled.
Create an Amazon Bedrock Guardrail that blocks disallowed content and enforces the intended system instructions.
Run the application in a private VPC subnet that has no internet access.
Encrypt all model responses with AWS Key Management Service (AWS KMS) before returning them to users.
Prompt injection occurs when malicious or unexpected user text alters a large language model's behavior. Amazon Bedrock Guardrails let builders define system instructions, block lists, and content filters that are applied to every request before it reaches the model. Guardrails therefore help prevent end-user prompts from overriding trusted instructions. The other options improve security in other ways-encryption protects data at rest or in transit, logging aids auditing, and private networking limits network exposure-but none directly address prompt injection.
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 are Amazon Bedrock Guardrails?
Open an interactive chat with Bash
What is prompt injection, and why is it a security risk?
Open an interactive chat with Bash
How does encryption differ from creating Guardrails in managing prompt injection risks?
Open an interactive chat with Bash
AWS Certified AI Practitioner AIF-C01
Security, Compliance, and Governance for AI Solutions
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 .