AWS Certified AI Practitioner · 10 min read · Updated

AWS AI Practitioner (AIF-C01) Domain 5: Security, Compliance and Governance for AI

Domain 5 is 14% of the AIF-C01 exam. Learn the shared responsibility model for AI, IAM, KMS, Macie, PrivateLink, CloudTrail, Config, Artifact, AgentCore Identity and the Generative AI Security Scoping Matrix, with 10 practice questions.

Security governance
AWS AI Practitioner (AIF-C01) study series: all 10 posts
  1. Chapter 1: Fundamentals of AI and ML Explained
  2. Chapter 2: Fundamentals of Generative AI
  3. Chapter 3: Applications of Foundation Models (RAG, Prompting, Fine-Tuning)
  4. Chapter 4: Guidelines for Responsible AI
  5. Chapter 5: Security, Compliance and Governance for AI (you are here)
  6. Mock Exam 1: 50 Practice Questions with Answers
  7. Mock Exam 2: 50 Practice Questions with Answers
  8. Mock Exam 3: 50 Practice Questions with Answers
  9. Mock Exam 4: 50 Brand-New Practice Questions
  10. Mock Exam 5: 50 Brand-New Practice Questions

Domain 5 of the AWS Certified AI Practitioner (AIF-C01) exam, Security, Compliance, and Governance for AI Solutions, is worth 14% of scored content, or about 7 questions. You need to recognize which AWS service secures, audits or governs which part of an AI system, and to understand AI-specific threats such as prompt injection and data leakage.

This is part 5 of our free AIF-C01 study series, covering two tasks:

  • Task 5.1: Explain methods to secure AI systems.
  • Task 5.2: Recognize governance and compliance regulations for AI systems.

5.1 Securing AI systems

The shared responsibility model for AI

Shared responsibility for Amazon Bedrock, SageMaker AI endpoints and self-hosted EC2
Responsibility shifts toward the customer as you move from managed APIs to self-hosting.

AWS is responsible for security of the cloud: physical data centers, hardware, networking, and the infrastructure that runs managed services such as Amazon Bedrock.

The customer is responsible for security in the cloud: IAM permissions, data classification and encryption choices, network configuration, prompt and application design, guardrail configuration, and how model outputs are used.

Responsibility shifts with the service type. With a managed API like Amazon Bedrock, AWS manages more (model hosting and infrastructure). With self-hosted models on Amazon EC2 or SageMaker AI, the customer manages more (OS patches on EC2, container images, model artifacts).

AWS services and features that secure AI

Service / featureRole in AI security
IAM roles, policies, permissionsLeast-privilege access to models, data and endpoints; for example, allow only specific Bedrock model IDs
AWS KMSCreate and control encryption keys; customer managed keys for Bedrock custom models, knowledge bases and S3 data
Encryption at rest and in transitKMS for stored data; TLS for data moving between services
Amazon MacieDiscovers and protects sensitive data (PII) in Amazon S3, such as before it’s used for training or RAG
AWS PrivateLink / VPC endpointsPrivate connectivity to Bedrock and SageMaker AI without the public internet
Amazon VPCNetwork isolation for training jobs and endpoints
AWS Secrets ManagerStores API keys and credentials used by AI applications and agents
Amazon Bedrock GuardrailsFilters prompt attacks, harmful content and PII in inputs and outputs
Amazon Bedrock AgentCore IdentityAuthenticates users to agents and lets agents securely access AWS and third-party tools (OAuth, API keys) on a user’s behalf
Policy in AgentCoreDefines and enforces fine-grained rules for which actions and tools an agent may use, outside the agent’s code
Amazon InspectorScans EC2, container images and Lambda for software vulnerabilities
AWS CloudTrailLogs API calls (who invoked which model, when) for audit
Amazon CloudWatchMetrics, logs, alarms; Bedrock model invocation logging can send prompts and responses to CloudWatch Logs or S3

Source citation and documenting data origins

  • Source citation: GenAI responses reference the documents used (Bedrock Knowledge Bases returns citations), so users can verify answers.
  • Data lineage: tracking where data came from and how it was transformed.
  • Data cataloging: a searchable inventory of datasets with metadata (AWS Glue Data Catalog, Amazon SageMaker Catalog).
  • SageMaker Model Cards: record each model’s training data and provenance.

Secure data engineering best practices

  • Assess data quality: completeness, accuracy, consistency and freshness before training.
  • Privacy-enhancing technologies: anonymization, pseudonymization, tokenization, data masking, differential privacy.
  • Data access control: least privilege with IAM and AWS Lake Formation fine-grained permissions.
  • Data integrity: checksums, versioning and validation to prevent tampering or poisoning.

