- A
Enable VPC Flow Logs for Bedrock.
Why wrong: VPC Flow Logs capture network traffic, not prompt content or access control.
- B
Enable AWS CloudTrail to log all Bedrock API calls.
Why wrong: Logging is important for auditing but does not restrict access or filter prompts.
- C
Use Amazon Bedrock Guardrails to define content filters and deny topics.
Guardrails can filter sensitive data and enforce content policies.
- D
Implement IAM policies that allow only specific users to invoke the model.
IAM policies restrict access to the model invocation actions.
- E
Use AWS KMS to encrypt the model data.
Why wrong: Encryption does not prevent sensitive data from being included in prompts.
Quick Answer
The correct answer is to implement IAM policies that allow only specific users to invoke the model and to use Amazon Bedrock Guardrails to filter sensitive data from prompts. IAM policies secure the application by enforcing least-privilege access, ensuring only authorized principals can call the InvokeModel API, which directly restricts model access. Guardrails complement this by acting as a content safety layer that inspects prompts in real time, blocking or masking sensitive information like PII or proprietary data before it reaches the foundation model. On the AWS Certified AI Practitioner AIF-C01 exam, this pairing tests your understanding of the defense-in-depth approach: IAM handles authentication and authorization, while Guardrails handles data leakage prevention. A common trap is choosing only one security measure, but the question explicitly requires two actions that address both access control and prompt content safety. Memory tip: think “IAM for the who, Guardrails for the what” — IAM controls who invokes, Guardrails controls what gets sent.
AIF-C01 Practice Question: Security, Compliance and Governance for AI Solutions
This AIF-C01 practice question tests your understanding of security, compliance and governance for ai solutions. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company uses Amazon Bedrock to build a generative AI application. They need to secure the application by restricting access to the model and preventing sensitive data from being stored in prompts. Which TWO actions should they take? (Choose two.)
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
Use Amazon Bedrock Guardrails to define content filters and deny topics.
Amazon Bedrock Guardrails (Option C) directly addresses the need to prevent sensitive data from being stored in prompts by allowing you to define content filters, deny topics, and configure sensitive information filters that block or mask such data before it reaches the model. This is the native service feature designed for content safety and data leakage prevention.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable VPC Flow Logs for Bedrock.
Why it's wrong here
VPC Flow Logs capture network traffic, not prompt content or access control.
- ✗
Enable AWS CloudTrail to log all Bedrock API calls.
Why it's wrong here
Logging is important for auditing but does not restrict access or filter prompts.
- ✓
Use Amazon Bedrock Guardrails to define content filters and deny topics.
Why this is correct
Guardrails can filter sensitive data and enforce content policies.
Related concept
Read the scenario before looking for a memorised answer.
- ✓
Implement IAM policies that allow only specific users to invoke the model.
Why this is correct
IAM policies restrict access to the model invocation actions.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Use AWS KMS to encrypt the model data.
Why it's wrong here
Encryption does not prevent sensitive data from being included in prompts.
Common exam traps
Common exam trap: answer the scenario, not the keyword
AWS often tests the distinction between logging/auditing services (CloudTrail, VPC Flow Logs) and actual security enforcement mechanisms (Guardrails, IAM), leading candidates to confuse observability with prevention.
Detailed technical explanation
How to think about this question
Bedrock Guardrails operates at the inference layer, intercepting prompts and responses to apply configurable policies such as regex-based sensitive info masking (e.g., PII like SSNs) and custom deny topics using natural language classifiers. IAM policies (Option D) work at the AWS API level, using conditions like `bedrock:InvokeModel` and resource ARNs to restrict which principals can call specific models, providing a complementary layer of access control.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Security, Compliance and Governance for AI Solutions — study guide chapter
Learn the concepts, then practise the questions
- →
Security, Compliance and Governance for AI Solutions practice questions
Targeted practice on this topic area only
- →
All AIF-C01 questions
500 questions across all exam domains
- →
AWS Certified AI Practitioner AIF-C01 study guide
Full concept coverage aligned to exam objectives
- →
AIF-C01 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related AIF-C01 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Applications of Foundation Models practice questions
Practise AIF-C01 questions linked to Applications of Foundation Models.
Fundamentals of AI and ML practice questions
Practise AIF-C01 questions linked to Fundamentals of AI and ML.
Fundamentals of Generative AI practice questions
Practise AIF-C01 questions linked to Fundamentals of Generative AI.
Guidelines for Responsible AI practice questions
Practise AIF-C01 questions linked to Guidelines for Responsible AI.
Security, Compliance and Governance for AI Solutions practice questions
Practise AIF-C01 questions linked to Security, Compliance and Governance for AI Solutions.
AIF-C01 fundamentals practice questions
Practise AIF-C01 questions linked to AIF-C01 fundamentals.
AIF-C01 scenario practice questions
Practise AIF-C01 questions linked to AIF-C01 scenario.
AIF-C01 troubleshooting practice questions
Practise AIF-C01 questions linked to AIF-C01 troubleshooting.
Practice this exam
Start a free AIF-C01 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this AIF-C01 question test?
Security, Compliance and Governance for AI Solutions — This question tests Security, Compliance and Governance for AI Solutions — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Use Amazon Bedrock Guardrails to define content filters and deny topics. — Amazon Bedrock Guardrails (Option C) directly addresses the need to prevent sensitive data from being stored in prompts by allowing you to define content filters, deny topics, and configure sensitive information filters that block or mask such data before it reaches the model. This is the native service feature designed for content safety and data leakage prevention.
What should I do if I get this AIF-C01 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 30, 2026
This AIF-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 AIF-C01 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.