Tell me about a time you implemented least privilege for a team or system.
IntermediateBehavioralSecurity, compliance & cross-team work
Answer
What they're really testing → Practical IAM experience.
Sample STAR answer →
- Situation: All our CI pipelines used one IAM role with
AdministratorAccess. - Task: Reduce blast radius without breaking pipelines.
- Action: I used IAM Access Analyzer policy generation from 90 days of CloudTrail activity to draft per-pipeline policies, created one role per repository with an OIDC trust condition on
token.actions.githubusercontent.com:subfor that repo and branch, and rolled out over 3 weeks. - Result: 30 pipelines moved off the admin role, and two failed attempts from a forked PR were blocked by the trust condition later that year.
Avoid → Applying least privilege in a way that blocks teams for weeks.
More on Security, compliance & cross-team work
Tell me about a time you worked with the security team on a vulnerability.BeginnerTell me about a time you found a security issue in your own infrastructure.IntermediateDescribe a time you prepared infrastructure for a compliance audit (SOC 2, ISO 27001, PCI).IntermediateTell me about a time you handled a leaked secret.AdvancedTell me about a time a security requirement slowed delivery. How did you handle it?IntermediateDescribe a time you introduced a security tool into the CI/CD pipeline.Beginner