An engineer left the company. How do you make sure nothing of theirs still works?
IntermediateScenarioIAM, Organizations and Multi-Account
Answer
Situation read → Offboarding is easy if identity is centralized, hard if they created IAM users or keys.
What I'd do →
- Disable the user in the IdP, which kills SSO sessions into every account
- Run the credential report to find any IAM users or keys:
aws iam get-credential-report - Search for roles they created with trust to personal accounts
- Rotate any shared secrets they knew
- Check CloudTrail for the user's actions the final week
Why → Central IdP removal handles 95 percent of access; the remainder is the shadow credentials.
Interview tip → Mention periodic IAM Access Analyzer external-access findings.
More on IAM, Organizations and Multi-Account
A developer needs read-only access to one S3 bucket from their laptop. How do you grant it without creating long-lived access keys?BeginnerAn EC2 application needs to write to DynamoDB. Where do the credentials come from?BeginnerSecurity wants to know who deleted a production S3 bucket yesterday. How do you find out?BeginnerYou must stop anyone in a member account from disabling CloudTrail, even account admins. What do you use?BeginnerA cross-account role assumption fails with AccessDenied even though the target role trusts the source account. What do you check?IntermediateDesign access for a CI pipeline in GitHub Actions to deploy to AWS without storing AWS keys in GitHub.Intermediate