サービス · Management and Governance · CLF-C02 の発展
AWS CloudTrail
Event types, organization trails, tamper-proof logs and CloudTrail Lake.
このレッスンはまだ翻訳されていないため、英語で表示しています。
クラウドプラクティショナーで学んだこと
- CloudTrail records API activity: who did what, when and from where.
- Event history shows 90 days of management events. A trail keeps events in S3.
- Log file integrity validation shows whether logs were changed.
Management
- Records
- Control-plane actions, such as RunInstances
- Default
- On
Data
- Records
- Resource operations, such as S3 GetObject
- Default
- Off, extra cost
Insights
- Records
- Unusual API activity
- Default
- Off, extra cost
| Event type | Records | Default |
|---|---|---|
| Management | Control-plane actions, such as RunInstances | On |
| Data | Resource operations, such as S3 GetObject | Off, extra cost |
| Insights | Unusual API activity | Off, extra cost |
概要
There are three event types. Management events are control-plane actions, and they are recorded by default. Data events are operations on resources, such as S3 object reads and Lambda invocations. You turn them on, and they cost extra. Insights events flag unusual activity, such as a sudden jump in API calls. They also cost extra and are off by default.
概要
An organization trail, created from the management account or a delegated administrator, records every account. Member accounts cannot change or stop it. Deliver it to an S3 bucket in a log archive account. Encrypt the logs with SSE-KMS, limit who can read or delete them with the bucket policy, and turn on log file integrity validation. It writes a signed digest file each hour, so tampering shows.
CloudTrail Lake is a managed store for events with SQL queries and longer retention. It has been closed to new customers since May 31, 2026, so only accounts that already use it can keep using it. For new setups, keep trails in S3 and query them with Athena, or use CloudWatch.
覚えること
- Management events: on by default. Data events and Insights: off, extra cost.
- Organization trail covers every account. Members cannot change it.
- Log file integrity validation uses signed hourly digest files.
- Protect the log bucket: separate account, SSE-KMS, strict bucket policy.
覚えること
- CloudTrail Lake: SQL queries on managed event storage, closed to new customers.
- Alarms on events: send the trail to CloudWatch Logs.
試験では
- “Record every object read in an S3 bucket” points to CloudTrail data events.
- “Log API activity for all accounts, which no member can disable” points to an organization trail.
- “Prove that logs were not changed” points to log file integrity validation.
- “Detect an unusual spike in API calls” points to CloudTrail Insights.
混同しやすいもの
AWS ConfigRules, conformance packs, automatic remediation and multi-account views, and how Config differs from CloudTrail and CloudWatch.
Amazon CloudWatchChoose metrics from business needs, build alarms and composite alarms, search logs, and auto-recover instances.
Amazon GuardDutyThreat detection fed by many data sources, with automatic response through EventBridge.