S3 Flashcards

1
Q

What is S3 Bucket?

A

A directory with a unique name (across all regions and accounts).
They are defined on region level.

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

What is S3 Bucket Naming convention

A

No uppercase nor underscore. No prefix xn– nor suffix -s3alias. Starts with letter or number

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

How are the Objects saved in S3 Bucket?

A

Each file has a key that corresponds to a full path. e.g
s3://my-bucket/my_folder1/an0ther_folder/myfile.txt
then prefix: my_folder1/an0ther_folder/
and object name: my_file.txt
compose the key.
there are no directories even though the UI tricks us to think there is

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

What is a Object in S3 and what does it consist of.

A

Any content with body that doesn’t exceed 5TB. However if more then 5GB then must use “multi-part” upload
Consists of
1. Metadata (list of text key / value pairs)
2. Tags (Unicode key / value pair)
3. Version ID (if versioning enabled)

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

What are Security options in S3?

A
  1. User-based via IAM
  2. Resource-based
    a) Bucket policies - most common
    b) Object Access Control List (ACL) - finer grain
    c) Bucket Access Control List (ACL) - less common
  3. Encryption using encryption keys
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does S3 Bucket Policy look like?

A

It is JSON based, same as in IAM Policy. Can be created using a Policy generator

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

How can a IAM User gain access to S3 Bucket?

A

Through IAM Policies

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

How can an EC2 instance access S3 Bucket?

A

EC2 Instance Role can access an S3 Bucket.

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

How can an IAM User of different Account access our S3 Bucket?

A

with Usage of Bucket Policy and allowing cross-account access

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

How to ensure that none of the S3 Buckets in our account will ever be publicly accessible?

A

By setting Block all public access on the account level for all buckets or at the bucket level for only particular bucket.

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

Can S3 host websites?

A

Yes, but only static ones and with an AWS URL and only if all content of the bucket is publicly readable.

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

What is S3 Versioning?

A

It is a setting that enables creating multiple versions of the same file on the same key.
Overriding will create the file with version n+1
Deleting will put a delete marker on the version, but the object will still be restorable.

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

What happen when u suspend versioning in S3 Bucket?

A

All previously created versions stay, there will just not be any new ones.

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

How to permanently delete an Object while versioning enabled in S3 Bucket?

A

Go into the show versions view and then delete a specific version of a file.

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

What are two flavours of S3 replication?

A

CRR - Cross Region Replication
SRR - Same Region Replication

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

How does the S3 Replication work?

A
  1. Versioning must be enabled in both source and destination buckets
  2. Copying is async
  3. Buckets may be in different AWS Accounts
  4. S3 must have proper IAM Permissions
17
Q

Does the replication process replicate already existing data?

A

no, for that we need to create a one-time batch operation to replicate those and sync both buckets.

18
Q

What storage Classes does S3 Offer?

A
  1. Standard
  2. Standard-Infrequent Access (IA)
  3. One Zone-Infrequent Access
  4. Glacier Instant Retrieval
  5. Glacier Flexible Retrieval
  6. Glacier Deep Archive
  7. Intelligent Tiering
19
Q

What is S3 Durability?

A

How many objects is S3 allow to ‘lose’?
S3 is very high durability 11 9’s 99.999999999% of objects across multiple AZ
It’s allowed to lose 1 Object of 10.000.000 Objects every 10.000 Years
Durability is same across all storage classes.

20
Q

What’s S3 Availability?

A

How readily the service is.
Varies depending on storage class
S3 Standard has 99.99% Availability per year (53 mins a year)

21
Q

What are the params of S3 Stardard?

A

99.99% Availability
Used for frequent access
Low latency and high throughput
Can sustain 2 concurrent facility failures.

22
Q

What are the params of S3 Infrequent Access (IA)?

A

99.9% Availability
Cheaper to store but it costs a bit to retrieve.
good for backups and disaster recovery

23
Q

What are the params of S3 One Zone Infrequent Access (One Zone-IA)?

A

99.5% Availability
99.999999999 (11 9s) Durability but in ONE ZONE only

24
Q

What are the params of S3 Glacier Storage Class?

A

Very low cost of storage meant for archiving / backup
Object retrieval cost.

3 Classes:
- Instant retrieval (miliseconds)(>90 days), great for data accessed 1 a quarter
- Flexible Retrieval (>90 days) - u pay depending on how fast u want your data retrieved:
a) Expedited (1 - 5 mins)
b) Standard (3 - 5 hours)
c) Bulk (5 to 12 hours) - free
- Deep Archive (>180 days) - Standard (12 hours), Bulk (48 hours)

25
Q

What are the parameters of S3 Intelligent Tiering?

A

Small monthly monitoring and auto tiering fee.
It moves the files on the following scheme:
Frequent Access Tier - default (auto)
Infrequent Access Tier - >30days (auto)
Archive Instant Access Tier - >90days (auto)
Archive Access Tier -> >90 - 700+ days (optional)
Deep Archive Access Tier -> >90 - 700+ days (optional)

26
Q

What are 2 Types of S3 Encryption?

A

Server Side (file is encrypted by a server upon arrival) - always on.
Client-Side Encryption (file is encrypted by a user before upload)

27
Q

What is IAM Access Analyser for S3?

A

It is a tool that analyzes S3 Bucket policies, S3 ACLs, and Access point Policies to ensure that only intended people have access to the S3 Bucket.

28
Q

What are the reponsiblities of AWS in S3?

A

Infrastructure (global sec, durability, sustain data in concurrent loss of 2 facilities)
Configuration
Compliance on AWS end

29
Q

What are the responsibilities of User in S3

A

Setting up:
1. Versioning
2. Bucket Policies
3. Replication
4. Using the Storage Classes for cost effectiveness
5. Logging / Monitoring
6. Encrypting data on users end

30
Q

What is AWS Snowball?

A

Highly secure, portable device to collect and process data at the edge and migrate it in or out of AWS.
Use it when it takes more than a week to transfer data.

31
Q

What are the 2 types of Snowball?

A
  1. Snowball Edge Storage Optimized (210TB)
  2. Snowball Edge Compute Optimized (28TB)
32
Q

What do we need the Edge Computing?

A

To process data while it’s on the go being outside grid.
It allows to run EC2 Instances or Lambda functions on the edge.

33
Q

How does AWS Snowball Edge Pricing work?

A

Data IN Transfer is free
1. On-Demand (one-time service fee per job with a timeframe included)
Shipping days are not counted torwards the timeframe
2. Committed Upfont
for the edge computing (1-year / 3 years of usage) up to 62% discount compared to on-demand pricing

34
Q

What is Hybrid Cloud?

A

Bridge between AWS and on-prem allowing some infrastructure on prem some on AWS.
To access the S3 Bucket then on the own infrastructure u would need to build AWS Storage Gateway.