Domain 3 of the AIF-C01 exam focuses on using AI responsibly and securely, and a massive part of that is being able to prove you're doing it right. This chapter breaks down the three AWS tools you need to know for governance and auditability: AWS Audit Manager, CloudTrail, and Config, explaining how they work together to keep your AI systems honest and your exam answers correct.
Jump to a section
A simple way to picture AWS Tools for Governance and Auditability
Have you ever wondered who makes sure that an AI model's decisions aren't secretly biased, or that it hasn't started making things up?
Think about a busy restaurant kitchen that serves hundreds of customers every day. The head chef (the AI model) creates amazing dishes (predictions and decisions), but who makes sure the kitchen is clean, the recipes are followed, and no one is cutting corners? That's where the health inspector comes in. In the world of AI, especially when you're using it on AWS, you need a set of tools that act like that health inspector.
AWS Audit Manager is like the health inspector who shows up with a pre-printed checklist of all the rules the kitchen must follow. They don't guess what the rules are; they have a standardised form from the local government (your company's compliance requirements). They walk through, checking off items like 'meat stored at correct temperature' (your data is encrypted) and 'hand-washing sink available' (access logs exist).
AWS CloudTrail is like the restaurant's security camera system that records every single person who enters the kitchen, what door they used, and exactly what they touched. If a batch of soup tastes wrong, you don't have to accuse anyone; you just rewind the footage to see who added the salt and when.
AWS Config is like the restaurant's master recipe book that constantly checks that every dish being made matches the approved, updated recipe. If someone tries to use a 'secret ingredient' that isn't on the approved list (like an unauthorised change to a server), Config rings an alarm. Together, these three tools let you run your AI kitchen confidently, knowing that the food is safe, the recipe is correct, and you have the footage to prove it.
When you build an AI application on AWS, you're not just responsible for the code. You are responsible for proving that the AI is fair, secure, and compliant with regulations. This is called 'governance' (the rules and processes you follow) and 'auditability' (the ability to prove you followed those rules). AWS provides three core services to handle this, and the AIF-C01 exam loves to test if you know which one does what.
Let's define the key terms first. 'Governance' is the framework of policies and controls you put in place. Think of it as the rulebook. 'Auditability' is the ability to produce a verifiable record of what happened. Think of it as the game replay. A 'compliance framework' is a set of standardised rules from an outside body, like HIPAA for health data or GDPR for personal data in Europe.
Now, meet the three tools.
AWS CloudTrail is the service that records every action taken by a user, role, or AWS service. It is the 'who', 'what', 'when', and 'from where' of every API call. An 'API call' is just a request to an AWS service to do something, like 'launch a server' or 'store a file'. CloudTrail logs every single one of these calls and stores the record in a file called a 'trail' or in an 'event history' (which shows the last 90 days of events). For AI governance, this is critical. If an AI model suddenly starts making bad predictions, CloudTrail can tell you if someone accidentally changed the model's training dataset or turned off a safety flag. It is the bedrock of auditability.
AWS Config is a service that tracks changes to your AWS resource configurations and evaluates those changes against your desired rules. A 'resource' is anything you create in AWS, like a virtual server (EC2 instance), a storage bucket (S3 bucket), or a database. 'Configuration' means the settings of that resource, like who can access it or what security it has. Config lets you write 'rules' (called Config rules) that say things like 'My S3 buckets must not be publicly accessible' or 'My Lambda functions must use a specific logging policy'. If any resource changes and breaks that rule, Config flags it. For AI governance, this is how you ensure the infrastructure your AI runs on stays secure and compliant over time. If someone accidentally makes an S3 bucket (full of training data) public, Config will raise a non-compliance flag.
AWS Audit Manager is a service that helps you continuously audit your AWS usage to prepare for external assessments. An 'audit' is a formal inspection of your systems and processes. Audit Manager provides pre-built frameworks (like for HIPAA or GDPR) that contain a list of 'controls'. A control is a specific requirement, like 'Data must be encrypted at rest'. Audit Manager automatically collects evidence from CloudTrail and Config to prove whether that control is being met. This saves you from manually hunting through log files. For AI, this is the tool you use when a regulator asks for a full report on how you govern your AI systems. Audit Manager gathers the evidence automatically in one place.
These three services work together in a stack. CloudTrail provides the raw event logs (the 'what happened'). Config provides the configuration snapshots and compliance checks (the 'what is the state of things'). Audit Manager orchestrates the audit process and pulls evidence from both CloudTrail and Config (the 'are we compliant with the rulebook').
Why is this relevant to a complete beginner? Because when you build or use AI on AWS, you are often working with sensitive data (like customer emails or medical records). You need to prove that you haven't misused that data. These three tools give you the proof. On the exam, you'll get questions that describe a scenario (e.g., 'A company needs to prove that no one accessed a dataset containing customer names after February 1st') and ask which tool to use. The answer is almost always CloudTrail. Another scenario might describe needing to check that all S3 buckets have logging enabled, and the answer is Config. A third scenario might describe preparing for a yearly compliance audit, and the answer is Audit Manager.
Let's look at a concrete example with an AI model. Imagine you built a model that approves or denies loan applications. A regulator asks for proof that the model's training data wasn't biased against a specific demographic group. The question is: did anyone accidentally (or intentionally) add a column of data that contained sensitive attributes like postcode or ethnicity? - You use CloudTrail to see who added data to the training dataset S3 bucket and when. - You use Config to check if the S3 bucket ever became publicly accessible. - You use Audit Manager to generate a full report showing that your controls around data provenance and access were working.
This is the foundation of AI governance in the cloud. You don't have to be a security expert to understand it, but you do need to know the specific jobs of CloudTrail, Config, and Audit Manager. They are the record keeper, the inspector, and the auditor, respectively.
A large healthcare company called 'MediPredict' has built an AI system to predict patient readmission risks. The system uses a machine learning model trained on 10 years of patient records, which are stored in Amazon S3 buckets. The model runs on serverless functions (AWS Lambda), and the entire application is configured using infrastructure as code (AWS CloudFormation). The company must comply with HIPAA, a strict US healthcare privacy law.
The IT Operations team, led by Sarah, is responsible for proving to an external auditor that the system is secure and that patient data was never exposed. Here is how she uses the three tools step by step.
First, Sarah needs to set up a baseline. She enables AWS CloudTrail across all AWS Regions and creates a new 'trail' that logs all data events for the S3 buckets containing patient data. 'Data events' are logs that record every time an object inside the bucket is accessed or modified, not just when the bucket itself is changed. This is more detailed and costs more, but for healthcare data, it is mandatory. She also enables CloudTrail Insights, which automatically analyses the logs to detect unusual activity, like a user downloading thousands of patient records at 3 AM.
Second, she configures AWS Config. She enables Config recorder for all resources in the account. She then activates two managed Config rules: 's3-bucket-public-read-prohibited' (to ensure no bucket containing data is ever public) and 'lambda-function-public-access-prohibited' (to ensure the AI model's function can't be invoked by just anyone on the internet). She also sets up a custom Config rule that checks a specific tag (like 'Environment: Production') is present on all resources used for the AI model, to prevent accidental use of non-compliant resources. Config now continuously evaluates all resources every few minutes. If a developer accidentally changes the S3 bucket policy to allow public access, Config marks that bucket as non-compliant within minutes and sends an alert via AWS SNS (Simple Notification Service).
Third, she prepares for the actual audit. She opens AWS Audit Manager and selects the 'HIPAA' pre-built framework. This framework contains hundreds of controls. Audit Manager automatically maps evidence from CloudTrail and Config to these controls. For example, the control 'Data Access Logging' automatically pulls the relevant CloudTrail log entries that show who accessed the patient data. The control 'Configuration Changes' pulls Config snapshots showing that no bucket policies were changed without authorisation. Audit Manager then generates a 'reports' folder containing all the evidence neatly organised by control. When the external auditor requests evidence, Sarah can share a read-only link to the Audit Manager dashboard.
The real work for Sarah doesn't stop. She needs to review the Audit Manager reports weekly. She looks for controls that are marked as 'Non-compliant'. If she finds one, she must remediate the issue (e.g., fix the S3 bucket policy) and then ask Audit Manager to 're-collect evidence' to prove the fix worked. This is a continuous cycle. She also integrates these tools with AWS Security Hub, which provides a single pane of glass for all security alerts, including those from Config and CloudTrail Insights.
On a daily basis, Sarah doesn't look at raw CloudTrail log files. She uses Amazon Athena (a query service) to run SQL queries directly against the CloudTrail logs to answer specific questions like 'Who deleted the AI model's endpoint last Tuesday?'. For Config, she uses the AWS Config dashboard to see a timeline of every change made to any resource in the AI pipeline, from the S3 training data bucket to the Lambda function that serves predictions.
This real-world workflow is exactly what the AIF-C01 exam expects you to understand: not just what each service does in isolation, but how they fit together in a realistic business context to solve a governance problem.
The AIF-C01 exam tests your knowledge of AWS governance tools in a very specific way. It does not ask you to configure them in depth. Instead, it presents you with a scenario and asks you to choose the correct service. The exam loves to set traps where you confuse the primary function of CloudTrail, Config, and Audit Manager. Here is exactly what you need to focus on.
First, understand the primary purpose of each service as a single sentence. - CloudTrail: Records API activity (who did what, when, and where). - Config: Records resource configuration changes and evaluates them against rules. - Audit Manager: Automates compliance audits by collecting evidence from CloudTrail and Config.
The exam questions will give you a scenario and then list these three services plus one distractor (like AWS GuardDuty, which is for threat detection, or AWS Artifact, which is for on-demand compliance reports). You must pick the correct one.
Here are the common question types and traps.
Question Type 1: The 'Who Accessed What' Question. Scenario: 'A company needs to determine which IAM user accessed a sensitive S3 bucket containing AI training data on a specific date.' Trap: The exam might offer 'AWS Config' as an option because you 'configure' S3 buckets. Correct Answer: CloudTrail. Config does not log individual data accesses like reading an object; it only logs changes to the bucket's configuration itself. CloudTrail (specifically with data events enabled) logs the actual read/write of objects.
Question Type 2: The 'Configuration Drift' Question. Scenario: 'An AI model's EC2 instance security group was modified, opening a port to the public. The team needs to be alerted when their security groups deviate from the secure baseline.' Trap: The exam might offer 'CloudTrail' because a change was made (an API call). Correct Answer: AWS Config. CloudTrail would tell you who made the change, but Config is the service that has the rule to say 'security groups must not have port 22 open to 0.0.0.0/0' and flags it as non-compliant.
Question Type 3: The 'Audit Preparation' Question. Scenario: 'A company is preparing for a SOC 2 audit and needs to automatically collect evidence showing that their AI workloads meet specific security controls.' Trap: The exam might offer 'AWS Artifact' because it provides compliance reports. However, Artifact provides pre-built reports from AWS, not your own evidence collection. Correct Answer: AWS Audit Manager. It allows you to define controls and automatically gather evidence from your own AWS environment.
Question Type 4: The 'Multi-Service' Question. Scenario: 'A company needs to know who modified a resource AND ensure that the resource now meets a compliance rule.' Trap: This is a trick to see if you know both services are needed. Correct Answer: Both CloudTrail (to find the user) and Config (to check the rule). The exam might offer an answer that only mentions one service. You need to recognise when the scenario requires two services.
Question Type 5: The 'Logging vs Monitoring' Distinction. Scenario: 'A company needs a historical record of all API calls made in their AWS account for the last 7 years.' Trap: The options might include 'Amazon CloudWatch Logs'. Correct Answer: CloudTrail. CloudWatch Logs is for application and system logs, not API calls. CloudTrail is the API audit log.
Key definitions to memorise for the exam:
'Event' in CloudTrail: A record of an activity in an AWS account. Includes management events (creating resources) and data events (accessing objects).
'Configuration Item' in Config: A record of the state of a resource at a point in time.
'Control' in Audit Manager: A standard or rule that must be followed.
'Evidence' in Audit Manager: The proof (a log, a snapshot) that a control is being met.
The exam will not ask you about specific Audit Manager frameworks (like HIPAA vs PCI) by name, but you should know that Audit Manager 'provides pre-built frameworks for common compliance standards'. Finally, remember that Config is proactive (checks rules), CloudTrail is reactive (records events after they happen), and Audit Manager is organisational (pulls everything together for an audit). This mental model will get you through the exam questions.
AWS CloudTrail records every API call made in your account, giving you a complete audit trail of who did what and when.
AWS Config tracks changes to your resource configurations and evaluates them against rules to detect non-compliance.
AWS Audit Manager automates the collection of evidence from CloudTrail and Config to prepare for external compliance audits.
CloudTrail logs management events (resource creation/deletion) by default and data events (object access) when you specifically enable them.
Config rules can be AWS-managed or custom, and they check things like whether encryption is enabled on S3 buckets or security groups are too permissive.
Audit Manager uses pre-built frameworks (like HIPAA, GDPR, SOC 2) to map your AWS resources to specific compliance controls.
CloudTrail's default event history only stores 90 days of events, but you can create a trail to store logs indefinitely in S3.
Config does not automatically fix problems; it only detects and reports them unless you configure auto-remediation separately.
Mistake
AWS Config records every time someone reads a file from an S3 bucket.
Correct
AWS Config only records changes to the S3 bucket's configuration (e.g., who can access it, its encryption settings). It does not log who reads or writes objects inside the bucket. That is a CloudTrail data event.
The word 'config' sounds like 'configuration' and 'configure', making beginners think it logs all activity related to an object's configuration, including access.
Mistake
AWS Audit Manager is a security tool that actively blocks bad actions.
Correct
Audit Manager is a reporting and evidence collection tool. It does not stop actions; it just documents whether they comply with rules. It relies on CloudTrail and Config for the data it reports.
The term 'manager' implies it manages or controls things, leading beginners to think it has active enforcement capabilities like a firewall.
Mistake
CloudTrail only records logs for 90 days and then they are gone forever.
Correct
CloudTrail's default event history shows 90 days, but you can create a 'trail' that delivers logs to an S3 bucket for permanent storage as long as you want (paying for storage). You can also set up CloudTrail Lake for long-term analytics.
Beginners often see the 90-day limit in the console and assume it is a hard cap, not realising that the 'trail' feature is for long-term retention.
Mistake
AWS Config automatically fixes any resource that is non-compliant.
Correct
Config only detects and reports non-compliance. To automatically fix it, you must set up an 'auto-remediation' action (like an AWS Systems Manager automation document) that Config triggers. By itself, Config just flags the issue.
The word 'config' plus non-compliance alerts makes people assume it has a built-in fix-it feature, but it is primarily a detection tool.
Mistake
You only need one of these three tools for governance.
Correct
Governance in AWS requires all three working together: CloudTrail for the audit trail of actions, Config for configuration compliance, and Audit Manager for organising evidence into reports for auditors.
New learners want one 'silver bullet' service, not understanding that governance is a layered approach, similar to needing both a security camera and a security guard.
You've finished AWS Tools for Governance and Auditability. Continue through the AIF-C01 study guide to build a complete picture of the exam.
Done with this chapter?