SaveMyCert
Log in
5 of 5 free questions left today·for 30 a day
Security, Compliance, and Governance for AI Solutions

AI Governance and Compliance on AWS: Config, CloudTrail, and Audit Manager

16 min readAIF-C01 · Security, Compliance, and Governance for AI SolutionsUpdated

AI governance and compliance on AWS is the practice of proving that an AI system is run according to the policies and regulations that apply to it, using AWS services to track configuration, record activity, collect evidence and check best practices. Security keeps the AI system safe; governance proves it is run responsibly. AWS Config tracks how your resources are configured and whether they stay compliant, AWS CloudTrail records an audit trail of API calls (including Amazon Bedrock model invocations), AWS Audit Manager collects evidence against compliance frameworks for the customers who already use it (it closed to new accounts on 30 April 2026, and AWS points new users to AWS Config conformance packs), and AWS Artifact lets you download AWS's own compliance reports and accept agreements. Amazon Inspector scans for vulnerabilities and AWS Trusted Advisor checks your account against best practices. Around these services you set data-governance policies — where data can live and be processed, how long you keep it, and how AI interactions are logged and monitored — and follow governance processes, including the five scopes of the Generative AI Security Scoping Matrix. This lesson explains what each service and practice is for at the foundational depth AIF-C01 expects, then shows a regulated company setting up governance for a generative AI deployment.

What you’ll learn
  • Match a governance question to the right AWS service — AWS Config (including conformance packs), Amazon Inspector, AWS Audit Manager, AWS Artifact, AWS CloudTrail, and AWS Trusted Advisor — and tell Trusted Advisor apart from the AWS Well-Architected Tool.
  • Explain data-governance strategies — data lifecycles, retention, residency, logging, monitoring and observation — and how each is put into practice on AWS, including Amazon Bedrock cross-Region inference and model invocation logging.
  • Describe processes for following governance protocols: policies, periodic and event-triggered review cadence, review strategies, transparency standards, and team training requirements.
  • Name the five scopes of the AWS Generative AI Security Scoping Matrix and identify what each scope makes the customer responsible for.
  • Trace how a regulation maps to a control and then to the evidence that proves compliance.

Governance versus security for AI

Task 5.1 is about securing the AI system — identity, encryption, keeping traffic private. This task is about governance and compliance: making sure the system is run according to policies and regulations, and being able to prove it. The two overlap, and several services here are ones a security engineer already knows, but the governance lens asks different questions: Is this resource configured the way our policy requires? Who did what, and when? Can we show an auditor evidence that we meet a standard?

A simple way to hold the domain together is the chain regulation to control to evidence. A regulation or internal policy says something must be true — for example, training data must stay in a particular country, or all activity must be logged. A control is how you make that true — a configuration rule, an encryption setting, a retention policy. Evidence is the proof you collected that the control is working — configuration history, API logs, a compliance report. Governance is running this chain continuously, not once.

For the exam, keep these services at a recognition level. You do not need to configure them; you need to know which one answers which governance question. The rest of this lesson takes them in pairs by the question they answer, gives you a comparison table, then covers the data-governance policies and processes that wrap around the tooling. Governance is as much about policy and process as it is about any single AWS service.

Track configuration and scan for vulnerabilities: Config and Inspector

AWS Config answers is this resource configured the way it should be? It records the configuration of your AWS resources and how that configuration changes over time, and it evaluates resources against rules that represent your desired state — for example, a managed rule that flags any storage bucket that is not encrypted, or any Amazon EBS volume that is not encrypted. Each resource gets a configuration timeline: what its settings were at each point and when they changed. Config gives you a continuous picture of compliance — which resources meet your policies right now, which drifted, and when. For a generative AI deployment, Config can confirm that the buckets holding training data stay encrypted and that logging stays switched on. When the need is to track resource configuration and compliance over time, the service is AWS Config.

