Audit Logging
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing AWS Certified Data Engineer - Associate premium course — no separate purchase.
Included in this chapter:
- The CloudTrail event model: management, data, and network events
- Event history versus a trail, and trustworthy delivery
- CloudTrail Lake and querying audit logs at scale
- Exam-pattern recognition: reading the audit-logging question
Choosing where audit logs live and how you query them
| Audit store | What it holds | How you query it | Retention | Best for |
|---|---|---|---|---|
| Event history | Management events, last 90 days, one Region | Console lookup / LookupEvents | 90 days, fixed | Quick recent review, no setup |
| Trail to S3 | Management + chosen data events as JSON | Athena over a partitioned table | Indefinite (your S3 lifecycle) | Durable archive, large history |
| Trail to CloudWatch Logs | Trail events plus application/audit logs | Logs Insights, metric filters | Per log group (default never expire) | Alerting and in-place queries |
| CloudTrail Lake | Immutable event data store (ORC) | SQL (Trino) directly on events | Up to ~10 years (pricing option) | Long compliance hold, SQL audit |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.