What does CloudTrail record, and why does it matter for security and audits?
AWS · Intermediate level
Answer
CloudTrail records AWS account activity such as IAM changes, security group updates, S3 policy changes, and optional data events. It matters for audit, forensics, incident response, and change attribution.
Technical explanation
Organization trails and protected log buckets are important so workload account admins cannot tamper with audit logs.
Observability should answer symptoms, cause, scope, and owner: metrics show trends and alerts, logs provide context, traces connect calls, and audit logs attribute changes.
Alert only on actionable conditions such as user impact, fast SLO burn, saturation, unhealthy capacity, or security-sensitive changes.
Centralize retention and access policies so operational debugging and audit investigations are possible without exposing sensitive logs unnecessarily.
Hands-on example
1. Enable the relevant telemetry source: CloudWatch metrics/logs, CloudTrail, Config, ALB logs, VPC Flow Logs, or application structured logs.
2. Create a dashboard and one actionable alarm tied to user impact or security risk.
3. Trigger a controlled change or failure and verify that the signal appears with enough context to identify owner and root cause.
4. Document the query, dashboard link, alarm routing, and runbook action.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More AWS interview questions
- What is the difference between CloudWatch Logs and CloudTrail?
- What is CloudWatch, and what is the difference between metrics, logs, and alarms?
- What is the difference between a CNAME and an Alias record in Route 53?
- How does the AWS VPC CNI assign pod networking on EKS?
- What are managed node groups versus self-managed nodes versus Fargate on EKS?
- What is Amazon EKS, and what does AWS manage versus what you manage?
- How do you trigger a Lambda function - name several event sources.
- What is ElastiCache, and what is the difference between Redis and Memcached on it?