S3 Flashcards

Revise S3

1
Q

What is object storage ?

A

manages data as objects as opposed to file storage or block storage

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

S3 objects consist of ?

A

Key, Value, Version ID, Metadata

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

Universal namespace meaning ?

A

Each bucket name should have unique name much like domain name. Also DNS complaint.

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

S3 file size limit ?

A

0B to 5TB

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

Durability of object means ? What is the durability of S3 object ?

A

Chances of the object being intact. 11 9’s durability i.e. 99.99999999999

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

Storage Classes of S3 and how they differ ?

A

Standard (99.99% avail, Replicated across 3 zones),
Standard IA (cheaper if access less than once per month, retrieval fee, min days - 30)
One Zone IA (Avail 99.5%, 20% cheaper, durability reduced, min days - 30)
Glacier (long term storage, min days - 90)
Glacier deep archive (12 hrs retrieval, min days - 180)
Intelligent tiering (uses ML to decide lifecycle)

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

By default what is the security measures ?

A

All buckets are private

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

Logging of bucket request ?

A

Can be enabled, log files are generated in different bucket and can be saved to different bucket in different account as well

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

Access Control Lists vs Bucket Policies ?

A

ACL are legacy but convenient to use. For complex rules bucket policies are required.

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

Encryption in S3 transit provided by ?

A

SSL/TLS

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

At rest encryption in S3 ?

A

Server side encryption possible.

  1. SSE - AES - S3 handles the keys, AES-256 architecture used
  2. SSE - KMS - envelope encryption, you manage the keys that in turn encrypts the keys used by AWS
  3. SSE - C - client keys used
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

S3 new object PUT consistency ?

A

Read After Write consistency. You can immediately read after uploading to S3

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

S3 overwrite / delete consistency ?

A

Eventual consistency provided. It takes time for S3 to replicate versions in different AZs so might take few seconds.

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

S3 CRR ?

A

Cross region replica allows to store in different regions for higher durability in case of potential disasters. Both buckets should have versioning on. Can be in different accounts.

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

S3 versioning ? Disabled ? Lifecycle rules ? Deletion

A

Stores all versions of the object.

  • Cannot be disabled once enabled. Only suspended.
  • Fully integrates with lifecycle rules
  • Simply deleting an object would insert a delete marker and S3 will return 404 on seeing it. To actually delete you need to specify version as well while deleting.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

S3 Lifecycle Management ?

A

Can be automatically moved to different storage classes. You can select either current version as well as all previous versions.

17
Q

S3 Transfer Acceleration ? When to use it ?

A

S3 TA is used to optimise the path that S3 objects follow inside the Amazon Backbone Network. Cloudfront is used to accelerate the transfer from edge locations to S3, rather than direct S3. Speed tool can be used for comparison of normal upload vs TA.

18
Q

What are S3 preassigned URLS ? When used ?

A

They are used to grant access to private objects for certain amount of time. Let’s say user logged in and we need to make him download something so we just expose it for 5 seconds.
aws s3 preasign s3://bucket/ object –expires-in 300

19
Q

Who can delete the objects from bucket ?

A

Only root user

20
Q

MFA Delete ?

A

Requires MFA on any delete. AWS CLI and versioning required.

21
Q

You can create buckets in which region ?

A

S3 buckets can be created in any region but in interface we see global region so all listed

22
Q

Version ID of the first time object is uploaded when versioning has not been enabled ?

A

NULL. If versioning is turned on then even first time upload will have a version ID.

23
Q

My original object was public, the new version of same will also be ?

A

No the new versions don’t by default inherit the properties of previous versions

24
Q

Does enabling Server Side encryption turns it on for all files in bucket ?

A

No the pre-existing files have to be encrypted by going to their properties. New files will be automatically encrypted.

25
Q

S3 CLI commands ?

A

ls, cp, mv, preassign

26
Q

Can I change storage class while CRR ? And ownership ?

A

Yes. To save cost this can be done. Even ownership can be changed to some other account.

27
Q

What is policy generator ?

A

We can use it to define bucket policies, rather than writing the JSON.

28
Q

What do principal and ARN stand for in bucket policy generator ?

A

Principal is the resource accessing the bucket, ARN is the bucket/bucket path to which access needs to be modified.

29
Q

Successful upload of object return what status ?

A

HTTP 200

30
Q

Snowball used for ?

A

Transferring large data to S3. End to end encryption. uses Trusted Platform Module. 50 TB and 80 TB sizes.

31
Q

Snowball edge used for ?

A

For transferring and also performing local workloads or edge computations. Storage, compute or GPU optimised. 100 TB or 100TB clustered.

32
Q

Snowmobile used for ?

A

100 PB of data transfer capability. To S3 or Glacier.