1 - Access Control Flashcards
What are the basic concepts of IAM?
Users are people
Groups are a set of users with the same permissions.
Roles are permissions assigned to one or more resources, not people
Permissions are applied to users, groups and roles
What credentials are used for programmatic access?
An access key ID and a secret access key.
The latter can’t be retrieved again but can be regenerated.
These credentials cannot be used for console access
Is IAM region based?
No, it’s global
What is cross-account access?
A feature of the console for ease of use when working in multi-account or multi-role environments
What is STS generally used for?
- Federation using SAML i.e. from AD
- Federation from mobile apps using OpenID via Cognito
- Cross-account access
What are the key concepts of STS?
Federation is the process of joining users from one domain to another
An identity broker performs the matching (federation) from A to B
Identity stores are services like AD or Facebook that store the identities
Identities are users of that service
What is the general for federation against AD?
Ther users enters their username and password into an application, which forwards them to the identity broker
The identity broker forwards the credentials to the identity store which validates them.
If the credentials are valid, the identity broker calls STS to generate a token and returns it to the application
What fields fo tokens returned from STS have?
An access key, secret access key, session token, and a duration
What range of durations does STS support?
1 to 36 hours
What does an object in S3 consists of?
The key, value (actual data), version ID, metadata (tags) and sub-resources.
Sub-resources include the ACL, a torrent file, and transfer acceleration configuration
What are the size limits for S3?
Individual objects can be 0 bytes to 5 terabytes
There is no limit on total bucket size
What are the restrictions of bucket names in S3?
Bucket names must be globally unique. They can’t contain underscores, spaces, or capital letters
What is the DNS name for an object?
https://s3-region.amazonaws.com/bucket/object
What is the data consistency model for S3?
Read after write for PUTs of new objects
Eventual consistency for overwrite PUTs and DELETEs
How can an application tell if an upload to S3 was successful?
Successful PUTs return a status code of 200