IAM (Identity Access Management) Flashcards
Is IAM a global service on AWS? If the answer to this question is “yes”, what are the implications for users and permissions?
Because IAM is a global service on AWS, users and permissions apply across all available AWS regions.
What is IAM?
IAM (Identity Access Management) is a service on AWS that allows you to manager users and their level of access to the AWS console.
Name 9 key features that IAM provides.
- Centralised control of your AWS account
- Shared access to your AWS account
- Granular permissions
- Identity Federation (AD, Facebook, LinkedIn)
- Provides temp access to users, devices and services
- Setup your own Password rotation policy
- Integrates with other AWS services
- Supports PCI DDS compliance
- MFA (Multi-factor Authentication)
Are instances global or regional?
Instances are regional
Where do the permissions for instances apply?
Despite instances being regional, the permissions apply regardless of where the instance is
Can you provide regional based access to instances?
Yes. You could for example, allow EC2 admins to only start and stop instances in a given region
What is an ARN and what is its purpose?
Amazon Resource Name. It uniquely identifies an AWS resource
What are the two policies in IAM? Name them and elaborate on what each policy is for.
Inline Policy is a policy assigned to one user or one group –used to apply permissions in one off instances.
Managed Policy is a prebuilt policy either by AWS or an admin user inside the AWS account.
What are the implications of having an explicit “deny” in a policy?
An explicit deny will always override any “allow”.
All permissions are implicitly denied until you grant those permissions explicitly.
True or False.
True.
When assigning permissions, what important principle should you follow and keep in mind?
The principle of least privilege security which advises that you should only provide the bear minimum permissions required for a user to do their job and no more.
What is the best way to go about assigning permissions?
You should assign permissions to groups and assign users to those groups. The permissions assigned to the groups will apply to the users in the groups.
Which tool enables you to test the effects of IAM policies before committing them to production?
The IAM Policy Simulator. This helps validate that policies work as expected.
In which formate are policy documents written?
In JSON format, as a series of key-value pairs
What are the four key things that IAM consists of and briefly describe each of them.
- Users: end users interacting with console or CLI
- Groups: a collection of users under one set of permissions
- Roles: created and assigned to AWS resources
- Policy: a document that defines one or more permissions