AIF-C01 Fundamentals of Generative AI Practice Question
A company is building a generative AI application using Amazon Bedrock and needs to ensure that the model does not generate outputs containing personally identifiable information (PII). Which TWO actions should the company take? (Choose 2)
⚠ Common exam trap
The AIF-C01 exam often tests the distinction between network-level security controls (like VPCs) and content-level data protection mechanisms, leading candidates to mistakenly choose VPC isolation as a solution for PII redaction.
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
✓
Implement a custom AWS Lambda function to scan and redact PII from inputs and outputs.
Option A is correct because a custom AWS Lambda function can programmatically scan both the prompt inputs and the model responses for PII patterns (for example, using regex or Amazon Comprehend's PII detection APIs) and redact or block them before they reach the user, giving the company full control over what data enters and leaves the generative AI application. Option D is correct because Amazon Bedrock Guardrails provides a native, purpose-built sensitive information filter that can detect and either block or mask PII entities (such as names, emails, and SSNs) in both user inputs and model outputs, directly satisfying the requirement to prevent PII from appearing in generated content. Option B is not correct because IAM policies only control who can invoke which Bedrock models and actions; they do not inspect or filter the content of prompts and responses for PII. Option C is not correct because CloudWatch Logs only captures and stores model outputs for auditing and monitoring after the fact; it does not prevent PII from being generated or returned. Option E is not correct because placing the Bedrock endpoint in a private VPC only affects network isolation and traffic routing, not the content-level detection or redaction of PII in model outputs.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Implement a custom AWS Lambda function to scan and redact PII from inputs and outputs.
Why this is correct
A Lambda function provides deterministic, customisable inspection and redaction of PII across both request and response payloads, catching patterns Guardrails filters may not cover. It satisfies the requirement to prevent PII appearing in generated outputs.
- ✗
Use AWS Identity and Access Management (IAM) policies to restrict model access.
Why it's wrong here
IAM policies govern who may invoke which models and actions; they cannot inspect prompt or response content, so generated PII passes through unchanged. IAM restriction is correct for least-privilege access control, not for content-level PII prevention, which needs guardrails or output filtering.
- ✗
Enable Amazon CloudWatch Logs to capture and audit model outputs.
Why it's wrong here
CloudWatch Logs records outputs after generation, providing audit evidence but no prevention; PII has already been emitted. Logging is the right control for compliance traceability and incident review, whereas blocking PII requires guardrails or filters applied before the response is returned.
- ✓
Configure Amazon Bedrock Guardrails to block or mask PII.
Why this is correct
Guardrails supports sensitive-information filters that detect and either block or mask PII in prompts and responses. This enforces the PII constraint natively at the Bedrock layer, satisfying the requirement that outputs contain no personally identifiable information.
- ✗
Place the Bedrock model endpoint within a private VPC.
Why it's wrong here
A private VPC endpoint secures network path and access to the model, but does nothing to filter generated text; PII can still appear in outputs. Private networking is correct for data-residency or traffic-isolation requirements, not for detecting or blocking PII in model responses.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
About these practice questions
Courseiva writes every AIF-C01 question from scratch — 862 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.