S3 Flashcards

1
Q

How are files stored in S3?

A

Buckets
In S3, files are stored in buckets. Buckets are similar to folders on your computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How many files can be stored in S3 Buckets?

A

There are no limits on the number of files you can store in a bucket. Buckets also provide additional features such as version control and policies.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How many storage types are in S3?

A

S3 has six storage classes based on general use cases.

S3 standard
S3 standard IA
Zone IA
Intelligent tiering
Glacier
Glacier Deep Archive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

S3 Standard

A

S3 Standard is the default storage plan you will be put into when you start using S3. The standard storage class has excellent performance, durability, and availability.

S3 Standard is best if you have data that you have to access frequently.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

S3 Infrequent Access (S3-IA)

A

S3 Infrequent Access (S3-IA)
S3 Infrequent Access offers a lower price for data compared to the standard plan. You can use S3-IA for data that you need less often.

S3-IA is great for use cases such as backups and disaster recovery.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Glacier

A

Glacier
Glacier is the least expensive storage option in S3 but is designed for archival storage. You cannot fetch data from Glacier as fast as Standard or S3-IA, but it is a great option for long term data archival.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Storage Lifecycle Policy

A

In addition to choosing one of these three storage classes, you can also set lifecycle policies in S3. This means that you can schedule files to be moved automatically to S3-IA or Glacier after a certain period of time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

S3 Benefits

A

It’s Affordable
It’s Scalable
It’s Secure
It Has Versioning
It’s Durable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

It’s Affordable

A

It’s Affordable
S3 is cheap. I mean super cheap compared to other storage solutions. And with S3, you only pay for what you use. There are no upfront costs, no setup. It’s just plug and play.

In addition to affordable pricing, S3 offers a Free tier. This free tier comes with 5GB of storage space, 20,000 GET Requests, 2,000 PUT, COPY, POST, or LIST Requests and 15GB of Data Transfer. The free tier is available every month for the first year.

With S3 you can avoid paying for space or bandwidth you might not even need.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

It’s Scalable

A

It’s Scalable
S3 scales with your application. Since you pay only for that you use, there is no limit to the data you can store in S3.

This is helpful during multiple scenarios, especially during an unexpected surge in user growth. You don’t have to buy extra space. S3 has you covered.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

It’s Secure

A

It’s Secure
One of the many reasons companies prefer S3 is its inclination towards security. While you have to secure custom server setups, S3 is secure by default.

This does not mean you cannot store publicly accessible information in S3. S3 locks up all your data with high security unless you explicitly configure not to.

S3 also maintains compliance programs, such as PCI-DSS, HIPAA/HITECH, FedRAMP, EU Data Protection Directive, and FISMA, to help you meet your industry’s regulatory requirements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

It Has Versioning

A

It Has Versioning
Versioning means keeping multiple copies of a file and tracking its changes over time. This is useful, especially when you handle sensitive data.

You can also retrieve accidentally deleted files when you enable versioning with S3.

However, if you enable versioning, you are storing multiple copies of the same document. This can have an effect on pricing as well as read/write requests you make.

So just take that into account while integrating versioning for your application.

Versioning is disabled by default for S3 but you can enable versioning using the AWS Console.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

It’s Durable

A

It’s Durable
Data durability is an underrated feature of S3. Given how common data loss is among companies, data durability is a core factor to consider when building enterprise software.

S3 provides a highly durable storage infrastructure. S3 redundantly stores data in multiple facilities, making you data safe in the event of a system failure. S3 also performs regular data integrity checks to make sure your data is intact.

S3 offers 99.999999999% durability (called the 9s durability) and 99.99% availability of objects over a given year.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

S3 Use Cases - Static Web Hosting

A

Static Website Hosting
You can use S3 as a static website hosting platform. The difference between static and dynamic websites is that dynamic websites receive and process user input. Static websites are used only for displaying information.

With the advent of Single Page Applications, you can host a complete web app on S3, often free of charge.

