S3 Flashcards
This deck aims to help retain concepts related to the AWS S3 service.
Which S3 security feature allows to define principals that are allowed to access S3 resources under certain conditions?
S3 Bucket policy (resource-based policy)
Which S3 security feature provides controls across an entire AWS Account or at the individual S3 bucket level to ensure that objects will never be accessed publicly?
S3 Block Public Access
Name the S3 (legacy) security feature that defines which AWS accounts or groups are granted access and the type of access to both buckets and individual objects within a bucket.
S3 Access Control Lists (ACLs)
Provide a good use case for utilizing a bucket policy (resource-based policy) when configuring bucket access permissions.
For permissions that require anonymous user access or cross-account access, or when controlling access to a single S3 resource
Provide a good use case for utilizing an IAM policy (identity-based policy) when configuring bucket access permissions.
For permissions required within the same account, or when controlling access to a range of different resources
Which S3 feature allows you to keep multiple variations of an object and provides the ability to preserve, retrieve, and restore every variation?
S3 Bucket Versioning
When you create an S3 bucket, is versioning enabled by default?
No, by default versioning is disabled
Can versioning be disabled on the S3 bucket?
No, once enabled, versioning cannot be disabled, but it can be suspended and re-enabled when required
Which S3 security feature requires additional authentication to allow permanent object version deletion or changing the versioning state of the bucket?
MFA delete
Which S3 feature allows an application to upload a large object as a set of smaller parts uploaded in parallel?
S3 Multipart upload
Is it S3’s responsibility to combine smaller pieces into the original object during a multipart upload?
Yes
What is the recommended minimum file size to start considering S3 multipart upload?
100MiB
What is the minimum and maximum part size for an S3 multipart upload?
The minimum part size is 5MiB, and the maximum part size is 5GiB, the last part (leftover) can be less than 5MiB
Which S3 feature reduces the variability in internet routing, congestion, and speeds that can affect transfers, and logically shortens the distance to S3, resulting in faster uploads?
S3 Transfer Acceleration
What is the maximum number of data parts for an S3 multipart upload?
10,000 parts
Which components of AWS global infrastructure does S3 Transfer Acceleration utilize?
Edge Locations, to transfer data over the AWS Global Network
Which naming restriction may apply to the S3 bucket to enable the Global Acceleration feature?
The bucket name cannot contain periods and must be DNS-compatible
Is S3 Transfer Acceleration enabled by default?
No, it is disabled by default
Enabling Transfer Acceleration incurs additional costs
Are S3 buckets encrypted?
No, buckets are not encrypted but objects are
Which types of encryption does S3 support?
Client-side and server-side (SSE-S3, SSE-KMS, and SSE-C)
Which type of encryption protects data in transit and at rest so that data is never exposed to any third parties, including AWS?
Hint: Using this encryption type, you are responsible for key management as well as the encryption and decryption process.
Client-side encryption
Which type of S3 encryption automatically encrypts data at the object level as it is written and decrypts it for you when you access it?
Server-side encryption
Name a type of S3 server-side encryption, where S3 handles key management as well as the encryption and decryption process but provides no control over encryption keys and no role separation.
SSE-S3 (server-side encryption with S3-managed keys)
Name a type of S3 server-side encryption where S3 handles the encryption and decryption process while delegating KMS to manage encryption keys, providing key rotation control and role separation.
SSE-KMS (server-side encryption with KMS-managed keys)
Name a type of S3 server-side encryption where S3 handles the encryption and decryption process while delegating customers to manage encryption keys (customers provide encryption keys for each encryption or decryption operation).
SSE-C (server-side encryption with customer-provided keys)
Which S3 feature can reduce KMS request costs by decreasing the request traffic from S3 to KMS?
S3 Bucket-level keys
What S3 storage classes are there?
- Standard
- Standard IA
- One Zone IA
- Intelligent Tiering
- Glacier:
- Instant Retrieval
- Flexible Retrieval
- Deep Archive
Which S3 storage class should be used to store frequently accessed non-replaceable data?
Standard
Which S3 storage class has no retrieval fee but the most expensive storage fee?
Standard
Which S3 storage class should be used to store infrequently accessed, important, and non-replaceable data?
Standard IA
Which S3 storage class should be used to store infrequently accessed, non-critical data that can be easily recreated?
One Zone IA
Which S3 storage classes replicate data across 3 AZs?
- Standard
- Standard IA
- S3 Intelligent-Tiering
- Glacier IR, FR, DA
How is S3 billed?
- S3 incurs a GB/month storage fee
- Transfer out fee, and per 1k requests fee
- Some storage classes incur an additional retrieval fee and a minimum capacity charge (40-128KB), which can vary based on the storage class
Which S3 storage classes have a duration charge for a minimum of 30 days of storage?
- Standard IA
- One Zone IA
Which storage classes have a duration charge for a minimum of 90 days of storage?
- Glacier Instant Retrieval
- Glacier Flexible Retrieval
Which storage classes have a duration charge for a minimum of 180 days of storage?
Glacier Deep Archive
Which S3 storage class should be used to store non-replicable data that is not often accessed but requires access in real-time?
Glacier Instant Retrieval
Which S3 storage class should be used to store archival data, where frequent or real-time access is not required but can be accessed within a 12-hour window?
Glacier Flexible Retrieval
Which S3 storage class should be used to store archival data, where frequent or real-time access is not required but can be accessed within a 48-hour window?
Glacier Deep Archive
In which S3 storage class is data cold and not instantly accessible but can be temporarily retrieved to S3 Standard IA via Expedited (1-5 min), Standard (3-5 h), or Bulk (5-12 h) jobs (faster = more expensive)?
Glacier Flexible Retrieval
In which S3 storage class is data frozen and not instantly accessible but can be temporarily retrieved to S3 Standard IA via Standard (12 h) or Bulk (48 h) jobs (faster = more expensive)?
Glacier Deep Archive