Easy ReviewAIF-C01
Security, Compliance, and Governance for AI Solutions4

CloudTrail

Record AWS account activity, retain audit evidence, and trigger security alerts.

CloudTrail records supported account activity. Use Event history for recent management events, trails for ongoing delivery to S3, and log-based or event-based rules for alerts. The sections explain event selection, organization coverage, encryption, integrity validation and CloudTrail Lake for existing customers.

CloudTrail basics

AWS CloudTrail is the audit log of an AWS account: it records who did what, when and from where through the console, CLI, SDKs and APIs.

How it works

  1. A user, role or AWS service calls an AWS APIAn interface through which software requests an action from a service..
  2. CloudTrail records the call as an event with the identity, time and source.
  3. Event history keeps 90 days of management events; a trail stores events in an S3 bucket for as long as you need.

Exam cues

  • If the question says who made a change or which API call happened, think CloudTrail, because it records account activity.
  • If the question says keep the activity log for years, think a CloudTrail trail to S3, because Event history keeps only 90 days.

Remember

  • Event history: 90 days of management events, free.
  • Trails store events in S3.

Trap: CloudTrail answers who did what. CloudWatch answers how resources perform, and AWS Config answers how a resource was configured over time.

From the AWS docs (7)
  • AWS CloudTrail records actions taken by users, roles and AWS services as events, whether they come from the console, the CLI, SDKs or APIs, to support auditing, governance and compliance.
  • Event history shows the last 90 days of management events in a Region, is on by default and costs nothing to view.
  • A trail delivers events to an Amazon S3 bucket for longer storage, optionally also to CloudWatch Logs and EventBridge.
  • CloudTrail Insights learns a baseline from past API activity and emits events when call or error rates depart from it.
  • Management API call-rate Insights require write management events and Insights enabled on the trail or source event data store.
  • Management API error-rate Insights require read or write management events, or both, with Insights enabled.
  • Insights logging is disabled by default and incurs additional charges when enabled.

Flashcards

tap to flip
Answer

·

All 4 cards as a list

An auditor asks who deleted an S3 bucket yesterday in an AWS account. Which service answers it?

AWS CloudTrail, which records API calls with the identity, time and source of each action.

How far back can AWS CloudTrail Event history show management events without any setup?

90 days, per Region, at no charge. Keeping events longer needs a trail to an S3 bucket.

Does Amazon CloudWatch or AWS CloudTrail record which IAM user called an AWS API?

AWS CloudTrail. CloudWatch monitors metrics and logs about resource performance.

What does CloudTrail Insights detect, and which management events must be recorded first?

Call-rate or error-rate deviations from a learned baseline. Management call-rate Insights need write events; error-rate Insights need read or write events, or both. Enable Insights explicitly.

You finished every topic of AIF-C01!

Your badge turned gold. Next step: book the exam on AWS. Once you pass, add yourself to Who passed.

Share

Share that you finished this certification

I finished every topic of AWS Certified AI Practitioner (AIF-C01) on Easy Review. Come study too!