Open cardosec

Case 843173 · Cloud · L1 Foundations

Users, Roles and Policies in Cloud IAM

Practise as: Explain it · InterviewLevel: L1 Foundations

Interview questionExplain the difference between IAM users, roles and policies, and why roles are usually preferred.

  1. 01 What is it?
  2. 02 How is it abused?
  3. 03 How do you stop it?
What a strong answer covers

Try it out loud first. Then check yourself:

  1. A policy is a document of allowed or denied actions on resources; it does nothing until attached to an identity or resource.
  2. An IAM user is a long-lived identity, often with access keys that never expire unless someone rotates them.
  3. A role is assumed for a while and hands out temporary credentials, so nothing permanent can leak.
  4. Prefer SSO for people and roles for workloads; keep IAM users with access keys only as a documented exception.

If the interviewer pushes back

  • What is the difference between an identity-based policy and a resource-based policy?

Go deeper

More Cloud cards

All Cloud cards →

cardosec draws a security topic and gives you a clock: explain it out loud with no notes, then see what you covered and what you missed. Free during early access.

Reviewed 2026-10-09