Aws s3 Interview Questions
Basic Aws s3 Interview Questions
- What is Amazon S3?
Amazon Simple Storage Service (S3) is an object storage service that allows users to store and retrieve large amounts of data securely in the cloud. - What are the main features of Amazon S3?
- Scalability
- High durability (99.999999999% durability)
- Multiple storage classes
- Versioning
- Encryption
- Lifecycle policies
- Cross-region replication
- How does Amazon S3 store data?
S3 stores data as objects within buckets. Each object consists of data, metadata, and a unique key. - What is an S3 bucket?
A bucket is a logical container in S3 where objects (files) are stored. Each AWS account can create multiple buckets. - How is data organized in S3?
Data in S3 is stored in a flat structure, without hierarchical folders. However, folders can be simulated using prefixes in object keys. - What is the difference between an S3 bucket and an object?
A bucket is a container for objects, while an object is the actual file stored in S3, including metadata and permissions. - How does S3 ensure data durability and availability?
S3 stores multiple copies of data across different Availability Zones (AZs) to ensure 99.999999999% (11 9s) durability. - What is the default storage class in S3?
S3 Standard is the default storage class, designed for frequently accessed data. - What are the different storage classes in S3?
- S3 Standard
- S3 Intelligent-Tiering
- S3 Standard-IA (Infrequent Access)
- S3 One Zone-IA
- S3 Glacier
- S3 Glacier Deep Archive
- How does versioning work in S3?
Versioning allows multiple versions of an object to be stored, preventing accidental deletions or overwrites. - What is S3 Transfer Acceleration?
A feature that speeds up uploads by routing traffic through AWS edge locations. - What is the maximum size of an object that can be uploaded in a single PUT request?
5 GB. - How can large objects be uploaded to S3?
Using Multipart Upload, which splits large files into smaller parts. - How does S3 handle object deletions?
- Soft delete (with versioning enabled, it keeps old versions)
- Hard delete (permanent deletion if versioning is disabled)
- What is the difference between S3 Glacier and S3 Glacier Deep Archive?
- S3 Glacier: Retrieval times of minutes to hours.
- S3 Glacier Deep Archive: Cheapest storage, but retrieval takes 12+ hours.
Security & Access Control
- How do you control access to an S3 bucket?
- IAM policies
- Bucket policies
- Access Control Lists (ACLs)
- Pre-signed URLs
- What are S3 bucket policies?
JSON-based policies that define permissions for the entire bucket. - What are S3 access control lists (ACLs)?
ACLs define permissions at the object or bucket level, allowing access to specific AWS accounts. - What is IAM and how is it used with S3?
IAM (Identity and Access Management) controls user access to AWS resources, including S3. - What is an S3 presigned URL?
A temporary URL that allows secure access to an S3 object without requiring AWS credentials. - How can you encrypt data stored in S3?
- Server-Side Encryption (SSE)
- Client-Side Encryption
- What are the different types of encryption in S3?
- SSE-S3 (managed by AWS)
- SSE-KMS (AWS KMS-managed keys)
- SSE-C (Customer-managed keys)
- Client-side encryption
- How does AWS KMS integrate with S3 encryption?
AWS KMS manages encryption keys used for SSE-KMS encryption. - How does S3 Object Lock work?
Prevents deletion of objects for a specified period (Compliance/WORM storage). - What is S3 Block Public Access?
A feature that blocks all public access to an S3 bucket.
Performance & Optimization
- How can you optimize the performance of S3?
- Enable Transfer Acceleration
- Use Multipart Upload for large files
- Use S3 Select to filter data
- What is Amazon S3 Intelligent-Tiering?
A storage class that automatically moves objects between frequent and infrequent access tiers. - How does multipart upload work in S3?
It splits large files into smaller parts, uploading them in parallel. - What is request rate and performance optimization in S3?
S3 supports thousands of requests per second but can be optimized using randomized prefixes. - What are lifecycle policies in S3?
Rules that automatically transition or delete objects after a set time. - How does S3 replication work?
Replicates objects between buckets for backup or compliance. - What are the differences between Cross-Region Replication (CRR) and Same-Region Replication (SRR)?
- CRR: Replicates data across different AWS regions.
- SRR: Replicates within the same region.
- What is S3 Select and how does it improve performance?
Allows SQL queries on objects, reducing data retrieval time. - How does Amazon Athena work with S3?
Athena is a query service that runs SQL queries on S3 data. - What is the difference between S3 Standard and S3 Standard-IA?
S3 Standard is for frequent access, while S3 Standard-IA is for infrequent access with lower cost.
Cost & Billing
- How is Amazon S3 pricing structured?
Based on storage, requests, and data transfer. - What factors affect S3 storage costs?
- Storage class
- Data retrieval fees
- Number of requests
- Data transfer
- How can you reduce S3 storage costs?
- Use lifecycle policies
- Move data to Glacier
- Delete unused objects
- What is S3 Object Expiration?
Automatically deletes objects after a set period. - How does S3 request pricing work?
Charges per GET, PUT, COPY, and LIST requests. - What are data transfer costs in S3?
- Inbound transfer is free.
- Outbound transfer incurs charges.
- What is the AWS Free Tier limit for S3?
- 5GB of Standard Storage
- 20,000 GET requests
Advanced Features & Integrations
- What is Amazon S3 Event Notification?
Triggers notifications for events like object creation or deletion. - How do you integrate AWS Lambda with S3?
Use S3 Event Notifications to trigger Lambda functions. - What is S3 Inventory?
Provides a report of objects stored in a bucket. - What is S3 Access Analyzer?
Identifies and fixes unintended public access. - How does AWS CloudTrail work with S3?
Logs S3 API calls for auditing. - How do you migrate data from on-premises storage to S3?
- AWS DataSync
- AWS Snowball
- What is the role of AWS Storage Gateway with S3?
Bridges on-premises storage and S3. - How does Amazon S3 integrate with AWS Glue?
AWS Glue extracts, transforms, and loads (ETL) data from S3.
Let me know if you need more details on any question! 🚀
