S3 Flashcards
Identity policy vs resource policy scope
You can assign resource Policies to control access from same or different account. And can reference any identity from any source.
You can only control identity Policy for identities within your account.
Resource vs Identity policies access
Resource Policy can allow or deny anonymous principal
Identity policy has to be attached to a specific identity
Which policy has Principle parameter
Resource policy must reference a principal, while identity Policy do not have to.
Because a single resource policy can contain multiple principals.
Identity Policy are linked directly to an identity, the principal parameter is not necessary
Max number of policies per s3 bucket?
There can only be one bucket policy attached per bucket, but that Policy can contain many statements
Website Hosting Tip on Domain name vs Bucket name.
You can use a custom domain name for an S3 Bucket; if the domain name is thesame as the bucket name
S3 Domain name generation
Static website domain name is automatically generated by AWS using a combination of your domain name and Region
Dynamic vs static website
Dynamic websites have static contents that need to access/offload/fetch another server/database in order to deliver a web result to a user e.g, game leaderboard, or weather update website.
while
Static websites contain strictly out of band pages/contents. the static media are sitting and waiting to be delivered
Using S3 as a DR component
S3 can be used as a backup landing page for Dynamic website. The out of bound technique helps to keep a section of a webiste active during a total downtime in the main website, traffic is diverted to the static pages using Route53(Fail Over) until DR is successful.
S3 acts as the backup landing page by hosting static versions of critical pages that you want to keep accessible during a main website downtime.
Compatible protocles for S3 website?
Amazon S3 supports only the HTTP protocol. If your website uses HTTPS, then at failover the page displays the error “could not display this page”. To serve HTTPS requests, see How do I use CloudFront to serve HTTPS requests for my Amazon S3 bucket?
Block Public Access
Unticking the Block Public Access box only opens the S3 port for further settings. BTS, routing and protocol selection is done by clicking on other options in settings and permissions section, properts
Conceptual:
UnBlock public access = Enable http protocol
Read/get bucket policy = selecting port address
Enable public access via Acl = routing table settings to route
How to disable s3 Versioning
Versioning Can Not be disabled, however, it can be suspended.
An S3 object without versioning enabled has an iD of…….?
NULL
unless specified S3 will always return the …………………… version object
unless specified S3 will always return the Latest version object
Delete Marker
A special version of an object that hides all other versions of that object
Delete a delete Marker of an object
This will remove the delete marker from the object and make the object visible again. This is like an Undelete
To Permanently delete an object, specify it’s ID
Bucket volum and Versioning effect
You are billed for all versions While versioning is active, total volume of bucket is a sum of all objects (Both original and versioned).
In order to control the volume of your bucket, you may need to delete the bucket and re-upload objects without versioning enabled
MFA Delete
Versioning must be enabled
Delete or change a version state of an object using CLI/API call when MFA Delete is enabled
To Delete an object via an API call, you must generate and concatenate your MFA Serial number+token generated
Suspend Versioning
Suspend Versioning turns off versioning for subsequent uploads but does nothing to all previous versionsMu
Multipart upload
Only with files over 100MB. It helps in breaking up the file into small chunks as against single stream of data