Security and privacy considerations for AI

  • Application security and threat detection: secure APIs, authentication, monitoring for anomalous usage.
  • Vulnerability management: patch and scan dependencies and containers (Amazon Inspector).
  • Infrastructure protection: VPC isolation, security groups, PrivateLink.
  • Prompt injection: validate input, separate system instructions from user content, use Guardrails prompt-attack filters, restrict agent tool permissions.
  • Encryption at rest and in transit: KMS and TLS everywhere.
  • Data leakage prevention: keep PII out of prompts and training data, mask outputs, restrict which data RAG can retrieve per user.
  • Output filtering and validation: check responses for harmful content, PII and format before showing users or passing them to downstream systems.
  • Audit trail and logging: record model invocations, prompts, responses and agent actions (CloudTrail, model invocation logging, AgentCore Observability).
  • Toxicity: filter hateful or abusive content in both directions.

Hallucination detection and grounding

  • RAG grounding: supply authoritative source documents so the model answers from facts.
  • Output validation: verify answers against sources, rules or schemas; use Guardrails contextual grounding and Automated Reasoning checks.
  • Confidence scoring: attach a confidence or grounding score and route low-confidence answers to humans, or decline to answer.
  • Also: lower temperature, instruct the model to say “I don’t know,” and require citations.

5.2 Governance and compliance

AWS services for governance and compliance

ServiceWhat it does for AI governance
AWS ConfigRecords resource configurations and evaluates them against rules (for example, “SageMaker endpoints must use KMS encryption”)
Amazon InspectorAutomated vulnerability scanning for workloads
AWS ArtifactSelf-service portal for AWS compliance reports (SOC, ISO, PCI) and agreements: evidence for auditors
AWS CloudTrailAudit log of who did what, when, across AWS APIs
AWS Trusted AdvisorBest-practice checks on cost, security, performance, fault tolerance and service limits
AWS Well-Architected ToolReviews workloads against Well-Architected pillars, including the Machine Learning and Generative AI Lenses
AWS Audit ManagerContinuously collects evidence for audits (supports GenAI frameworks)

Memory hooks: Config = configuration compliance. CloudTrail = who did what. Artifact = AWS’s compliance paperwork. Inspector = vulnerabilities. Trusted Advisor = best-practice recommendations. Macie = sensitive data in S3.

Data governance strategies

  • Data lifecycles: manage data from creation to archive to deletion (S3 Lifecycle policies, Amazon S3 Glacier).
  • Logging: capture access and processing events.
  • Residency: keep data in approved geographic Regions to satisfy sovereignty laws; watch cross-Region inference settings.
  • Monitoring and observation: continuously watch data quality, access patterns and model behavior.
  • Retention: keep data only as long as legally and operationally required, then delete it.

Governance processes and frameworks

  • Policies: written rules for acceptable AI use, data handling and approvals.
  • Review cadence and strategies: scheduled reviews of models, prompts and risk (for example, quarterly), plus technical, legal and ethical reviews before launch.
  • Transparency standards: model cards and disclosure that content is AI-generated.
  • Team training requirements: educate staff on responsible AI, security and policy.

The Generative AI Security Scoping Matrix

The five scopes of the Generative AI Security Scoping Matrix
As the scope number rises, you own more of the security responsibility.
ScopeDescriptionExample
1. Consumer appUsing a public GenAI serviceEmployees using a public chatbot
2. Enterprise appUsing a third-party SaaS with GenAI featuresA SaaS tool with built-in AI writing
3. Pre-trained modelsBuilding an app on an existing FM via APIAn app calling Amazon Bedrock
4. Fine-tuned modelsCustomizing an FM with your dataA fine-tuned model in Bedrock
5. Self-trained modelsTraining a model from scratch on your dataYour own FM

As the scope number rises, the customer owns more of the security responsibility: data, model and infrastructure. Other frameworks worth recognizing: the NIST AI Risk Management Framework, ISO/IEC 42001 (AI management systems) and the EU AI Act (risk-based regulation).

Domain 5 cheat sheet

  • Find PII in S3 → Macie. Private access to Bedrock → PrivateLink. Encryption keys → KMS.
  • Who invoked the model? → CloudTrail. Full prompts and responses → model invocation logging to CloudWatch or S3.
  • AWS compliance reports for auditors → Artifact. Resource configuration rules → Config.
  • Agent identity and tool access → AgentCore Identity; rules on agent actions → Policy in AgentCore.
  • AWS secures the infrastructure; you secure your data, access, prompts and configuration.
  • Scoping Matrix: Scope 1 (consumer app) = least control; Scope 5 (self-trained) = most responsibility.

Practice questions (with answers)

Answer all 10 first, then open each answer to check your reasoning. Multi-select questions need every correct option.

Question 1. A company wants to find and classify PII in the Amazon S3 buckets it plans to use for a RAG knowledge base. Which service should it use?

  • A. Amazon Macie
  • B. AWS Trusted Advisor
  • C. Amazon Inspector
  • D. AWS Artifact
Show answer and explanation

Answer: A. Amazon Macie uses ML to discover and classify sensitive data such as PII in S3.

Question 2. A financial firm requires that traffic from its VPC to Amazon Bedrock never traverses the public internet. What should it use?

  • A. Amazon CloudFront
  • B. AWS PrivateLink (interface VPC endpoint)
  • C. AWS Config
  • D. Amazon Route 53
Show answer and explanation

Answer: B. AWS PrivateLink provides private connectivity from a VPC to Bedrock over the AWS network.

