Interview Prep/Real-World Interview/Multi-env and multi-account

How do you centralise logs and security findings across 20 AWS accounts?

IntermediateScenarioMulti-env and multi-account
Answer

Situation read → Investigators shouldn't need to log into 20 accounts. And an attacker in one account must not be able to delete its logs.

What I'd do →

  1. Organisation CloudTrail to an S3 bucket in a dedicated log archive account, with Object Lock, and data events for sensitive buckets.
  2. GuardDuty, Security Hub, Config with a delegated administrator in the security account, auto-enabled for new accounts.
  3. VPC Flow Logs and ALB logs to the central bucket, queried with Athena.
  4. App logs shipped to a central backend (OpenSearch, Loki or a SaaS) with per-account and per-environment labels.
  5. Access to the log account limited to the security team, read-only by default.
aws guardduty update-organization-configuration --detector-id abc123 --auto-enable-organization-members ALL

Why → Logs outside the source account survive its compromise, and one place to search speeds up every investigation.

Interview tip → Say "auto-enable for new accounts"; manual enrolment always misses one.

All Real-World Interview questions Roadmap: Interview readiness

More on Multi-env and multi-account