Interview Prep/AWS/Observability, Security Services and IaC

What does CloudTrail record?

BeginnerConceptObservability, Security Services and IaC
Answer

CloudTrail records AWS API calls: who, what, when, from where, and the response. Management events are on by default and viewable in Event history for 90 days. Data events (S3 object-level, Lambda invokes, DynamoDB item operations) and Insights events must be enabled and cost extra. A trail delivers logs to S3 (and optionally CloudWatch Logs) indefinitely, with an Organization trail covering all accounts.

aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=DeleteBucket

Enable log file validation to detect tampering.

aws All AWS questions

More on Observability, Security Services and IaC