Config can also deploy a whole framework's worth of rules at once. A conformance pack is a collection of Config rules (and optional remediation actions) deployed as one unit to an account or across an organization, with its own compliance dashboard and timeline. AWS publishes sample conformance pack templates for common frameworks — for example HIPAA Security, PCI DSS and NIST — and you can write your own. A conformance pack checks the technical controls that can be evaluated as Config rules; it does not cover procedural controls such as whether policies are documented.

Amazon Inspector answers a different question: are there known vulnerabilities in my workloads? It is an automated vulnerability management service that continually scans Amazon EC2 instances, container images in Amazon ECR, and AWS Lambda functions for known software vulnerabilities (published CVEs in operating-system packages and code libraries), and checks EC2 instances for unintended network exposure. Because scanning is continual, a newly published CVE produces a new finding without anyone re-running a scan. In a governance program, Inspector provides ongoing assurance that the infrastructure and code running your AI application are not carrying unpatched, exploitable software.

The pairing is easy to remember: Config watches configuration and compliance state, Inspector watches for vulnerabilities. Both run continuously so governance is an ongoing measurement rather than a one-time snapshot, and both feed the evidence you later hand to an auditor.

Prove compliance: Audit Manager and Artifact

Two services deal specifically with proving compliance against recognized standards, and they are distinguished by whose compliance they document: Audit Manager documents yours, Artifact provides AWS's.

AWS Audit Manager helps you prove your compliance. It continuously collects evidence about how you use AWS — from Config rules, CloudTrail events, service API calls and security-control findings — and maps that evidence to the controls of a framework such as SOC 2, PCI DSS or HIPAA, or a custom framework, organizing it into an assessment you can export as an audit report. Instead of manually screenshotting settings before an audit, the evidence is gathered automatically.

Availability change: since 30 April 2026 Audit Manager is in maintenance mode. It can no longer be set up in new accounts, and existing customers cannot extend it to new Regions or new organizations — but customers who already use it carry on as normal, including creating new assessments (and organization-level customers can still add accounts from that organization to assessments). AWS recommends AWS Config conformance packs for compliance monitoring in new accounts. So treat Audit Manager as the evidence-collection service an existing customer uses, and conformance packs as the route for a new account. Conformance packs are not a like-for-like replacement: they record configuration items as evidence rather than a full audit report, and some frameworks (notably SOC 2 and GDPR) have no AWS template, so you would build a custom pack or use a partner compliance tool.

AWS Artifact gives you AWS's compliance documentation. It is a self-service portal with two parts: reports — AWS's audit reports and certifications such as SOC 1, SOC 2, ISO and PCI — and agreements, where you review and accept legal agreements with AWS, such as the Business Associate Addendum (BAA) a healthcare organization needs before it processes protected health information under HIPAA. These documents show how the AWS infrastructure underneath your workload is audited and certified — the AWS side of the shared responsibility model your own auditors will ask about.

The distinction is a common trap: Audit Manager (or, for a new account, a Config conformance pack) assesses your environment; Artifact hands you AWS's reports and agreements about AWS's environment.

Audit trails and best-practice checks: CloudTrail and Trusted Advisor

AWS CloudTrail is your audit trail of API activity. It records the actions taken in your account — which IAM identity made a call, which service and action, when, and from which IP address — whether the caller was a person, an SDK, or another service. Event history keeps the last 90 days of management events automatically; a trail delivers events continuously to Amazon S3 for long-term retention. For governance this is the record of accountability: if someone changed a model's permissions or altered a training-data bucket's policy, CloudTrail captured the call.

Amazon Bedrock model calls are part of that trail. InvokeModel, InvokeModelWithResponseStream, Converse and ConverseStream are logged as CloudTrail management events, so they are recorded by default. The event shows who called which model, when and from where — but it records call metadata, not the prompt or the generated text. Capturing the content of AI interactions is a separate, opt-in feature, Amazon Bedrock model invocation logging, covered under data governance below.

CloudTrail and AWS Config are often confused. CloudTrail records actions — the API calls that happened. Config records state — how a resource is configured and whether that configuration is compliant. A governance program uses both: Config's timeline tells you when a bucket's policy became public and that it is now non-compliant, and CloudTrail tells you which principal made the call that changed it.

