Deck 1 Flashcards
S3 object size
From 1 byte to 5 TB
S3 bucket URL format
https://S3-.amazonaws.com/
S3 response when upload successful
HTTP 200 response
S3 Data consistency model
Read after write for PUTS
Eventual consistency for overwrite PUTS and DELETES
S3 objects consist in…
Key Value (sequence of bytes) Version ID Metadata Subresources (ACL, Torrent)
Things to take in account when naming S3 objects
First 16 characters determine node where S3 stores the file
Add randomness to the file name
S3 availability and durability
Availability 99,99%
Durability 99,999999999% (11 nines)
S3 storage tiers
S3 (default, 99,99% availability 99,999999999% durability)
Infrequent Access (cheaper storage fee, retrieval fee 99,9% availability 99,999999999% durability )
Reduced Redundancy Storage ( 99,99% availability 99,99% durability)
Glazier (Archival, really cheap, 3-5 hours to restore)
Is it possible to remove S3 versioning?
No, only disable
How much space is occupied when S3 versioning is enabled?
The sum of all versions
How to restore a deleted file with versioning enabled in S3?
Delete the delete marker
Is it possible to use lifecycle management in conjunction with versioning?
Yes
How many days should you wait before deleting an object from Glacier?
Glacier is designed to store objects for at least 90 days. Costs incur for 90 danys
What is an edge location in CloudFront?
Location where content will be cached
What is an origin in CloudFront?
Origin of all files that the CDN will distribute. Can be: -S3 bucket -EC2 instance -ELB -Route 53
What is a distribution in CloudFront?
Name given to the CDN.
Consists in a collection of edge locations
Types of distributions in CloudFront
- Web distribution
- RTMP (media streaming)
Is it possible to write to an edge location?
Yes
What determines the amount of time an object is cached in CloudFront?
TTL
Is it possible to clear cached objects in CloudFront?
Yes, but you will be charged
Is it possible to restrict access to contents in CloudFront?
Yes, you can use signed URLs or signed cookies
How to set up access to an S3 bucket?
ACL
Bucket Policies
Where can you store access logs for an S3 bucket?
Another bucket
Another AWS account
Ways of encrypting data in S3
- In transit:
- -SSL/TLS
- At rest:
- -Server side encryption:
- –SSE-S3 (S3 managed keys)
- –SSE-KMS (AWS Key Management Service managed keys)
- –SSE-C (Customer provided keys)
–Client side encryption