Interview Prep/DevSecOps/Cloud IAM and Compliance

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 →

  1. Pull the credential report and sort by access_key_1_last_used_date.
  2. Deactivate keys unused for 90+ days, with a notice to owners; delete after 30 more days.
  3. For active keys, move workloads to roles (OIDC for CI, instance or pod roles for apps).
  4. For the few that must stay, set up rotation and an owner.
  5. 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.

All DevSecOps questions Roadmap: Policy as code

More on Cloud IAM and Compliance