1. S3 and IAM Flashcards
What do S3 objects consist of?
S3 objects consist of:
- A key - which is the name of the object.
- A value - which is the data and it is made up of a sequence of bytes.
- A version id - allows you to have multiple versions of your file.
- Metadata - data about the data you are storing.
What message notifies you of a successful S3 bucket upload?
When you successfully upload to S3 you get an http 200 message.
What can you use to guard against accidental deletions in S3?
You can turn on MFA delete to guard against accidental deletions.
When can you read objects in an S3 bucket in relation to when you have added / made changes?
S3 has eventual consistency for overwrite PUTS but read after write consistency for new objects.
What is used to secure the data in the buckets?
Access Control Lists and Bucket Policies are used to secure the data in the buckets.
To what do Access Control Lists apply?
ACLs apply to individual files
To what do bucket policies apply?
Bucket policies apply to all contents of the bucket
What are the S3 Storage Classes?
- S3 Standard
- IA (infrequently accessed)
- One zone IA
- Intelligent tiering
- Glacier instant retrieval
- Glacier flexible retrieval
- Glacier deep archive
When would you use S3 IA?
You would use S3 IA for data you don’t access so often, but requires rapid access when needed. Cheaper than standard but a retrieval fee is charged.
What is intelligent about S3 Intelligent Tiering?
S3 Intelligent Tiering uses machine learning to move individual objects around based upon how you use/access your data
Should S3 Standard be the default choice?
Try to avoid S3 standard as much as possible. If you are going to use it then it makes sense to use S3 Intelligent tiering instead as no uplift in the cost.
What is the benefit of using S3 replication?
S3 replication enables high availability and backups.
What is S3 Transfer Acceleration?
S3 Transfer Acceleration enables quick and secure transfer of files over long distances between users and bucket locations.
It takes advantage of AWS CloudFront edge locations. This means it will be utilising AWS own backbone network.
What should be used in order to create an audit of requests made to the buckets?
Access logs can be used to create an audit for all requests made to the bucket.
These logs can then be sent to other buckets or buckets in other accounts.
In what 3 ways can bucket access be restricted?
Bucket access can be restricted using:
- bucket policies - apply across the whole bucket
- object policies - apply to individual files
- IAM policies to users and groups
How is S3 data encryption in transit achieved?
Encryption in transit is achieved using SSL/TLS and HTTPS
What Key Management services are used to manage S3 server-side encryption?
Server side encryption (on AWS):
- S3 Managed keys - known as SSE-S3
- AWS Key Management Service - known as SSE-KMS
- Server side encryption with customer keys - known as SSE-C
What are S3 Lifecycle Management Rules used for?
Lifecycle Management rules can be set so that S3 objects can be managed according to the defined rules set up.
eg, archiving old versions based on number of days old to different buckets, types of buckets, or tagged versions to different buckets, delete old versions of objects after x days etc etc.
What are the 3 different ways to share S3 buckets across accounts?
- Using bucket policies & IAM (applies to the entire bucket)
- Using bucket ACLs & IAM (individual objects)
- Cross-account IAM roles
What are S3 object locks used for?
S3 object locks can be used to meet regulatory requirements or to just add an extra layer of protection against object changes and deletion.
What are the S3 object lock modes?
- Governance mode
- Compliance mode
What does S3 Glacier Vault Lock allow?
S3 Glacier Vault Lock allows you to deploy and enforce compliance controls for individual Glacier vaults with a vault lock policy.
How does making documents public work with versioned objects?
Each version of an object needs to be made public individually. Just because one version of an object is public does not mean that the next version will be.
How do deletes work with versioned objects?
If you delete a versioned object it will just be a delete marker on the object, old versions will still exist.
How do you disable object versioning?
You cannot disable object versioning, it can only be suspended.
What is the scope of lifecycle rules in S3?
Lifecycle rules can be selected to apply to the whole bucket or to files that adhere to one or more filters
What do Lifecycle Rules allow?
Lifecycle Rules:
- the automating moving your objects between storage tiers
- they can be used in conjunction with versioning
- they can be applied to both current and previous versions of objects
What would you use if you didn’t want anyone to be able to modify or delete an object for a period of time, or indefinitely?
To prevent changes or deletions to an object you would use S3 Object Lock
What is the difference between Governance mode and Compliance mode under S3 Object Locks?
In Governance mode users can’t overwrite or delete an object version or alter its lock unless they have been granted explicit permissions.
In Compliance Mode a protected object version can’t be overwritten or deleted by any user.
What are Legal Holds?
Legal Holds prevent an object version from being overwritten or deleted.
Unlike Retention Periods however, a legal hold remains in effect until removed.
What is WORM in relation to Object Locks?
WORM is Write Once Read Many
What are the scope of Object Locks?
Object Locks can be applied to individual objects or across the bucket as a whole
What is the difference between S3 Object Lock and S3 Glacier Vault Lock?
S3 Object Lock can be applied to all objects in S3, whereas Glacier Vault Lock is applicable to only vaults within S3 Glacier.
How do prefixes affect S3 performance?
The greater number of prefixes you have, the better the performance will be.
You can get 3,500 PUT/COPY/POST/DELETE and 5,000 GET/HEAD requests per second per prefix.
What do you need to bear in mind with regards to performance when using KMS?
Uploading and downloading objects encrypted with KMS will count towards your (chargeable) KMS quota
What are multi-part uploads?
Multi-part uploads is the splitting of large files into smaller ones to increase the upload speeds.
Recommended for > 100 MB, required for > 5GB
What is S3 Select?
S3 Select enables the retrieval of a subset of data using simple SQL expressions. This provides speed and cost savings.
What is Glacier Select?
Similar to S3 Select, Glacier Select allows the running of SQL queries against Glacier directly.
Why would you use Consolidated Billing?
Consolidated Billing allows you to use economies of scale across all your AWS accounts
When using AWS Organisations, what should the Paying account be used for?
When using AWS Organisations, the Paying account should be used for billing purposes only and have no resources deployed into it
What are Service Control Policies (SCP) used for?
Used as part of AWS Organisations, SCP is used to restrict accounts or OU’s from doing certain things. For example, stop the accounts account deploying EC2 instances