Training / Certifications / AWS Cloud Practitioner / Logging, Auditing and Compliance

AWS Cloud Practitioner (CLF-C02) · Lesson 15 of 26

Logging, Auditing and Compliance

Tell apart AWS CloudTrail (who did what), Amazon CloudWatch (monitoring) and AWS Config (configuration history and compliance), use IAM access reports, find AWS compliance reports and agreements in AWS Artifact, and describe how AWS Organizations, service control policies and AWS Control Tower govern many accounts.

Domain 2: Security and Compliance (30%)Task 2.2, 4.2About 5:51CaptionsStatic view for reduced motion
Lesson 15: Logging, Auditing and Compliance Illustrative example: names and values are samples 1. Logs and monitoringWho did what: AWS CloudTrailHow it runs: Amazon CloudWatchWhat changed: AWS Config2. Compliance and governanceReports: AWS ArtifactMany accounts: OrganizationsLanding zone: Control TowerDomain 2, Task 2.2 (Organizations also appears in Task 4.2)AWS CloudTrailWho did what, when?API calls and eventsAmazon CloudWatchHow is it running?Metrics, logs, alarmsAWS ConfigWhat changed? Compliant?Resource settings over timeThree cameras on the store: CloudTrail watches people,CloudWatch watches performance, Config watches settingsDev role: SamTerminateInstancesEC2 instanceCloudTrail eventWho: role Dev, user SamWhat: TerminateInstancesWhen: 2026-11-27 22:14From: IP 203.0.113.7Event history: on by default,last 90 days of management eventsCreate a trail to keep eventslonger, in an S3 bucketCloudTrail = the audit log of actions in your AWS accountWeb server CPU %alarm threshold 80%CloudWatch alarm: ALARMSend a notificationAdd a server (Auto Scaling)Or stop, reboot, recoverMetrics: CPU, requests, errorsLogs: collect, store, searchDashboards: one view of it allCloudWatch = monitoring: metrics, logs, alarms and dashboards(performance and health, not who made a change)Configuration history of security group web-sgMonPort 443 open to allcompliantWed+ Port 22 open to allNONCOMPLIANTThuPort 22 removedcompliantConfig rule“No security group allows port 22from anywhere”Config tells youSettings at any point in timeWhich rules each resource breaksConfig = configuration history + compliance rules.It records and evaluates; it doesn't block the changeIAM credential reporta CSV file for the accountadminMFA: yessamkey age: 400 daysci-botMFA: noLast accessed infoper user, role or policyRole StoreApp:Amazon S3: used yesterdayAmazon SQS: never usedUnused? Remove it: least privilegeAccess reports: who has which credentials,and which permissions are really usedAWS Artifactfree, on demand,in the consoleReportsSOC 1, 2, 3PCI DSSISO certificationsAgreementsBAA (for HIPAA)NDAaccept for the orgRules depend on industry and country:HIPAAUS health dataPCI DSScard paymentsGDPREU personal dataFedRAMPUS governmentAWS Artifact = AWS's own audit reports and agreements.Check “Services in Scope” per program: not every service isManagement accountone bill for all accountsOU: Productionshop-prodshop-dataOU: Sandboxdev-samdev-leeSCP on Sandbox OUDeny: launch GPU instancesAn SCP sets the maximum permissions for accounts below it.It never grants access: IAM policies still do thatAWS Control Towersets up a landing zone:a governed multi-accountenvironment, built onAWS OrganizationsControls (also called guardrails)Preventivestop it happeningSCPsDetectivespot it afterAWS Config rulesProactivecheck before deployCloudFormation hooksAccount Factory: new accounts from a templateMany accounts, set up fast and governed the same way:think AWS Control TowerIf the question says……think“Who deleted the instance? Audit API calls”AWS CloudTrail“Alarm when CPU is high; collect logs”Amazon CloudWatch“Configuration history; rule compliance”AWS Config“List users and the status of their MFA”IAM credential report“Download AWS SOC or PCI reports; BAA”AWS Artifact“Limit what member accounts can do”SCPs in Organizations“Set up a governed multi-account setup”AWS Control TowerLogs and monitoringCloudTrail: who did whatCloudWatch: metrics, logs, alarmsConfig: settings history + rulesAccess reports: credentialsand permissions actually usedCompliance and governanceArtifact: AWS reports andagreements (BAA)Organizations: one bill, OUsSCPs: maximum permissionsControl Tower: landing zoneCloudTrail = who, CloudWatch = how it runs,Config = what changed