AWS Trusted Advisor inspects your account automatically and provides best-practice recommendations in categories including cost optimization, performance, security, fault tolerance, and service limits (services approaching their quotas). Typical findings include an unrestricted SSH port, Amazon EBS volumes with no snapshots, low-utilization Amazon EC2 instances and an IAM root account without MFA, and every finding links to the remediation it recommends. Every account can see the service-limit checks and a core set of security and fault-tolerance checks; the full set of checks (including most cost-optimization checks) needs a Business-level or Enterprise-level AWS Support plan.

Trusted Advisor has a near-twin: the AWS Well-Architected Tool. Both relate to AWS best practices, but they work differently.

AWS Trusted AdvisorAWS Well-Architected Tool
How it worksAutomated checks that inspect the resources already in your accountA guided review: you answer questions about a workload's design
ScopeThe whole account, continuouslyOne workload at a time, when you run a review
OutputCheck results (green, yellow, red) with a recommended remediation for eachA list of high- and medium-risk design issues against the Well-Architected pillars and lenses

The difference is the input: Trusted Advisor reads the account itself and needs nothing from you, while the Well-Architected Tool depends on the answers your team gives about how one workload is designed.

Governance services at a glance

These services often appear side by side, so the discriminator is the exact governance job each one does. Read the scenario for the verb and the target.

ServiceGovernance question it answers
AWS ConfigAre my resources configured correctly and staying compliant over time? What did this resource look like, and when did it change?
AWS Config conformance packsCan I deploy a framework's rule set (for example HIPAA Security) in one step and watch a compliance dashboard?
Amazon InspectorDo my EC2 instances, ECR images or Lambda functions have known vulnerabilities or unintended network exposure?
AWS Audit ManagerCan I collect evidence that I meet a framework? (existing customers; closed to new accounts since 30 April 2026)
AWS ArtifactWhere do I download AWS's own compliance reports (SOC, ISO, PCI) or accept an agreement such as the BAA?
AWS CloudTrailWho called which API, and when — including Bedrock model invocations? (the audit trail)
AWS Trusted AdvisorWhere does my account drift from AWS best practices, including service quotas?

A quick way to keep them straight: Config is configuration state, CloudTrail is actions taken, Inspector is vulnerabilities, Audit Manager assembles your evidence, Artifact gives you AWS's reports and agreements, and Trusted Advisor is the automated best-practice checker. Anchor on the purpose, not the configuration details, and the confusable pairs (Config versus CloudTrail, Audit Manager versus Artifact, Trusted Advisor versus the Well-Architected Tool) stop being confusable.

Data governance strategies

Data-governance strategies are the policies that decide how data is handled across its life — how long it is kept, where it may live and be processed, and how its use is recorded and watched. Each is a policy you set and then enforce with AWS features.

Lifecycles and retention

Data lifecycles define the stages data moves through — created, used, archived, and eventually deleted — so nothing is kept forever by accident or thrown away too soon. Retention is the rule for how long data is kept before deletion, often set by regulation; a policy might require application logs to be kept for five years and then deleted. On AWS, an Amazon S3 Lifecycle configuration implements both automatically: transition actions move objects to cheaper storage classes (such as S3 Glacier) after a set age, and expiration actions delete them when the retention period ends. S3 Intelligent-Tiering is different — it moves objects between access tiers to save cost but never deletes anything, so on its own it cannot enforce a retention limit.

Residency

Data residency is about where data is stored and processed. Many regulations require that certain data stay within a specific country or geography, so you choose AWS Regions accordingly and prevent processing elsewhere. For a generative AI system, residency covers prompts and responses as well as training data — and that matters with Amazon Bedrock cross-Region inference, which routes requests to other Regions to add capacity:

  • A geographic cross-Region inference profile (for example EU or US) routes requests only to Regions inside that geography, so processing stays within it — the choice when residency rules apply.
  • A global cross-Region inference profile can route requests to any supported commercial Region worldwide, trading residency for capacity and lower cost.

