Amazon S3 Flashcards

1
Q

What is Amazon S3?

A

Amazon S3 is an infinitely scalable object storage service used by websites and AWS services.

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

What are common use cases for Amazon S3?

A

Backup, Disaster Recovery, Archive, Hybrid Cloud, Application/Media Hosting, Data lakes, Static websites.

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

What is an S3 bucket?

A

A globally unique container for objects; region-specific.

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

What are naming rules for S3 buckets?

A

3-63 chars, lowercase only, no underscores, not an IP, no xn– prefix or -s3alias suffix.

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

What is an S3 object?

A

File stored in a bucket, has a key (full path), content, metadata, tags, version ID.

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

What is the max size of an S3 object?

A

5TB; >5GB requires multi-part upload.

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

What are S3 object metadata and tags?

A

Metadata are key-value pairs that store information about the object, like content-type or custom values (e.g., x-amz-meta-owner). Tags are key-value pairs used for organization, access control, and lifecycle rules.

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

What are user-based and resource-based S3 access controls?

A

User-based: IAM Policies; Resource-based: Bucket policies, Object ACLs.

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

What is a bucket policy in S3?

A

JSON policy to allow/deny access, enforce encryption, or grant cross-account access.

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

What is the purpose of Block Public Access settings?

A

To prevent data leaks; should remain on unless public access is intentional.

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

Can S3 host websites?

A

Yes, for static sites; accessible via special S3 website endpoint.

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

What does a 403 error on S3 website mean?

A

Likely missing bucket policy for public read access.

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

What is S3 versioning?

A

Keeps multiple versions per object. You can suspend versioning, but existing versions remain. Default version for pre-versioned files is “null”

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

What is S3 replication?

A

Replicates objects from source to destination bucket across or within regions.

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

What are requirements for S3 replication?

A

Enable versioning on both buckets and provide IAM permissions.

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

Can S3 replicate existing objects?

A

Not by default; use S3 Batch Replication.

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

Can S3 replicate deletes?

A

Yes for delete markers; versioned deletions are not replicated.

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

What is S3 replication chaining?

A

Not supported; replication does not cascade.

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

What are S3 the storage classes?

A

Standard, Standard-IA, One Zone-IA, Glacier IR/FR/DA, Intelligent Tiering.

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

What is the S3 durability?

A

11 nines (99.999999999%) across multiple AZs.

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

What is the S3 availability?

A

Varies by class; e.g., Standard: 99.99%.

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

When should you use S3 Standard?

A

Frequently accessed data with high availability needs.

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

What is Standard-IA and One Zone-IA?

A

Both are for infrequent access. Standard-IA stores in multiple AZs; One Zone-IA stores in one AZ, cheaper but less durable.

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

What is Amazon S3 Glacier?

A

Low-cost archive storage with delayed retrieval.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is S3 Glacier Instant Retrieval?
Access in milliseconds; for quarterly access data.
26
What are the S3 Glacier Flexible Retrieval modes?
Expedited (1–5 min), Standard (3–5 hrs), Bulk (5–12 hrs).
27
What is S3 Glacier Deep Archive?
For long-term storage; retrieval in 12–48 hours.
28
What is S3 Intelligent Tiering?
Auto-moves objects between tiers based on access patterns.
29
What tiers does Intelligent Tiering include?
Frequent, Infrequent, Archive Instant, Archive, Deep Archive.
30
What is used to move objects between S3 storage classes?
Lifecycle Rules.
31
What can Lifecycle Transition Actions do?
Move objects to another storage class after a set time.
32
What do Lifecycle Expiration Actions do?
Automatically delete objects, versions, or incomplete multipart uploads after a set time.
33
Can Lifecycle Rules target specific prefixes or tags?
Yes.
34
What storage class for thumbnails that can be deleted after 60 days?
S3 One-Zone IA with expiration rule.
35
Where should source images go that need to be retrieved quickly for 60 days?
S3 Standard with transition to Glacier after 60 days.
36
How to retain deleted S3 objects for 30 days, then archive?
Use S3 Versioning, transition noncurrent versions to IA then Glacier Deep Archive.
37
What does S3 Analytics help with?
Identifying when to transition objects between Standard and Standard IA. Report is updated Daily.
38
What events can trigger S3 Event Notifications and how quickly are they delivered?
S3 Event Notifications can trigger on events like ObjectCreated, ObjectRemoved, ObjectRestore, and Replication. They are typically delivered within seconds, though sometimes it may take a minute or longer.
39
What does EventBridge provide over standard S3 Events?
Advanced filtering, multiple destinations, reliable delivery.
40
What is the default request rate limit per prefix in Amazon S3?
3,500 PUT/POST/DELETE and 5,500 GET/HEAD requests per second per prefix.
41
What can be done to scale S3 requests further?
Use multiple prefixes.
42
When should Multi-Part Upload be used?
Recommended for files >100MB, required >5GB.
43
What does S3 Transfer Acceleration do?
Speeds up upload by routing through AWS edge locations.
44
What is the use of S3 Byte-Range Fetches?
Enables partial object retrieval and parallel downloads to improve performance and resilience.
45
What are S3 Object Tags used for?
Permissions, analytics grouping.
46
Can S3 tags or metadata be searched directly?
No, you must index them externally (e.g., in DynamoDB) for search functionality.
47
What prefix must user-defined metadata begin with?
x-amz-meta-.
48
What is SSE-S3?
Server-side encryption with S3-managed keys, AES-256, enabled by default.
49
What is SSE-KMS?
Server-side encryption using keys managed in AWS KMS; enables audit via CloudTrail.
50
What is SSE-C?
Server-side encryption with customer-provided keys; AWS does not store the key.
51
What is client-side encryption in S3?
Client encrypts/decrypts data outside AWS using own keys.
52
What header is used for SSE-S3?
x-amz-server-side-encryption: "AES256".
53
What header is used for SSE-KMS?
x-amz-server-side-encryption: "aws:kms".
54
What is a limitation of SSE-KMS?
Upload/download calls count toward KMS API quota.
55
What must be used with SSE-C?
HTTPS must be used; key sent in each request.
56
How is S3 encrypted in transit?
SSL/TLS encryption via HTTPS endpoint.
57
How can encryption be enforced on a bucket?
Use bucket policy to deny unencrypted PUTs.
58
What is CORS in S3?
CORS allows web applications running in one origin to make a request to resources in a different origin - like when a website tries to access an object in your S3 bucket
59
When is MFA required in S3, and what is MFA Delete?
MFA Delete requires MFA to permanently delete versioned objects or suspend versioning. MFA is not needed to enable versioning or list deleted versions.
60
What are S3 Access Logs?
Log all access requests to another S3 bucket.
61
What is a pre-signed URL in S3 and how long is it valid?
A temporary URL granting object access. Console: up to 12 hours, CLI: up to 168 hours.
62
What are S3 Access Points and how do they work with VPCs?
Access Points are custom S3 endpoints with their own policies. They can be restricted to a VPC using VPC Endpoints.
63
What is a VPC Origin Access Point?
S3 Access Point only accessible via VPC endpoint.
64
What is S3 Object Lambda?
Invoke Lambda to transform object before returning to caller.
65
Give a use case for Object Lambda.
Resize images dynamically for each requester.