Frameworks like React and Angular have made user input processing happen within the browser. You can build a SPA that listens to third party APIs and host it within S3.

S3 also has great support for routing, so you can use your own custom domain as well.

I recently wrote an article on hosting a React web app using S3 and you can find the article here.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

S3 Use Cases - Analytics

A

Analytics
You can run queries on your S3 data without moving your data to an analytics platform. This makes S3 a great use case for building powerful analytics applications.

S3 offers multiple options including S3 Select, Amazon Athena, and Amazon Redshift Spectrum. You can also combine these with AWS Lambda to perform data processing on the fly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

S3 Use Cases - File Sharing

A

File Sharing
Amazon S3 can be also used as a cheap file sharing solution. Like I mentioned earlier in the article, the famous file sharing service Dropbox was first built on top of S3.

With flexible security policies, you can configure your S3 buckets with custom permissions for different customers. S3 also offers transfer acceleration to speed up large file transfers across longer distances.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

S3 Summary

A

Summary
Amazon S3 is a great tool to work with for your web or mobile application storage requirements. With on-demand pricing and scalability at its core, S3 has been the favored cloud storage solution for small and large businesses alike.

Companies from Netflix to Pinterest trust S3 with their data, thanks to the 99.999999999% data durability promise from Amazon.

You can also use Amazon S3 as a personal storage solution or host your next project via static site hosting. In a nutshell, S3 is a great multi-purpose storage solution catering to a wide range of use cases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What type of storage is S3?

A

Object storage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is the availability of S3?

A

4 x 9s

20
Q

What is the durability of S3?

A

11 X 9s

21
Q

How many availability zones is S3 data replicated to?

A

Usually 3 AZ, sometimes less.

22
Q

What is the min size of data you can put in S3?

A

1 byte

23
Q

What is the max size of data you can place in S3?

A

5 TB

24
Q

Is encryption at the object level or the bucket level?

A

Encryption is enabled and applied at the bucket

25
Q

If one tenant has a bucket called ‘dog’ can you have a bucket called ‘dog’?

A

No buckets has to be unique with in a region.

26
Q

What are the two types of encryption available to S3?

A

Server side and Client side.

27
Q

What is the encryption used on server side encryption for S3?

A

AES-256

28
Q

Who holds the master key for S3 encryption?

A

AWS- in KMS

29
Q

Are all objects encrypted using the same master key? (are the keys changed over time)

A

No the keys are rotated each month.

30
Q

The master keys is used in the process to encrypt a object, is this the only key?

A

No there is a per object key.

31
Q

Is the per object key encrypted?

A

Yes it is encrypted by the master key.

32
Q

Is the object data encrypted at rest?

A

Yes

33
Q

Where is the per object stored?

A

In a hidden S3 bucket.

34
Q

Is there other options available to encrypt a object?

A

Client side encryption using the SDK.

35
Q

If you put data in a single region is that data/objects replicated to other regions?

A

No data stays with in a region.

36
Q

How can you delete a object after a week (period of time)

A

Use life cycle policies.

37
Q

Can life cycle policies be applied to just one object with in a bucket?

A

Yes using the prefix parameter.

38
Q

How would you apply life cycle policies to a entire bucket?

A

Use the ‘Apply to Entire Bucket’ parameter.

39
Q

If you do not need S3 data available on demand, how can you lower the cost of storage?

A

Use AWS Glacier.

40
Q

How can you move data into glacier storage?

A

Use life cycle policies.

41
Q

Can versioning and life cycle policies be used at the same time?

A

No.

42
Q

What is the minimum number of copies in availability zones of the S3 object are kept with in a region?

A

3

43
Q

What is WORM architecture?

A

Write one read many times.

44
Q

Is S3 a WORM architecture?

A

Yes.

45
Q

Eventual Consistency Definition

A

Eventual Consistency is a guarantee that when an update is made in a distributed database, that update will eventually be reflected in all nodes that store the data, resulting in the same response every time the data is queried.