CloudTrail records cross-Region inference calls in the source Region, with the Region that actually ran the request. Residency is easy to confuse with data lineage, a Task 5.1 term: lineage records where data came from and how it was transformed, not where it is allowed to live.

Logging, monitoring and observation

Logging records what happens to data and systems; monitoring and observation mean actively watching those logs and metrics so you notice problems, misuse or drift rather than discovering them afterwards. For AI interactions, three AWS records answer three different questions:

RecordWhat it capturesOn by default?
AWS CloudTrailWho called the Bedrock API, which model, when, from where — no prompt or response textYes (management events)
Amazon Bedrock model invocation loggingThe full request and response — prompt and generated text — plus metadata, delivered to Amazon S3 and/or CloudWatch LogsNo — you turn it on
Amazon Bedrock runtime metrics in Amazon CloudWatchAggregate numbers: invocation counts, latency, errors, throttles, token countsYes

Each record answers only its own question — content, caller identity or aggregate trend — so a requirement spanning several of them needs the matching records combined; metrics alone show trends, not content. Put together, a data-governance strategy states the lifecycle and retention rules, pins processing to compliant Regions, and keeps AI interactions logged and monitored.

Governance processes and frameworks

Governance processes are the organizational habits that keep AI systems within policy: written rules, scheduled and event-driven reviews, openness about how AI is used, and trained people. Policies are the written rules for building and running AI systems — what data may be used, who approves a model for production, what must be logged. A review cadence means systems are re-examined on a regular schedule (for example quarterly) rather than approved once and forgotten. Review strategies decide what triggers a review and how it is done — and a fixed calendar is not always enough: an event-triggered review runs whenever something material changes — a new model version, a change to the training or retrieval data, a new use case or user group — alongside the periodic review, so changed behaviour is checked when it appears rather than at the next scheduled date. Other triggers include a major data change or a new use case.

Transparency standards require you to be clear about where AI is used and how its decisions are reached — for example, telling job applicants that an AI tool screens their CVs and what factors it weighs. Team training requirements ensure the people building and operating AI understand the policies and their own duties under them, often as a condition of getting access to production systems.

Governance frameworks give structure to all of this. The one the exam guide names is the AWS Generative AI Security Scoping Matrix, described in the next section.

The Generative AI Security Scoping Matrix: five scopes

The AWS Generative AI Security Scoping Matrix is a framework that places a generative AI workload into one of five scopes based on how you use the model — whether you consume someone else's application, build your own application on an existing model, or change or create the model itself. The scope tells you which security and governance responsibilities are yours; the further you move toward training your own model, the more you own.

ScopeHow the model is usedWhat the customer is responsible for
1 — Consumer appUsing a public generative AI service or appWhat your staff put into it, under the provider's consumer terms; usage policy and training
2 — Enterprise appUsing a third-party business application or SaaS with generative AI featuresChoosing the vendor and its contract and data terms; access and usage policy
3 — Pre-trained modelsBuilding your own application on an existing foundation model you do not change (for example on Amazon Bedrock), including RAGYour application, prompts, the data you send or retrieve, access control, output handling
4 — Fine-tuned modelsCustomizing a foundation model with your own dataEverything in Scope 3 plus the tuning data and the resulting custom model — its access, protection and behaviour
5 — Self-trained modelsTraining a model from scratch on data you collectEverything, including the pre-training data and the model itself

Two distinctions do most of the work. First, retrieval-augmented generation (RAG) does not change the model: adding your documents to prompts at query time keeps an application in Scope 3, whereas training the model's weights on your data (fine-tuning) moves it to Scope 4. Second, each step to a higher scope adds the responsibilities shown in its row on top of those you already carry. In every scope, AWS remains responsible for the underlying cloud infrastructure, as the shared responsibility model describes.

Example: governance for a regulated GenAI deployment

Here is how the pieces fit together for one deployment. A healthcare company deploys a generative AI assistant that answers staff questions from internal clinical documents, and it must satisfy regulators.

