What is the difference between an IAM role and an IAM user?
#Reveal answer guidance
A user is a long-lived identity with permanent credentials, meant for a person or legacy app. A role has no permanent credentials — it's assumed temporarily, handing back short-lived STS credentials. Roles are the secure default for services (EC2, Lambda), cross-account access, and federated/OIDC logins because nothing long-lived is stored.