IAM and S3 Flashcards
(38 cards)
What is IAM and what does it offer?
Identity Access Management
- allows many security features such as MFA, Temporary Access, and Granular Permissions
Key terms for IAM: Users, Groups, Policies, Roles
Users - individual end user ex. employee
Groups - Collection of users, each user in group inherits group perms.
Policies - JSON documents that give perms to users, groups, and roles
Roles - roles are like permissions for AWS resources (i.e. you might give a VM in AWS to write files to S3)
Is IAM functionality regional or global?
Global
What is the root account
Main AWS account created at first setup. Has complete Admin Access (God mode)
Do new users have permissions when first created?
NO
What are the two types of access given to new users?
Console and Programmatic
Which service would you use to collect and monitor metrics such as billing information, and set alarms that watch those metrics?
CloudWatch
What does S3 Stand for?
Hint: SSS
Simple Storage Service
What kind of storage does S3 use?
Object based storage
Is S3 global? Can you create 2 buckets with the same name?
Yes. No.
In S3 what makes up an object?
Key(name), Value(data), Version ID, Metadata, Subresources(Access Control Lists, Torrents)
How does data consistency work for S3?
- Read after Write consistency for PUTS of new Objects (Can read objects right after saving them)
- Eventual Consistency for overwrite PUTS and DELETES (Takes some time for the object to be updated or deleted)
What are the S3 Storage Tiers and a brief description?
S3 Standard - standard tier with high availability and durability
S3 IA (Infrequently Accessed) - Cheaper than Standard but has a retrieval fee. Good for objects that need immediate access but rarely
S3 One Zone IA - Like IA but even cheaper because it is stored in only one availability zone and thus slightly less resilient
S3 Intelligent Tiering - Uses machine learning to move data to different tiers based on users use
S3 Glacier - Used for archiving. Very cheap with higher retrieval times.
S3 Glacier Deep Archive - Cheapest storage tier, also for archiving. Retrieval times of up to 12 hours.
Video: S3 Security and Encryption
Question: How does access control work for S3?
By default buckets are private.
You can create bucket policies as well as ACL’s for buckets and individual objects.
Video: S3 Security and Encryption
Question: What kinds of encryption at rest does S3 offer?
SSE-S3: S3 Managed Keys - Encryption keys are provided by AWS
SSE-KMS: AWS Key Management Service - Manage keys inside AWS
SSE-C: Customer Provided Keys - Encryption keys are provided by the user
Client Side Encryption - Upload already encrypted objects
NOTE: You can encrypt an entire S3 bucket
Video: 15. S3 Version Control
Question: Does S3 continue to store versions even after deleting an object?
Yes. It just creates a delete marker that acts as the most recent version.
NOTE: You can undo a delete by deleting the delete marker
Video: 15. S3 Version Control
Question: Can versioning be disabled?
No. Versioning can only be suspended so that versioning doesn’t continue for future objects.
Video: 15. S3 Version Control
Question: Can you require MFA to delete a file/version?
Yes, S3 offers the capability to require MFA for delete capability.
Video: S3 Lifecycle Management and Glacier
Questions: What is the point of Lifecycle Management?
Does it apply to versioning?
Lifecycle Management allows you to automate the movement S3 objects to different storage tiers.
YES. Can be applied to previous AND current versions.
Video: S3 Lock Policies & Glacier Vault Lock [SAA-C02]
Question: What does S3 Object lock allow a user to do and what does WORM mean?
Object lock allows a user to lock an object for a fixed period of time or indefinitely. WORM stand for Write Once Read Many, meaning an object can be freely read but not updated after its been written.
Video: S3 Lock Policies & Glacier Vault Lock [SAA-C02]
Questions: Is Object Lock only for objects or can they be applied bucket wide?
What is Glacier Vault Lock?
They can be applied to both buckets and objects.
Like Object Lock but for Glacier.
Video: S3 Lock Policies & Glacier Vault Lock [SAA-C02]
Question: What are the two modes for Object Lock and what do they do?
Governance Mode - Only users with special permissions can edit, delete or alter the Object Lock settings of an object or bucket.
Compliance Mode - No one, not even the root user, can edit, delete or alter the Object Lock settings of an object or bucket until the retention period is over.
Video: S3 Performance [SAA-C02]
Question: What is an S3 Prefix?
An S3 prefix is the part in the object path between the object name and bucket name.
Example: For mybucketname/folder1/subfolder3/myfile.jpg the prefix is folder1/subfolder3
Video: S3 Performance [SAA-C02]
Question: How can you increase S3 performance?
Spread files out through multiple prefixes. S3 allows 3,500 PUT/COPY/POST/DELETE and 5,500 GET/HEAD requests per second per prefix. So more prefixes = more requests.