An engineer left the company three weeks ago and you find their access key was used yesterday. How do you respond and fix the process?
BeginnerScenarioSecurity incidents
Answer
Situation read → It's an incident (an unauthorised credential in use) and also a process failure in offboarding.
What I'd do →
- Deactivate the key and disable the user now; check CloudTrail for what was done yesterday.
- Sweep for other access: GitHub org membership, kubeconfigs, VPN, SSH keys on servers, CI tokens, SaaS consoles.
- Rotate shared secrets they knew (break-glass passwords, shared tokens).
- Fix the root cause: no long-lived IAM users. Use IAM Identity Center with the corporate IdP, so disabling them in the IdP removes AWS, GitHub and Kubernetes access in one step.
- Add an automated monthly report of credentials unused for 90 days and accounts not linked to an active employee.
Why → SSO makes offboarding one action instead of a checklist that people forget.
Interview tip → Frame it as "the person isn't the problem, the process is".
More on Security incidents
An AWS access key for a production IAM user was pushed to a public GitHub repo 20 minutes ago. What do you do in the first 30 minutes?AdvancedYou find pods in your cluster running a crypto miner. What do you do?AdvancedA critical CVE is announced in a library you use. You have 200 images across 40 repos. How do you find and patch everything fast?IntermediateGuardDuty reports an EC2 instance talking to a known command-and-control IP. What do you do?AdvancedYou discover an S3 bucket with customer data has been public for three months. What now?IntermediateA secret was printed in plain text in a CI job log. What do you do?Beginner