Question 3. An auditor asks for AWS’s SOC 2 and ISO 27001 compliance reports. Where can the company download them?

  • A. AWS Artifact
  • B. AWS CloudTrail
  • C. Amazon CloudWatch
  • D. AWS Budgets
Show answer and explanation

Answer: A. AWS Artifact is the self-service portal for AWS compliance reports and agreements.

Question 4. A security team needs to know which IAM user invoked a specific Bedrock model and when. Which service provides this?

  • A. AWS CloudTrail
  • B. Amazon Macie
  • C. AWS Trusted Advisor
  • D. Amazon Comprehend
Show answer and explanation

Answer: A. AWS CloudTrail records API activity, including who called Bedrock APIs and when.

Question 5. Under the shared responsibility model, which task is the CUSTOMER’s responsibility when using Amazon Bedrock?

  • A. Patching the servers that host the FMs
  • B. Securing the physical data centers
  • C. Configuring IAM permissions and guardrails for its application
  • D. Maintaining the global network backbone
Show answer and explanation

Answer: C. Customers own access control, data protection choices, and application/guardrail configuration. AWS owns the infrastructure.

Question 6. A company wants to automatically check that all SageMaker AI endpoints are encrypted with KMS keys and flag non-compliant resources. Which service fits?

  • A. AWS Config
  • B. Amazon Polly
  • C. AWS Artifact
  • D. Amazon Lex
Show answer and explanation

Answer: A. AWS Config evaluates resource configurations against rules and reports non-compliance.

Question 7. An AI agent must call a third-party CRM on behalf of a signed-in user using that user’s OAuth credentials, without hard-coding secrets. Which capability fits best?

  • A. Amazon Bedrock AgentCore Identity
  • B. Amazon Rekognition
  • C. AWS Trusted Advisor
  • D. Amazon S3 Glacier
Show answer and explanation

Answer: A. AgentCore Identity manages agent and user identity and securely brokers access tokens for tools and third- party services.

Question 8. (Multi-select) Which TWO techniques help reduce hallucinations in a GenAI application? (Choose two.)

  • A. RAG grounding with authoritative documents
  • B. Raising temperature to 1.0
  • C. Output validation with confidence scoring
  • D. Removing all system instructions
  • E. Disabling logging
Show answer and explanation

Answer: A and C. Grounding in sources and validating outputs (with confidence thresholds) improve accuracy. Higher temperature increases randomness.

Question 9. A company builds an internal app that calls a pre-trained FM through Amazon Bedrock without customizing it. Which scope of the Generative AI Security Scoping Matrix applies?

  • A. Scope 1
  • B. Scope 3
  • C. Scope 4
  • D. Scope 5
Show answer and explanation

Answer: B. Scope 3 covers building applications on existing pre-trained models via API. Fine-tuning would be Scope 4.

Question 10. A European company must keep all training data and inference within EU Regions. Which data governance concept is this?

  • A. Data residency
  • B. Data lineage
  • C. Data augmentation
  • D. Data labeling
Show answer and explanation

Answer: A. Data residency requires data to stay within specific geographic boundaries.

Frequently asked questions

What’s the difference between CloudTrail and model invocation logging?

CloudTrail records API calls: who invoked which model and when. Bedrock model invocation logging captures the full prompt and response content, sent to CloudWatch Logs or Amazon S3.

Which services are out of scope for AIF-C01?

The exam guide lists services such as Amazon GuardDuty, AWS WAF, AWS Shield, Amazon Cognito, Amazon Route 53 and AWS Control Tower as out of scope. Treat answers naming them with suspicion.

Which Scoping Matrix scope applies to a Bedrock app?

An app calling a pre-trained FM through Bedrock without customization is Scope 3. Fine-tuning it with your data moves it to Scope 4.


Ready to test yourself? Take a full, timed AIF-C01 mock exam once you’ve finished all five chapters.

← Previous: AWS AI Practitioner (AIF-C01) Domain 4: Guidelines for Responsible AI

Next: AWS AI Practitioner (AIF-C01) Mock Exam 1: 50 Practice Questions with Answers →

This is an independent study guide, not produced, endorsed or sponsored by Amazon Web Services. Practice questions are original and aren’t actual exam questions. AWS services change often, so check the AWS documentation and the official AIF-C01 exam guide before you rely on details here.

Tagged
Rupak Nepali
Written byRupak Nepali

Rupak Nepali is a web developer, manage Webocreation website and the author of six books:
Getting Started with OpenCart Module Development (Packt, 2013),
OpenCart Theme and Module Development (Packt, 2015),
OpenCart 4: Dev Guide for Themes & Extensions (2024),
OpenCart 4: User Manual (2025),
Cloudflare for the Enterprise Website (2026) and
The Technical Web Guide for Marketers (2026).
Rupak has built OpenCart stores and extensions since 2010, has published more than 600 tutorials on Webocreation, and shares free OpenCart extensions on GitHub.
Find Rupak on
GitHub | Amazon | LinkedIn | X | YouTube.

Leave a Reply

Your email address will not be published. Required fields are marked *