AWS CloudTrail

The audit ledger of AWS — records every API call made against your account as an event, answering "who did what, where, and when." CloudTrail itself does not analyze or judge that activity; analysis is layered on top via Insights (statistical anomalies), GuardDuty (broad ML threat detection), or your own queries.

Detective — raw activity record Compliance — audit trail Governance
90 days
Default Event History (no trail needed)
~15 min
Typical trail log delivery latency
May 31 2026
Lake closes to NEW customers
4
Event types: mgmt/data/network/insights

How CloudTrail Actually Works

The Core Mechanism — A Record, Not a Judgment
⚠️ The Recurring Exam Theme

CloudTrail questions almost always test one of three things: (1) which event type (management/data/network activity/Insights) actually captures the described scenario, (2) can you distinguish CloudTrail Insights' narrow, statistical, rate/volume-based anomaly detection from GuardDuty's broad ML-based threat detection, and (3) do you know the service's current direction — CloudTrail Lake is closing to new customers (May 31, 2026), with AWS steering new analytics workloads toward CloudWatch.

Exam Domain Mapping

DomainWhere CloudTrail Shows Up
Security Logging & MonitoringThe centerpiece — event types, trails, log integrity, encryption, CloudWatch Logs integration
Threat Detection & Incident ResponseInsights anomaly detection, the source data underlying GuardDuty/Detective
Management & Security GovernanceOrganization trails, multi-account/region log aggregation, audit evidence
Infrastructure SecurityNetwork activity events for VPC endpoints — data perimeter visibility

Decision Tree — Mental Model

Threat

Unauthorized or unexplained API activity; need to answer "who did this, when, from where"; unusual spikes in API call volume; potential data exfiltration through a VPC endpoint

Security Goal

A complete, tamper-evident, queryable record of account activity — for audit, investigation, and as the raw input to higher-level detection services

AWS Service

AWS CloudTrail

Management events (control plane) Data events (object/record level) Network activity events (VPC endpoints) Insights (statistical anomalies)
Implementation

Create an organization trail with log file validation and KMS encryption. Opt into data/network activity events for sensitive resources. Send to CloudWatch Logs for real-time alerting.

Monitoring

CloudWatch metric filters/alarms on log patterns; Insights for rate/volume anomalies; GuardDuty consumes the same data for broader ML-based threat detection.

Remediation

CloudTrail itself takes no action — alarms/events drive EventBridge → Lambda/SSM Automation for actual response.

Final Summary