Tip: turn your phone sideways or use full screen for larger labels.

Captions match the narration word for word. Press Space to play or pause and the arrow keys to change scenes.

Learning objective

Tell apart AWS CloudTrail (who did what), Amazon CloudWatch (monitoring) and AWS Config (configuration history and compliance), use IAM access reports, find AWS compliance reports and agreements in AWS Artifact, and describe how AWS Organizations, service control policies and AWS Control Tower govern many accounts.

Exam mapping

Domain 2: Security and Compliance (30%). Task statement 2.2, 4.2 in the official exam guide.

Key takeaways

  • AWS CloudTrail records actions in an account (console, CLI, SDK and AWS service API calls) as events: who did what, when and from where. Event history keeps 90 days of management events at no charge; a trail delivers events to an S3 bucket for longer retention.
  • Amazon CloudWatch monitors resources and applications: metrics, logs, alarms that notify or take automated actions when a threshold is crossed, and dashboards.
  • AWS Config records resource configuration history and evaluates resources against Config rules, marking them compliant or noncompliant; it doesn't block changes.
  • Access reports support audits: the IAM credential report lists every IAM user and the status of their passwords, access keys and MFA devices; last accessed information shows which services an identity actually uses.
  • AWS Artifact gives on-demand access to AWS's own compliance reports (SOC, PCI, ISO) and agreements such as the Business Associate Addendum (BAA); compliance needs vary by industry, country and AWS service.
  • AWS Organizations manages multiple accounts with consolidated billing and service control policies (SCPs), which set maximum permissions and never grant them; AWS Control Tower sets up a governed multi-account landing zone with preventive, detective and proactive controls.

Exam tips

How the exam asks about this

Questions describe a situation and expect you to recognize the concept behind it.

If the question mentions…Think
Find out which user deleted an S3 bucket or terminated an instanceAWS CloudTrail
Alarm and automatic action when a metric crosses a thresholdAmazon CloudWatch
See how a resource was configured last week and whether it meets a ruleAWS Config
Download AWS SOC 2 or PCI DSS reports for an auditorAWS Artifact
Prevent all accounts in an OU from using a service, even administratorsService control policies (AWS Organizations)
Quickly set up a secure, governed multi-account environmentAWS Control Tower

Common traps

  • CloudTrail vs. CloudWatch vs. Config: CloudTrail = who made an API call; CloudWatch = performance metrics, logs and alarms; Config = what a resource's settings were and whether they comply.
  • SCPs don't grant permissions. They set the maximum, and users still need IAM policies. SCPs also don't affect the management account.
  • AWS Artifact holds AWS's compliance reports, not your own. Checking your resources against rules is AWS Config (or Security Hub), not Artifact.
  • AWS Config detects and reports noncompliant settings; it doesn't prevent the change. Preventing actions across accounts is the job of SCPs (or Control Tower preventive controls).

Practice

Exam-style questions

Answer each one before you open the explanation.

Question 1. An EC2 instance was terminated overnight, and the operations team needs to find out which IAM identity terminated it and from which IP address. Which AWS service provides this information?

  1. Amazon CloudWatch
  2. AWS CloudTrail
  3. AWS Config
  4. AWS Trusted Advisor
Show answer

B. AWS CloudTrail. CloudTrail records API calls such as TerminateInstances as events, including the identity, time and source IP address. CloudWatch is tempting because it also monitors EC2, but it tracks metrics, logs and alarms, not who made a call. Config records how resource settings changed, and Trusted Advisor gives best-practice recommendations.

