Interview › Security & DevSecOps
How do you audit who did what in your cloud and clusters (CloudTrail, audit logs)? [Advanced]
Answer
I audit who did what using cloud audit logs such as AWS CloudTrail, Kubernetes audit logs, CI/CD logs, IAM access analyzer data, Git history, and service-specific logs. Logs should be centralized, immutable or tamper-resistant, searchable, and retained according to compliance needs.
Technical explanation
CloudTrail shows AWS API calls, caller identity, source IP, time, request parameters, and result.
Kubernetes audit logs show API server actions such as create, update, delete, exec, and access to secrets.
Audit logs should feed alerts for high-risk actions such as disabling logging, creating admin keys, accessing secrets, or changing network exposure.
Hands-on example
Example detection: alert when an IAM user creates an access key outside the approved pipeline, when CloudTrail is stopped, when a Kubernetes Secret is read in production by an unusual identity, or when a cluster-admin binding is created.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Security & DevSecOps interview questions
- Why do you hash and salt passwords rather than encrypt them? [Advanced]
- What is the difference between encoding, encryption, and hashing? [Advanced]
- What is the difference between a WAF, an IDS, and an IPS? [Advanced]
- How do you prevent privilege escalation in a Kubernetes cluster? [Advanced]
- What are Kubernetes Pod Security Standards (privileged, baseline, restricted)? [Advanced]
- How do you prove to an auditor that security controls are enforced continuously, not just documented? [Advanced]
- What are Linux capabilities, and why drop them in containers? [Advanced]
- What is the difference between authentication and authorization? [Advanced]