Must Memorize
  • 4 event types: management (default on), data (opt-in), network activity (opt-in, VPC endpoints), Insights (anomaly detection)
  • 90-day Event History is free and automatic, no trail required
  • Insights = statistical rate/volume anomaly detection, NOT broad ML threat detection (that's GuardDuty)
  • CloudTrail Lake is closing to new customers May 31, 2026 — existing customers unaffected
Must Understand
  • Why data/network activity events are opt-in (volume/cost), unlike management events
  • How network activity events close the "VPC endpoint denied-access" visibility gap
  • The distinction triangle: CloudTrail (raw record) vs CloudTrail Insights (statistical anomaly) vs GuardDuty (ML threat detection)
Can De-prioritize
  • Exact dollar pricing per event type
  • Console UI navigation specifics
  • Full list of every CloudTrail Lake pre-built dashboard

Exam appearance probability: HIGH

Event Types & Insights

Each event type has a different default state, cost profile, and use case — this mapping is the single most tested CloudTrail detail.

2.1 Management Events Default on
WhatControl-plane actions — e.g. creating/deleting an S3 bucket, modifying a security group, creating an IAM role
DefaultLogged by default when creating a trail or event data store
2.2 Data Events Opt-in
WhatData-plane actions — e.g. S3 GetObject/PutObject, Lambda Invoke, DynamoDB item-level operations
DefaultNOT logged by default — must be explicitly enabled due to high volume/cost
2.3 Network Activity Events (VPC Endpoints) High — GA Feb 2025
WhatAPI calls (both control-plane and data-plane) that traverse a VPC endpoint from a private VPC to an AWS service
DefaultNOT logged by default — explicitly opt-in per service
Supported servicesS3, EC2, KMS, Secrets Manager, CloudTrail (expanding over time)
2.4 CloudTrail Insights High-trap, recently expanded
WhatContinuously analyzes management API call volume to detect unusual patterns — e.g. spikes in resource provisioning, bursts of IAM actions, unusual error rates
MechanismStatistical baseline of normal API call RATE/VOLUME for your account; deviations generate Insights events
Recent expansion (Nov 2025)Insights now also supports DATA EVENTS, with event aggregation — previously limited mostly to management event rate anomalies
2.5 CloudTrail Lake High-trap — service direction change
WhatA managed data lake for aggregating, immutably storing, and running SQL-based queries across activity logs (AWS and non-AWS sources)
FormatConverts JSON events to Apache ORC (columnar) format for fast querying
Newer capabilitiesGenerative AI natural-language query generation (GA), AI-powered query result summarization (preview), 14+ pre-built dashboards plus custom dashboards, cross-account event data store sharing via resource-based policies
Critical direction changeCloudTrail Lake will no longer be open to NEW customers starting May 31, 2026 — existing customers continue normally, including new regions/accounts under an existing org-level event data store; AWS points customers toward CloudWatch for similar capability going forward
2.6 Trails vs Event Data Stores
Trail (classic)Delivers events to S3 (and optionally CloudWatch Logs) for storage, real-time monitoring, and alerting
Event Data Store (Lake)Stores events for SQL querying/analytics/dashboards within CloudTrail Lake itself
2.7 Log File Integrity Validation & Encryption
Integrity validationDigest files using SHA-256 hashing let you cryptographically verify log files haven't been tampered with or deleted after delivery
EncryptionLog files can be encrypted with KMS (SSE-KMS) for an additional layer of protection at rest

AWS Exam Thinking

Requirement → Keywords → Expected Answer → why every distractor fails.

Determine who made a specific API call and when
who did whatAPI call recordaudit
Expected Answer

AWS CloudTrail

DistractorWhy it's wrong
AWS ConfigRecords resource configuration STATE over time, not who made which API call
VPC Flow LogsRecords network-layer traffic metadata, not API-level identity/action information
Detect an unusual spike/burst in management API call rate
spikeunusual rateburst of IAM actions
Expected Answer

CloudTrail Insights

DistractorWhy it's wrong
GuardDutyBroader ML/threat-intel-based behavioral detection across multiple log sources — Insights is the narrower, more precise tool specifically for rate/volume anomalies in API calls
Manual CloudWatch metric filter/alarmPossible, but requires you to build and tune the anomaly logic yourself — Insights does this automatically via statistical baselining
Detect denied access attempts or external credential use at a VPC endpoint
VPC endpointdenied accessdata perimeter
Expected Answer

CloudTrail Network Activity Events

DistractorWhy it's wrong
Data eventsCapture data-plane actions on the resource directly, not specifically API calls traversing a VPC endpoint, including denied ones
VPC Flow LogsShow network-layer connection metadata, not the specific AWS API call and whether it was denied by endpoint policy
Capture S3 object-level read/write activity for a specific sensitive bucket
object-levelGetObject / PutObject
Expected Answer

CloudTrail Data Events (scoped to that bucket)

DistractorWhy it's wrong
Management eventsOnly capture control-plane actions (e.g. creating the bucket), not object-level reads/writes
Run ad-hoc SQL analysis across a year of activity logs with natural-language queries
SQL querynatural languagedashboards
Expected Answer

CloudTrail Lake (existing customers) or CloudWatch (for new customers, per 2026 direction)

DistractorWhy it's wrong
A trail delivering to S3 + manual Athena queriesWorks, but requires building your own query/dashboard layer — Lake/CloudWatch are purpose-built for this

Security Controls Mapping & Integrations

4 — Controls Mapping

Detective

The raw activity record itself, plus Insights' statistical anomaly findings on top of it

Compliance / Governance

Tamper-evident audit trail (log file validation, KMS encryption) satisfying audit and regulatory evidence requirements; organization trails enforce consistent logging across all accounts

Responsive (via integration, not native)

CloudWatch Logs metric filters/alarms, or EventBridge rules on specific API call patterns, trigger Lambda/SNS for real-time response

⚠️ CloudTrail records and stores — it does not analyze, judge, or block

Any anomaly scoring (Insights), broad threat detection (GuardDuty), or blocking action (SGs/NACLs/SCPs/IAM policies) is a separate layer built on top of or alongside CloudTrail's raw event record.

5 — Integrations

Amazon S3
WhatPrimary long-term storage destination for trail log files
Amazon CloudWatch Logs
WhatTrails can optionally stream events here for real-time monitoring
PatternMetric filter on a log pattern (e.g. root account usage, unauthorized API calls) → CloudWatch Alarm → SNS notification
DirectionAs CloudTrail Lake closes to new customers, CloudWatch is positioned as the forward path for log analytics
AWS KMS
WhatEncrypts trail log files at rest (SSE-KMS)
Amazon GuardDuty
WhatHas direct internal access to CloudTrail management events as one of its foundational data sources — no manual trail configuration required for GuardDuty's own analysis
AWS Organizations
WhatOrganization trails apply consistently across every member account from the management/delegated administrator account
Athena
WhatCan directly query trail log files stored in S3 for custom analysis outside of CloudTrail Lake

Costs, Limits & Quotas

Pricing Model

Management eventsFirst copy delivered to your first trail per region is free; additional copies/trails are billed
Data eventsBilled per event recorded — opt-in, scope deliberately to control cost
Network activity eventsAdditional charges apply, separate from data/management event pricing
InsightsPriced per analyzed event volume
CloudTrail LakeIngestion + query charges; retention priced as seven-year or one-year-extendable options

Common Cost Mistakes

Cost Optimization

Limits & Quotas

Default Event History90 days of management events, no trail required, free
Log delivery latencyTypically around 15 minutes for trail-delivered events
Organization trailsOne per management/delegated administrator account, applied across all member accounts
Network activity event coverageLimited to specific supported services (S3, EC2, KMS, Secrets Manager, CloudTrail), expanding over time
⚠️ Exam trap

The 90-day Event History is NOT a substitute for a trail when you need cross-region delivery, S3 storage beyond 90 days, CloudWatch Logs integration, or any data/network activity events — those all require an actual trail (or event data store) to be configured.

Best Practices & Common Exam Traps

8 — Best Practices

Must Know
  • 4 event types and their default-on/off status
  • Insights = statistical rate/volume anomaly detection, narrower than GuardDuty
  • Network Activity Events close the VPC-endpoint denied-access/data-perimeter visibility gap
  • CloudTrail Lake is closing to new customers May 31, 2026
Good Practice
  • Enable an organization trail with log file validation and KMS encryption
  • Send trail events to CloudWatch Logs for real-time alerting on sensitive API patterns
  • Scope data/network activity events to genuinely sensitive resources, not blanket-enabled
  • Enable Insights to catch volume/rate anomalies CloudWatch alarms wouldn't be tuned to catch automatically
Advanced Practice
  • Use network activity events with denied-access-only logging to safely test a new restrictive VPC endpoint policy before full enforcement
  • For existing CloudTrail Lake customers, use natural-language query generation and pre-built dashboards to accelerate investigations
  • Cross-account share event data stores via resource-based policies for org-wide analysis without duplicating data

9 — Common Exam Traps

MisconceptionReality
"CloudTrail records nothing without a trail"The default 90-day Event History captures management events automatically with no trail at all
"CloudTrail Insights is the same as GuardDuty"Insights is narrow, statistical rate/volume anomaly detection on API calls; GuardDuty is broad ML/threat-intel-based behavioral detection across multiple data sources
"Data events are on by default like management events"Data events (and network activity events) are explicitly opt-in due to volume/cost
"CloudTrail blocks unauthorized API calls"It only records them — blocking requires IAM policies, SCPs, or VPC endpoint policies
"CloudTrail Lake is the only way to do log analytics going forward"It's closing to new customers as of May 31, 2026 — CloudWatch is the AWS-recommended path for new analytics workloads

CloudTrail vs. The Lookalikes

ServiceWhat it actually answers
vs CloudTrail InsightsCloudTrail = the raw event record. Insights = a specific statistical anomaly-detection layer built on top of that record, focused on call rate/volume/error-rate patterns
vs GuardDutyCloudTrail provides one of GuardDuty's foundational data sources (management events, with direct internal access, no trail needed). GuardDuty performs broad ML-based threat detection across CloudTrail + VPC Flow Logs + DNS + more — a fundamentally bigger scope than Insights
vs AWS ConfigCloudTrail answers "who did what, when" (activity). Config answers "is this resource currently configured correctly" (state). Completely different questions, often paired as distractors
vs VPC Flow LogsCloudTrail records API-level activity with identity context. VPC Flow Logs record network-layer traffic metadata (IPs, ports, bytes) with no API/identity context. Network Activity Events sit conceptually between these — API-level detail specifically for VPC-endpoint-traversing traffic

Flashcards — 16 Cards

Click card to flip. Mark right or wrong to track score.

Click to reveal answer
1 / 16
Mark:   Score: 0/0

Practice Quiz — 10 Questions

SCS-C02 scenario style, Easy → Specialty. Select an answer to reveal the explanation.

out of 10 correct