Question 2. A company must show auditors how its security groups were configured over the past six months and whether they followed an internal rule that blocks SSH from the internet. Which service should it use?

  1. AWS Artifact
  2. Amazon Inspector
  3. Amazon CloudWatch
  4. AWS Config
Show answer

D. AWS Config. AWS Config records configuration history for resources and evaluates them against Config rules, marking each resource compliant or noncompliant. Artifact is tempting because it's about compliance, but it provides AWS's own audit reports, not your resource settings. Inspector scans for vulnerabilities, and CloudWatch monitors metrics and logs.

Question 3. A healthcare startup needs to review AWS's SOC 2 report and accept a Business Associate Addendum (BAA) with AWS. Where can it do both?

  1. AWS Artifact
  2. AWS Security Hub
  3. AWS Organizations
  4. AWS Audit Manager
  5. AWS Config
Show answer

A. AWS Artifact. AWS Artifact gives on-demand access to AWS compliance reports such as SOC and PCI, and lets accounts or organizations accept agreements such as the BAA. Audit Manager is tempting because it helps prepare for audits, but it collects evidence about your own AWS usage rather than providing AWS's reports and agreements. Security Hub, Organizations and Config don't hold AWS's audit reports.

Question 4. A company uses AWS Organizations. It wants to make sure that no one in the accounts in its Sandbox organizational unit can launch GPU instance types, even users with administrator permissions. What should it use? (Select TWO.)

  1. An IAM credential report
  2. A service control policy (SCP)
  3. An Amazon CloudWatch alarm
  4. AWS Artifact agreements
  5. AWS Control Tower preventive controls
Show answer

B. A service control policy (SCP) and E. AWS Control Tower preventive controls. An SCP attached to the OU sets the maximum permissions for its accounts, so a Deny for GPU instance types applies even to administrators. Control Tower preventive controls are implemented with SCPs and do the same in a governed landing zone. A CloudWatch alarm is tempting, but it can only react after usage appears; it doesn't prevent the launch. Credential reports and Artifact agreements don't restrict actions.

Question 5. A security auditor asks for a list of all IAM users in an account, showing whether each user has MFA enabled and when their access keys were last rotated. What is the simplest way to provide it?

  1. Create a CloudTrail trail
  2. Run an Amazon Inspector scan
  3. Generate an IAM credential report
  4. Turn on AWS Config
Show answer

C. Generate an IAM credential report. The IAM credential report is a downloadable file listing every IAM user and the status of their credentials, including passwords, access keys and MFA devices. A CloudTrail trail is tempting because it's used for auditing, but it records actions, not a current inventory of each user's credentials. Inspector scans workloads for vulnerabilities, and Config tracks resource configurations.

Transcript

Lesson transcript

The full narration, scene by scene. The captions file contains the same text with timings.

Scene 1 · 0:00

Lesson 15: Logging, auditing and compliance. Welcome back. Last time we set alarms that detect threats. Today we answer the questions an auditor asks. First, logs and monitoring: AWS CloudTrail, Amazon CloudWatch and AWS Config, plus IAM access reports. Second, compliance and governance: where to get AWS compliance reports with AWS Artifact, and how AWS Organizations, service control policies and AWS Control Tower keep many accounts in line. This is Domain 2, Task 2.2.

Scene 2 · 0:30

Three cameras on the store. Picture three cameras pointed at our online store, each watching something different. CloudTrail watches people: who did what, and when. CloudWatch watches performance: is the website healthy, are servers busy, are errors rising? And Config watches settings: what changed in a resource's configuration, and does it still follow our rules? The exam tests this trio more than almost anything else in this domain, so let's look at each camera.

Scene 3 · 1:00

AWS CloudTrail. AWS CloudTrail records actions in your account as events: calls made from the console, the command line, the SDKs and other AWS services. Say an EC2 instance in the store disappears overnight. CloudTrail shows who terminated it, when, and from which IP address. Event history is on by default and keeps the last 90 days of management events for free. To keep events longer, create a trail that delivers them to an S3 bucket.

