IAM interview questions · Fundamentals
What does least privilege mean in practice?
In plain wordsThe builder gets your keys for the two days of work, not a copy forever.
How it works
Least privilege has three dimensions: scope (only the permissions needed), time (only while needed) and standing (nothing permanent if it can be granted on demand). Most environments fail on time: access is granted for a project and never removed.
In practice it means good birthright roles, access requests with an expiry date, just-in-time elevation for admins, regular access reviews that actually revoke, and usage data to spot permissions nobody uses. In the cloud it means narrowing IAM policies from “*” to specific actions, using tools that compare granted vs used permissions.
A concrete example
A DevOps engineer is a permanent Global Admin “because sometimes they need it”. Applying least privilege: day to day they have a reader role; when they need to change a production setting they request Admin for 2 hours, with a ticket number and approval, and the session is recorded. If their account is phished on a normal day, the attacker gets a reader, not an admin.
See it in action: how much can a stolen account do
Mistakes to avoid
- Talking about it only as a principle, without how to apply and measure it.
- Forgetting service accounts and API keys, often the most over-privileged identities.
They may also ask you
- How would you reduce the number of permanent admins?
- How do you handle emergency (break-glass) access?
- Go deeper
- Least privilege →
- JIT →