First it writes the policies: which data the assistant may use, who signs off before it goes live, a quarterly review cadence, and an extra review whenever the underlying model version changes. Before any patient data is processed, its legal team accepts the BAA in AWS Artifact. For data governance, patient data must stay in-country, so the team pins storage and inference to Regions in that country for residency (using a geographic inference profile only if its geography satisfies the rule), sets a multi-year retention rule enforced by an S3 Lifecycle configuration, and turns on Bedrock model invocation logging so prompts and responses can be reviewed. To scope the work, it uses the Generative AI Security Scoping Matrix: the assistant uses RAG over an unmodified foundation model, so it is Scope 3.

Then it wires up the AWS services. Because its AWS account is new, it cannot set up Audit Manager, so it deploys the AWS Config conformance pack for HIPAA Security, which continuously checks that data buckets stay encrypted and logging stays on and shows a compliance dashboard. AWS CloudTrail records every API call, including each model invocation, as the audit trail of who did what. Amazon Inspector scans its Lambda functions and container images for vulnerabilities, and AWS Artifact provides AWS's own SOC and ISO reports for the infrastructure layer. When the regulator arrives, the company can show the chain from regulation to control to evidence for each requirement — which is exactly what governance is meant to produce.

Tip. Expect scenario questions that hinge on which governance job a service does. Configuration state and compliance over time is AWS Config, and a ready-made framework rule set for a new account is a Config conformance pack; who called which API, including who invoked a Bedrock model, is AWS CloudTrail, while the prompt and response text come from Bedrock model invocation logging. Evidence collection against a framework is AWS Audit Manager for existing customers only; AWS's own reports and agreements such as the BAA are in AWS Artifact. Know Inspector's targets (EC2, ECR images, Lambda), Trusted Advisor versus the Well-Architected Tool, residency with geographic versus global inference profiles, S3 Lifecycle for retention, event-triggered reviews, and the five Scoping Matrix scopes, especially RAG (Scope 3) versus fine-tuning (Scope 4).

