Explain it simpler
AWS Identity and Access Management (IAM) answers two questions: who are you, and what are you allowed to do? A user is one person or program with its own login. A group is a bundle of users who share the same permissions, like a team badge. A role is a temporary badge that a person or an AWS service can put on for a while, so there is no permanent password to lose. A policy is the written list of what a badge allows. The guiding rule is least privilege: give everyone only the permissions they need for their job, like giving a cleaner a key to the lobby but not to the safe.
A message pops up in the team chat at Maplewood Analytics: "Who deleted the staging-reports bucket?" Nobody admits to it, and it turns out nobody needed to. Every developer was given full administrator access on day one "to keep things moving," and an automation script running under a developer's access keys removed the bucket during a cleanup run. Your manager, Lin, asks you to redesign access so this cannot happen again without slowing the team down. Where do you start, and which IAM building blocks do you reach for?
AWS Identity and Access Management (IAM) controls who can sign in to your AWS account (authentication) and what they are allowed to do (authorization). IAM is a global service, not tied to a Region, and it is available at no additional charge. It is the heart of the customer's security responsibility, because nearly every security failure in AWS comes down to someone having access they should not have. IAM has four building blocks. An IAM user is an identity for one person or application, with long-term credentials: a password for the console and optionally access keys for the command line interface (CLI) and software development kits (SDKs). An IAM group is a collection of users; you attach permissions to the group, and every member inherits them. Groups cannot contain other groups, and a group is not an identity that can sign in. An IAM role is an identity with permissions but no long-term credentials. Instead, a trusted entity assumes the role and receives temporary credentials from AWS Security Token Service (AWS STS). Policies define the permissions themselves. Keeping these four straight, and knowing which one an exam scenario is pointing at, unlocks most IAM questions on the Cloud Practitioner exam.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 8 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.