Implement CloudTrail for tamper-proof audit logs across an organization.
AdvancedScenarioObservability, Secrets, KMS and CloudFormation
Answer
Situation read → Org trail into a locked log archive.
What I'd do →
- Create an organization trail with log file validation
- Deliver to S3 in the log-archive account with bucket policy and Object Lock
- Encrypt with KMS
- Send to CloudWatch Logs for alerts
- Validate:
aws cloudtrail validate-logs --trail-arn ... --start-time ...
Why → Log file validation produces digests that expose tampering.
Interview tip → Add CloudTrail Lake for query.
More on Observability, Secrets, KMS and CloudFormation
You need to be paged when 5xx errors on the ALB exceed 2 percent for 5 minutes. How?BeginnerHow do you centralize application logs from many EC2 and ECS services?BeginnerCloudWatch costs exploded. Where do you look?IntermediateInvestigate a latency spike across microservices on AWS. What tools do you use?IntermediateAn auditor asks for proof of every configuration change to security groups for 12 months. What do you provide?IntermediateAuto-remediate any security group opened to 0.0.0.0/0 on port 22.Advanced