A CSPM flags 200 IAM users with access keys older than 365 days. What is your plan?
BeginnerScenarioCloud IAM and Compliance
Answer
Situation read → Old static keys are a top breach cause. Most are probably unused or replaceable.
What I'd do →
- Pull the credential report and sort by
access_key_1_last_used_date. - Deactivate keys unused for 90+ days, with a notice to owners; delete after 30 more days.
- For active keys, move workloads to roles (OIDC for CI, instance or pod roles for apps).
- For the few that must stay, set up rotation and an owner.
- Add a Config rule (
access-keys-rotated) to alert going forward.
Why → Deactivating first is reversible, which reduces fear of breaking something.
Interview tip → "Deactivate, wait, delete" is the safe pattern.
More on Cloud IAM and Compliance
You find an IAM policy with `"Action": "*", "Resource": "*"` attached to an application role. How do you right-size it?BeginnerYour company has 40 AWS accounts with no central controls. How do you set up preventive guardrails?IntermediateGuardDuty reports `UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS`. What happened and what do you do?AdvancedYour company must pass SOC 2 Type II in six months. What does DevOps own, and how do you automate evidence?IntermediateA partner needs access to one S3 bucket in your account. How do you set up cross-account access safely?IntermediateSomeone logged in with the AWS root user last night. How do you react, and how should you have known?Beginner