IAM Flashcards
What types of policies are there?
- Inline policies - JSON attached to resource.
- Managed Policies - reusable json with a name.
- Resource Policies - can be assigned only to service resource. Checks specific identities can allow or deny access. Always have principal component.
- Permission Policies - Allow or deny access to use a specific resource
- Identity Policies - can be attached only to identities
- Trust Policies - Specifies which identities can assume the role.
What are parts of the policy?
Statement:
- SID
- Resource
- Action
- Effect
- Principal - determines which identites can use the policy
How overlapping policies and statements work?
- Explicit deny
- Explicit allow
- Implicit deny
What is authentication and authrorization?
Authentication - verifies the identity
Authorization - determines access rights
How many iam users can be created per account?
5000
How many groups can be added to each user?
10
What is ARN?
Amazon Resource Name” uniquely identify resources within any AWS accounts
How many groups can be created?
soft limit - 300
How roles work?
There are 2 policies:
- Trust policy - determines who can assume the role
- Permission policy - what permissions this identity have
Generate temperature security credentials therefore don’t combine actual identities permissions with roles permissions.
What is role separation?
Role seperation is mehanics that allows different identity to have different permissions to operate with resource. For example administrative, encrypt, decrypt.
What are service linked roles?
Service creates role for himself which allow interacting with other AWS services. User cannot change or delete the role.
What is break glass situation?
A user with no permissions assumes role that have required permissions to execute some action.
When user have not assumes the role, he is protected by accidentally executing something.
How external identities interact with AWS?
They must assume Role or use an iam identity to interact with services.
What is identity federation?
External identities assume a role in aws - for example SAML, google, facebook.