Key takeaways
  • Governance and compliance prove an AI system is run responsibly and meets the rules — think of the chain regulation to control to evidence, run continuously.
  • AWS Config tracks resource configuration and compliance over time (and conformance packs deploy a framework's rule set in one step); AWS CloudTrail records who called which API and when, including Amazon Bedrock model invocations.
  • AWS Audit Manager collects evidence against a framework for existing customers but has been closed to new accounts since 30 April 2026 — AWS points new users to AWS Config conformance packs. AWS Artifact provides AWS's own compliance reports and agreements such as the HIPAA BAA.
  • Amazon Inspector continually scans EC2 instances, ECR images and Lambda functions for known vulnerabilities and unintended network exposure; AWS Trusted Advisor runs automated account-wide best-practice checks, including service quotas, unlike the questionnaire-driven Well-Architected Tool.
  • Data-governance strategies cover lifecycles and retention (enforced with S3 Lifecycle rules), residency (geographic, not global, Bedrock inference profiles keep processing in a geography), and logging and monitoring.
  • CloudTrail shows who invoked a model; Bedrock model invocation logging captures the prompt and response; CloudWatch metrics show aggregate usage, latency and errors.
  • Governance processes include written policies, periodic plus event-triggered reviews, transparency standards, and team training requirements.
  • The Generative AI Security Scoping Matrix has five scopes — consumer app, enterprise app, pre-trained models, fine-tuned models, self-trained models; RAG on an unmodified model stays Scope 3, and fine-tuning moves you to Scope 4.

Frequently asked questions

What is the AWS Generative AI Security Scoping Matrix?

It is an AWS framework that places a generative AI workload into one of five scopes based on how you use the model: Scope 1 consumer apps, Scope 2 enterprise apps, Scope 3 pre-trained models (building your own application on an unchanged foundation model, including RAG), Scope 4 fine-tuned models, and Scope 5 self-trained models. The further you move toward training your own model, the more security and governance responsibility is yours — for example, Scope 4 adds the tuning data and the custom model, and Scope 5 adds the pre-training data. AWS stays responsible for the underlying infrastructure in every scope.

What is the difference between AWS Config and AWS CloudTrail?

They answer different governance questions. AWS Config records the configuration of your resources and whether that configuration stays compliant with your rules over time — it is about resource state. AWS CloudTrail records the API activity in your account: who made a call, which action, when, and from where — it is about actions taken and serves as your audit trail. A governance program uses both together: Config can tell you a bucket became non-compliant, and CloudTrail can tell you which API call changed it.

How does a company set up governance for a generative AI deployment on AWS?

Start with policies and a review cadence (periodic, plus reviews triggered by events such as a model version change), then set data-governance rules for residency, retention and lifecycle, and turn on logging of AI interactions. Use the Generative AI Security Scoping Matrix to scope your responsibility. Then wire up services: AWS Config rules or conformance packs to track that resources stay compliant, AWS CloudTrail for the audit trail of API activity, Amazon Inspector for vulnerabilities, and AWS Artifact for AWS's own compliance reports and agreements. Existing AWS Audit Manager customers can keep using it for evidence collection; new accounts cannot set it up since 30 April 2026. The result is a documented chain from each regulation to its control and evidence.

Which AWS service lets you download AWS's SOC 2 or ISO compliance report?

AWS Artifact. It is a self-service portal where you download AWS's compliance reports and certifications — including SOC 1, SOC 2, ISO and PCI — and review and accept agreements with AWS, such as the Business Associate Addendum (BAA) needed for HIPAA workloads. These documents show how AWS audits and certifies the infrastructure underneath your workload, the AWS side of the shared responsibility model. Do not confuse it with AWS Audit Manager, which collects evidence about your own environment.

What are the main data-governance strategies for AI systems?

The exam guide lists data lifecycles (stages from creation through archiving to deletion), retention (how long data is kept before deletion, often set by regulation), data residency (where data is stored and processed), and logging, monitoring and observation (recording activity and actively watching it). On AWS, S3 Lifecycle rules enforce lifecycle and retention, Region choice and geographic Amazon Bedrock inference profiles keep processing within a required geography, and CloudTrail plus Bedrock model invocation logging record AI interactions so you can detect issues and prove compliance.

Can I still use AWS Audit Manager for a new AWS account?

No. AWS Audit Manager entered maintenance mode and, from 30 April 2026, cannot be set up in new accounts, and existing customers cannot extend it to new Regions or organizations. Customers who already use it can continue as normal, including creating new assessments. For compliance monitoring in a new account, AWS recommends AWS Config conformance packs, which deploy a framework's rule set (for example HIPAA Security, PCI DSS or NIST) with a compliance dashboard. Some frameworks, such as SOC 2, have no AWS conformance pack template.

Does AWS CloudTrail record the prompts sent to Amazon Bedrock?

No. CloudTrail records Bedrock model calls such as InvokeModel and Converse as management events, capturing who made the call, which model, when and from where, but not the prompt or response text. To keep the content of AI interactions, turn on Amazon Bedrock model invocation logging, which delivers requests and responses to Amazon S3 and/or Amazon CloudWatch Logs. Bedrock's CloudWatch metrics add aggregate counts, latency and errors. CloudTrail answers who called which model and when; invocation logging answers what was sent and returned.

What is the difference between AWS Trusted Advisor and the AWS Well-Architected Tool?

AWS Trusted Advisor runs automated checks across the resources in your account and recommends fixes in categories such as cost optimization, performance, security, fault tolerance and service limits — no questionnaire needed. The AWS Well-Architected Tool is a guided self-review: you answer questions about one workload's design and it reports high- and medium-risk issues against the Well-Architected pillars. Every account gets Trusted Advisor's service-limit checks and core security checks; the full check set needs a Business-level or Enterprise-level Support plan.

Source

This lesson covers the "Security, Compliance, and Governance for AI Solutions" domain of the official AIF-C01 exam guide. Vendors revise their guides — check the source for the current version.

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?