Scene 4 · 1:32

Amazon CloudWatch. Amazon CloudWatch is the monitoring service. Many AWS services send it metrics automatically, such as the CPU use of the store's web server. An alarm watches a metric against a threshold, here 80 percent. When the alarm goes off, it can send a notification, add servers through Auto Scaling, or stop, reboot or recover an instance. CloudWatch also collects and searches logs, and dashboards show everything in one view. It tells you how things run, not who changed them.

Scene 5 · 2:06

AWS Config. AWS Config records the configuration of your resources over time. Here is the history of the store's security group. On Monday only port 443 is open. On Wednesday someone opens port 22 to the whole internet. A Config rule says no security group may do that, so Config marks the group noncompliant until the port is removed on Thursday. Remember: Config records and evaluates; it doesn't stop the change. CloudTrail would show who made it.

Scene 6 · 2:38

Access reports. The exam guide also mentions access reports. The IAM credential report is a downloadable file that lists every IAM user in the account and the status of their credentials: passwords, access keys and MFA devices. Auditors love it, because it shows old keys and users without MFA. Last accessed information shows which services a user, role or policy has actually used. If the store's app role never touches a service, remove that permission: least privilege.

Scene 7 · 3:11

AWS Artifact and compliance. Now compliance. When an auditor asks for proof that AWS's data centers are secure, go to AWS Artifact. It gives on-demand access to AWS's own audit reports, such as SOC and PCI reports and ISO certifications, and to agreements like the Business Associate Addendum for HIPAA. Rules vary by industry and country: HIPAA for US health data, PCI DSS for card payments, GDPR for EU personal data. And not every AWS service is in scope for every program, so check.

Scene 8 · 3:46

AWS Organizations and SCPs. As the store grows, it uses several AWS accounts. AWS Organizations groups them under one management account, which pays a single consolidated bill. Accounts sit in organizational units, or OUs. A service control policy, or SCP, attached to an OU sets the maximum permissions for every account below it. Here, the Sandbox OU can't launch expensive GPU instances, even for an administrator. But an SCP never grants access; IAM policies still do that.

Scene 9 · 4:17

AWS Control Tower. Setting all of that up by hand takes time. AWS Control Tower does it for you. It builds a landing zone: a well-architected, multi-account environment on top of AWS Organizations, following AWS best practices. It applies controls, also called guardrails. Preventive controls stop actions, using SCPs. Detective controls spot problems after the fact, using AWS Config rules. Proactive controls check resources before CloudFormation deploys them. Account Factory creates new accounts from a template.

Scene 10 · 4:49

How the exam asks about this. Here's how the exam asks about this. Who deleted a resource, or auditing API calls: CloudTrail. An alarm when CPU is high, or collecting logs: CloudWatch. Configuration history and rule compliance: Config. A list of users and their MFA status: the IAM credential report. Downloading AWS SOC or PCI reports, or accepting a BAA: Artifact. Limiting what member accounts can do: SCPs in Organizations. A governed multi-account setup: Control Tower.

Scene 11 · 5:20

Recap: logging, auditing and compliance. To recap: CloudTrail records who did what, CloudWatch monitors metrics and logs and raises alarms, and Config tracks configuration history and checks it against rules. Access reports show credentials and the permissions really used. AWS Artifact provides AWS's compliance reports and agreements. Organizations gives one bill and SCPs that cap permissions, and Control Tower sets up a governed landing zone. Next, we move to Domain 3 and launch servers with Amazon EC2.

Download captions (WebVTT)

Sources and accuracy

Checked against AWS documentation and the official CLF-C02 exam guide on October 18, 2026. AWS changes often, so confirm details in the current documentation. Diagrams and numbers in the animation are illustrative.

This free course is independent and isn't affiliated with or endorsed by Amazon Web Services. AWS and AWS Certified Cloud Practitioner are trademarks of Amazon.com, Inc. or its affiliates.

Preparing a team for AWS certification?

I run hands-on AWS training for teams, from Cloud Practitioner basics to architecture, built around your own environment.