Interview Prep/AWS/IAM, Organizations and Multi-Account

Security wants to know who deleted a production S3 bucket yesterday. How do you find out?

BeginnerScenarioIAM, Organizations and Multi-Account
Answer

Situation read → This is a CloudTrail question; bucket deletion is a management event, recorded by default for 90 days.

What I'd do →

  1. Open CloudTrail Event history and filter on Event name DeleteBucket
  2. Or CLI: aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=DeleteBucket
  3. Read userIdentity, sourceIPAddress and userAgent to identify the principal
  4. For longer history query the trail's S3 logs with Athena

Why → Event history only covers 90 days of management events in one region view, so an organization trail to S3 is what actually keeps the evidence.

Interview tip → Distinguish management events from data events (object-level), which are off by default.

aws All AWS questions Roadmap: AWS core services

More on IAM, Organizations and Multi-Account