AWS S3 and Storage Interview Questions and Answers (50 Questions on S3, EFS, FSx and Backup)
This page has 50 new interview questions on Amazon S3 and other AWS storage services, with full answers. S3 is used by almost every AWS customer, so interviewers ask about it at every level, from "what is a bucket" to "how do you stop a data leak".
1. An everyday example: a warehouse with labelled boxes
Storage mistakes are costly. A public bucket can leak customer data. A wrong storage class can raise the bill. A missing backup can lose years of work. Interviewers want to see that you can choose and protect storage well.
Think of a big warehouse. A bucket is one rented section. Each object is a labelled box, and the key is the label. Storage classes are the shelves: the front shelf is fast but costly, the basement is cheap but slow to reach. Versioning keeps old copies of a box when you replace it. Lifecycle rules are the manager who moves old boxes to the basement automatically. EFS is a shared cupboard many workers can open at once. EBS is a private locker tied to one worker.
How to use this page
- Say the "why" first in every answer. For example, why versioning matters before how to turn it on.
- Remember the key numbers: 3,500 writes and 5,500 reads per second per prefix, single PUT up to 5 GB, and the minimum storage durations for cheaper classes.
- Try the CLI examples on a practice bucket with dummy files only.
2. Fresher level questions
Start here if you are a fresher or have less than two years of experience. Try to answer each question aloud first. Then open it and compare.
Q1. What is the difference between a bucket, an object and a key in S3? Fresher
A bucket is a container for objects. You create it in one AWS Region.
An object is the data you store, such as a photo or a CSV file, plus its metadata.
A key is the full name of an object inside the bucket, such as reports/2026/sales.csv.
Everyday example: the bucket is a cupboard, the object is a file inside it, and the key is the label on the file.
The prefix reports/2026/ looks like a folder, but S3 has a flat structure.
Q2. What does "11 nines of durability" mean for S3? Fresher
S3 Standard is designed for 99.999999999 percent durability of objects over a year.
In simple words: if you store 10 million objects, you can expect to lose one object about once every 10,000 years, on average.
S3 achieves this by storing data redundantly across multiple devices and, for most classes, across at least three Availability Zones.
Durability is different from availability. Availability is about being able to read the object right now. Durability is about not losing it.
Q3. Name the S3 storage classes and when to use each. Fresher
The main classes are:
- S3 Standard: frequently used data.
- S3 Intelligent-Tiering: unknown or changing access patterns. S3 moves objects between tiers automatically.
- S3 Standard-IA: infrequent access, but needs fast reads when used.
- S3 One Zone-IA: infrequent, re-creatable data stored in one AZ.
- S3 Glacier Instant Retrieval: archive data read rarely but needed in milliseconds.
- S3 Glacier Flexible Retrieval: archive with retrieval in minutes to hours.
- S3 Glacier Deep Archive: lowest cost, retrieval within hours, for long-term records.
- S3 Express One Zone: very low latency, single-AZ, for performance-critical workloads.
Q4. What is S3 versioning? Fresher
Versioning keeps every version of an object in the same bucket.
When you upload a file with the same key, S3 keeps the old one as an older version. When you delete an object, S3 adds a delete marker instead of removing the data, so you can restore it.
Everyday example: the "version history" of a document in an online office suite.
Once enabled, versioning can only be suspended, not fully turned off. Old versions cost storage, so use lifecycle rules to expire them after some days.
Q5. Where can you set S3 Block Public Access, and why is it the first safety net against data leaks? Fresher
Block Public Access is a set of four settings that stop public access to buckets and objects, even if a policy or ACL tries to allow it.
You can set it at the account level and at the bucket level. For new buckets it is on by default.
It is the simplest safety net against data leaks. Keep it on, and serve public websites through CloudFront with Origin Access Control instead of making the bucket public.
Q6. Is data in S3 encrypted by default? Fresher
Yes. Since January 2023, S3 automatically encrypts all new objects at rest with server-side encryption using S3 managed keys (SSE-S3), at no extra cost.
You can choose stronger control with SSE-KMS, which uses AWS KMS keys and logs every key use in CloudTrail, or DSSE-KMS for two layers of encryption.
Encryption in transit is separate. Use HTTPS, and you can force it with a bucket policy that denies requests where aws:SecureTransport is false.
Q7. How long can an S3 presigned URL stay valid, and what can make it stop working early? Fresher
A presigned URL gives time-limited access to one object without making the bucket public.
It is signed with the credentials of someone who has permission. Anyone with the URL can use it until it expires.
aws s3 presign s3://demo-reports-bucket/invoices/inv-1001.pdf --expires-in 900Output:
https://demo-reports-bucket.s3.ap-south-1.amazonaws.com/invoices/inv-1001.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=900&...This link works for 900 seconds (15 minutes). With Signature Version 4 the maximum is 7 days, and it stops early if the signing credentials expire first, such as role credentials.
Q8. What is the difference between S3, EBS and EFS? Fresher
S3 is object storage. You access it over HTTP APIs. It is almost unlimited and good for files, backups, logs and data lakes.
EBS is block storage for one EC2 instance in one AZ, like a hard disk. It is good for operating systems and databases.
EFS is a managed file system using NFS. Many Linux instances and containers across AZs can mount it at the same time. It is good for shared content and home directories.
Q9. What is the maximum size of an S3 object? Fresher
Current AWS documentation says an S3 object can be up to 50 TB. This was raised from 5 TB in December 2025.
A single PUT request can upload up to 5 GB. Bigger objects must use multipart upload. AWS recommends multipart upload for objects over about 100 MB.
Multipart upload allows up to 10,000 parts, and each part is from 5 MiB to 5 GiB, except the last part which can be smaller.
Q10. What is an S3 lifecycle rule? Fresher
A lifecycle rule automatically moves or deletes objects based on age.
Example rule for a logs/ prefix:
- After 30 days, move to S3 Standard-IA.
- After 90 days, move to S3 Glacier Flexible Retrieval.
- After 365 days, delete.
- Delete old noncurrent versions after 30 days.
- Abort incomplete multipart uploads after 7 days.
This lowers storage cost without manual work.
Q11. How do you host a static website with S3? Fresher
There are two ways.
Simple way: turn on static website hosting on the bucket, set index.html and error.html, and allow public read. The website endpoint supports only HTTP.
Recommended way: keep the bucket private, and put CloudFront in front with Origin Access Control. Add an ACM certificate for HTTPS and a Route 53 alias record for your domain.
The second way is more secure and faster, because content is cached near users.
Q12. What is Amazon EFS? Fresher
Amazon EFS (Elastic File System) is a serverless, elastic NFS file system for Linux.
It grows and shrinks as you add and remove files, so you do not choose a size.
Many EC2 instances, ECS tasks, EKS pods and Lambda functions can mount it at the same time. With the Regional type, data is stored across multiple AZs.
You create a mount target in each AZ, and mount with the EFS mount helper, for example sudo mount -t efs fs-0abc1234:/ /mnt/efs.
Q13. What is Amazon FSx? Fresher
FSx gives fully managed third-party file systems:
- FSx for Windows File Server: SMB shares with Active Directory, for Windows apps.
- FSx for Lustre: very fast file system for HPC and machine learning, often linked to an S3 bucket.
- FSx for NetApp ONTAP: NetApp features such as snapshots, cloning and multi-protocol NFS, SMB and iSCSI.
- FSx for OpenZFS: ZFS-based NFS storage with snapshots and clones.
Choose based on the protocol and features your application needs.
Q14. What does AWS Backup do? Fresher
AWS Backup is a central service to create, schedule and manage backups across many services: EBS, EC2, RDS, Aurora, DynamoDB, EFS, FSx, S3 and more.
You create a backup plan with rules, such as daily backups kept for 35 days, and assign resources by tag.
Backups go into backup vaults. You can copy them to another Region or account, and lock vaults with Vault Lock so nobody can delete backups early.
Q15. How do you copy files to S3 and sync a folder with the CLI? Fresher
Use aws s3 cp for single files and aws s3 sync for folders.
aws s3 sync ./site s3://demo-site-bucket/ --delete --exclude "*.tmp"Output:
upload: site/index.html to s3://demo-site-bucket/index.html
upload: site/css/app.css to s3://demo-site-bucket/css/app.css
delete: s3://demo-site-bucket/old-page.htmlsync copied only new or changed files and, because of --delete, removed a file that no longer exists locally. Run with --dryrun first to see changes safely.
Q16. What is the difference between S3 Standard-IA and S3 One Zone-IA? Fresher
Both are for data you read rarely but need quickly when you do.
Standard-IA stores data across multiple Availability Zones, so it survives the loss of an AZ.
One Zone-IA stores data in a single AZ. It is cheaper, but if that AZ is destroyed, the data can be lost.
Both have a minimum storage charge of 30 days, a minimum billable object size of 128 KB, and a per-GB retrieval fee. Use One Zone-IA only for data you can re-create, such as thumbnails or secondary backup copies.
Q17. What is S3 Intelligent-Tiering? Fresher
Intelligent-Tiering moves objects between access tiers automatically based on how often they are used.
Objects not accessed for 30 days move to the Infrequent Access tier, and after 90 days to the Archive Instant Access tier. You can also opt in to deeper archive tiers.
If an object is accessed again, it moves back to the Frequent Access tier.
There are no retrieval fees, but there is a small monthly monitoring charge per object. Objects smaller than 128 KB are not monitored and stay in the frequent tier.
3. Mid level questions
These questions check how you use the service in real projects. Interviewers expect the why, the how and one real example.
Q18. How does S3 replication work and what does it need? Mid level
Replication copies objects automatically from a source bucket to a destination bucket.
- Same-Region Replication (SRR): to a bucket in the same Region, for example to another account for log collection.
- Cross-Region Replication (CRR): to another Region, for DR or lower latency.
Requirements: versioning must be enabled on both buckets, and S3 needs an IAM role with permission to read the source and write to the destination.
New objects are replicated after you create the rule. For existing objects, use S3 Batch Replication.
Q19. What is S3 Replication Time Control? Mid level
Replication Time Control (RTC) is an option for S3 replication when you need predictable replication time.
AWS designs RTC to replicate 99.9 percent of new objects within 15 minutes, and backs it with a service level agreement.
It also gives replication metrics and event notifications, so you can see pending bytes and replication delay.
Use it for compliance or DR plans that need a clear recovery point. It has an extra charge.
Q20. What is S3 Object Lock? Mid level
Object Lock stores objects in a write-once-read-many (WORM) model, so object versions cannot be deleted or overwritten for a set period.
- Governance mode: most users cannot delete, but users with a special permission can bypass it.
- Compliance mode: nobody, including the root user, can delete the version until the retention ends.
- Legal hold: blocks deletion with no end date until it is removed.
It needs versioning. It is used for financial records and as protection against ransomware.
Q21. What is S3 request performance per prefix? Mid level
S3 supports at least 3,500 PUT, COPY, POST or DELETE requests and 5,500 GET or HEAD requests per second per partitioned prefix.
There is no limit on the number of prefixes. So you can scale by spreading objects over many prefixes, such as logs/shard-01/, logs/shard-02/ and so on.
If you get 503 Slow Down errors, add retries with exponential backoff, spread requests over more prefixes, and ramp up traffic gradually.
Q22. When would you choose SSE-KMS over the default SSE-S3 encryption? Mid level
SSE-S3: S3 manages the keys fully. No extra cost and no extra setup. It is the default.
SSE-KMS: S3 uses a KMS key. You control who can use the key through the key policy, and every use is logged in CloudTrail. You can use a customer managed key and disable it if needed.
SSE-KMS adds KMS request costs and KMS request quotas apply. Turn on S3 Bucket Keys to reduce the number of KMS calls and the cost.
Q23. What are S3 Bucket Keys? Mid level
With SSE-KMS, S3 normally calls KMS for each object. For buckets with millions of objects, that adds cost and can hit KMS request limits.
An S3 Bucket Key is a bucket-level key that S3 creates from your KMS key for a time. S3 uses it to make data keys for many objects without calling KMS each time.
AWS says this can reduce KMS request costs by up to 99 percent. CloudTrail then shows the bucket ARN instead of each object ARN in KMS events.
Q24. How do you upload a very large file to S3 reliably? Mid level
Use multipart upload.
- The file is split into parts, which upload in parallel.
- If one part fails, only that part is retried.
- After all parts upload, S3 joins them into one object.
The AWS CLI aws s3 cp does this automatically for large files. You can tune it with settings like multipart_chunksize and max_concurrent_requests.
For long distances, S3 Transfer Acceleration can speed uploads through edge locations. Add a lifecycle rule to abort incomplete multipart uploads, because unfinished parts are charged.
Q25. How do S3 event notifications work? Mid level
S3 can send an event when something happens in a bucket, such as s3:ObjectCreated:* or s3:ObjectRemoved:*.
Destinations can be an SQS queue, an SNS topic, a Lambda function, or Amazon EventBridge.
Example: when a photo is uploaded to the uploads/ prefix, S3 invokes a Lambda function that makes a thumbnail.
Tips: filter by prefix and suffix, avoid writing output into the same prefix that triggers the event, and make the consumer idempotent because events can be delivered more than once.
Q26. What is an S3 Access Point? Mid level
An access point is a named network endpoint attached to a bucket, with its own access policy.
Why: one shared data lake bucket may serve many teams. One huge bucket policy becomes hard to manage. Instead, you create an access point per team or app, each with a simple policy, such as read-only on the finance/ prefix.
An access point can also be limited to a VPC, so it is reachable only from inside that network.
Q27. How do you find and recover a deleted object in a versioned bucket? Mid level
In a versioned bucket, delete adds a delete marker on top of the object.
aws s3api list-object-versions --bucket demo-reports-bucket --prefix reports/q3.csv --query "{v:Versions[].{id:VersionId,latest:IsLatest},d:DeleteMarkers[].{id:VersionId,latest:IsLatest}}"Output:
{
"v": [ { "id": "3HL4kqtJlcpXroDTDmJ.rmSpXd3dIbrHY", "latest": false } ],
"d": [ { "id": "UHxXyjmCGh7qP2t7kOsCFVlNAjsZRUQ5", "latest": true } ]
} The latest item is a delete marker. Delete that marker by its version ID with aws s3api delete-object --version-id, and the old version becomes current again.
Q28. What are Glacier Flexible Retrieval and Deep Archive retrieval options? Mid level
Objects in these classes must be restored before you can read them.
Glacier Flexible Retrieval:
- Expedited: usually 1 to 5 minutes.
- Standard: usually 3 to 5 hours.
- Bulk: usually 5 to 12 hours, lowest cost.
Glacier Deep Archive:
- Standard: within 12 hours.
- Bulk: within 48 hours.
The restore creates a temporary copy for the number of days you choose. Plan ahead for audits, because Deep Archive cannot give data in minutes.
Q29. What are minimum storage durations, and why do they matter? Mid level
Some cheaper classes charge for a minimum time, even if you delete the object earlier.
- Standard-IA and One Zone-IA: 30 days.
- Glacier Instant Retrieval and Glacier Flexible Retrieval: 90 days.
- Glacier Deep Archive: 180 days.
Example: if you move a file to Deep Archive and delete it after 10 days, you still pay for 180 days.
So do not move short-lived or very small objects to these classes. Small objects also have per-object overhead and minimum billable sizes in some classes.
Q30. What is the difference between a bucket policy and an IAM policy for S3? Mid level
A bucket policy is a resource-based policy attached to the bucket. It names principals, so it can grant access to other accounts, services such as CloudFront, or conditions like a VPC endpoint.
An IAM policy is attached to a user or role in your account and says what that identity can do on S3.
In the same account, either one can allow access, as long as nothing denies it. For cross-account access, both the bucket policy and the caller's IAM policy must allow it.
Q31. What is the difference between EFS Standard, Infrequent Access and Archive storage classes? Mid level
EFS has storage classes inside one file system:
- Standard: for frequently used files, with the lowest latency.
- Infrequent Access (IA): lower storage cost, with a fee when you read.
- Archive: lowest storage cost, for files used a few times a year.
Lifecycle management moves files between classes based on how long since they were last accessed, for example to IA after 30 days and to Archive after 90 days. The file path does not change, so apps do not notice.
Q32. What are EFS throughput modes? Mid level
EFS offers three throughput modes:
- Elastic: throughput scales up and down automatically with the workload, and you pay for what you use. AWS recommends it for most workloads, and it is the default when you create a file system in the console.
- Provisioned: you set a fixed throughput level, for steady high-throughput needs.
- Bursting: throughput grows with the amount of stored data, using burst credits.
If an older file system is slow because burst credits run out, switching to Elastic usually solves it.
Q33. What is AWS DataSync and when do you use it? Mid level
DataSync is a managed service to move large amounts of file and object data, online.
It copies between on-premises NFS or SMB shares and AWS storage such as S3, EFS and FSx, and also between AWS storage services.
It handles encryption, data integrity checks, scheduling, bandwidth limits and incremental copies.
Example: move 30 TB of office file shares to FSx for Windows over a few nights, then run a final sync during the cutover weekend.
Q49. What is AWS Storage Gateway? Mid level
Storage Gateway is a hybrid storage service. It connects on-premises applications to AWS storage using normal protocols.
- S3 File Gateway: apps write files over NFS or SMB, and the files are stored as objects in S3, with a local cache for fast access.
- Volume Gateway: block storage over iSCSI, backed up as EBS snapshots.
- Tape Gateway: a virtual tape library for existing backup software, with tapes stored in S3 and Glacier classes.
It runs as a virtual machine or hardware appliance in your data centre. Use it when apps must stay on-premises but you want cloud storage behind them.
Q50. What is S3 Storage Lens used for? Mid level
Storage Lens gives organisation-wide visibility into S3 storage use and activity.
It shows metrics such as total bytes, object counts, growth, noncurrent version bytes, incomplete multipart upload bytes, and how many buckets have encryption or versioning on.
It has a free tier of metrics and paid advanced metrics with longer history and prefix-level details.
Use it to find cost savings, such as a bucket where old versions take most of the space, and to check security best practices across all accounts.
4. Senior level and scenario questions
These questions check design thinking and troubleshooting. Think aloud. Say what you check first, what you change, and how you prevent it next time.
Q34. A security scan says an S3 bucket was public for two days. What do you do? Senior
Contain, investigate, fix and prevent.
- Contain: turn on Block Public Access for the bucket and the account at once.
- Investigate: check CloudTrail management events to see who changed the policy or ACL and when. If data events or server access logs are on, check which objects were read and from which IPs.
- Assess impact: classify the data. Amazon Macie can scan for personal data.
- Notify according to the company's incident and legal process.
- Prevent: SCP to stop disabling Block Public Access, Access Analyzer alerts, Object Ownership set to bucket owner enforced, and code review for bucket policies.
Q35. How do you protect S3 backups against ransomware or a rogue admin? Senior
Use several layers.
- Versioning so overwrites keep old versions.
- Object Lock in compliance mode with a retention period, so versions cannot be deleted early by anyone.
- Replication to a bucket in a separate, locked-down backup account.
- SCPs that deny deleting the lock settings and replication configuration.
- MFA for sensitive admin actions and separate admin roles for the backup account.
- AWS Backup with Vault Lock for other services.
Test restores regularly, because a backup that cannot be restored is not a backup.
Q36. Your S3 bill suddenly doubled. How do you find out why? Senior
Break the bill down by usage type.
- Use Cost Explorer grouped by usage type: storage, requests, data transfer out, or retrieval.
- Use S3 Storage Lens to find which buckets and prefixes grew, and whether noncurrent versions or incomplete multipart uploads are large.
- Common causes: versioning without lifecycle for old versions, a job writing many small objects, a public download link going viral, cross-Region replication, or a lifecycle rule moving tiny objects to IA.
- Fix with lifecycle rules, CloudFront caching for downloads, and alarms with AWS Budgets.
Q37. An application uploads millions of small files per day to S3 and performance is poor. What do you suggest? Senior
Look at the access pattern first.
- Spread keys across many prefixes to use more parallel request capacity.
- Batch small records into larger files, such as hourly Parquet files, using Firehose or a batch job. This also cuts request costs.
- Use multipart and parallel uploads in the SDK, and reuse HTTP connections.
- Add retries with jitter for 503 errors.
- For very low latency in one AZ, consider S3 Express One Zone directory buckets.
Avoid moving small objects to IA or Glacier classes, because of minimum sizes and per-object costs.
Q38. How would you design a data lake on S3? Senior
Use S3 as the single storage layer with clear zones.
- Raw zone: data as it arrives, never changed.
- Clean zone: validated data in a columnar format such as Parquet.
- Curated zone: business-ready tables, often in Apache Iceberg format.
Add the AWS Glue Data Catalog for metadata, Athena for SQL, and Lake Formation or S3 Access Points for fine-grained access.
Partition data by date or another common filter so queries scan less. Encrypt with KMS, turn on access logging, and use lifecycle rules for old raw data.
Q39. How do you migrate 200 TB from an on-premises NAS to AWS with limited bandwidth? Senior
Calculate first. 200 TB over a 1 Gbps link at about 80 percent use takes over 20 days of continuous transfer.
Options:
- Online with AWS DataSync if the time window allows. Use scheduling and bandwidth limits to protect office users.
- Increase bandwidth with AWS Direct Connect if the migration is large and repeated.
- Offline transfer options from AWS if the network is too slow. Check the current AWS offline data transfer offerings, because these services change.
In all cases, do a final incremental sync during cutover and verify data with checksums.
Q40. A web app on several EC2 instances needs shared uploaded files. Would you use EFS or S3? Senior
It depends on how the app reads files.
- If the app expects a normal file system path and file locking, EFS is the quickest choice. Mount it on all instances. It works across AZs.
- If you can change the code, S3 is usually better for user uploads. It is cheaper at scale, works with CloudFront for fast downloads, and supports presigned URLs so browsers upload directly without passing through your servers.
A good answer explains both and recommends S3 for new apps, EFS for legacy apps that need POSIX.
Q41. How do you make sure deleted data is truly gone for privacy requests? Senior
Deleting in S3 must cover all copies.
- In versioned buckets, delete all versions of the object, not only add a delete marker.
- Delete replicated copies in other buckets or Regions.
- Check backups, caches such as CloudFront, analytics copies, and logs.
- Object Lock may block deletion until retention ends, so design retention with privacy rules in mind.
- Record the deletion for audit.
A good design keeps personal data in known places with lifecycle rules, so such requests are easy to fulfil.
Q42. Why might an S3 GET return 403 even though the IAM role has s3:GetObject? Senior
Check each possible blocker.
- The bucket policy has an explicit Deny, for example requiring a VPC endpoint or HTTPS.
- The object is encrypted with SSE-KMS and the role lacks kms:Decrypt, or the key policy does not allow it.
- The object is owned by another account and ACLs are still in use. Set Object Ownership to bucket owner enforced.
- An SCP or permission boundary blocks it.
- The object does not exist and the caller lacks s3:ListBucket. Then S3 returns 403 instead of 404.
- A wrong Region or a presigned URL that has expired.
Q43. How do you serve private videos to paying users only? Senior
Keep the S3 bucket private and serve through CloudFront with Origin Access Control.
- After a user logs in and pays, the app creates a CloudFront signed URL or signed cookies with a short expiry.
- Signed cookies are good for video streaming, because one cookie can cover many segment files of an HLS stream.
- Use a trusted key group with a public key in CloudFront. Keep the private key in Secrets Manager.
- Add AWS WAF rate limits and geographic rules if needed.
This hides the bucket, caches video near users, and stops link sharing after expiry.
Q44. What is S3 Express One Zone and when would you use it? Senior
S3 Express One Zone is a high-performance storage class that stores data in a single Availability Zone, in special directory buckets.
It gives very low, consistent latency, and is designed for workloads that make many requests, such as machine learning training, analytics and interactive queries.
Put compute in the same AZ for the best results. Because it is one AZ, keep another copy of important data in a regional class if you cannot recreate it.
Q45. How would you audit who read sensitive objects in a bucket? Senior
Management events do not show object reads. You need data-level logging.
- Turn on CloudTrail data events for that bucket or prefix. They record GetObject, PutObject and DeleteObject with the caller identity and source IP.
- Or turn on S3 server access logs to a separate log bucket.
- Query logs with Athena or CloudTrail Lake.
Data events can be costly for busy buckets, so limit them to sensitive buckets or prefixes with advanced event selectors.
Q46. How do you design storage for a three-tier app's backups to meet an RPO of 15 minutes? Senior
RPO means how much data you can lose.
- RDS or Aurora: automated backups give point-in-time restore, usually to within about 5 minutes. For Region-level loss, use cross-Region automated backup replication or Aurora Global Database.
- EBS: frequent snapshots alone may not meet 15 minutes. Keep important data in the database or on EFS instead.
- S3 user files: Cross-Region Replication with RTC for predictable replication time.
- AWS Backup with copy to another Region and account, plus Vault Lock.
Then test a full restore and measure the real RPO and RTO.
Q47. How do you reduce data transfer costs for a bucket that serves large files to the internet? Senior
Data transfer out from S3 to the internet is charged per GB.
- Put CloudFront in front. Data transfer from S3 to CloudFront has no charge, and CloudFront pricing is often lower. Caching also reduces requests to S3.
- Compress files and use modern formats.
- For partners who download big datasets, consider Requester Pays so they pay for their downloads.
- Use VPC gateway endpoints for traffic from your own EC2 instances, so it avoids NAT gateway charges.
Check the cost after a week with Cost Explorer.
Q48. An app writes to S3 and immediately lists the prefix, but a new file seems missing. Why? Senior
S3 has strong read-after-write consistency for PUT and DELETE, and list operations reflect writes right after they complete.
So the cause is usually elsewhere:
- The write had not finished or failed silently. Check the PutObject response.
- The list used a different prefix or Region, or the result was paginated and the file was on the next page.
- A cache in the app or CloudFront served an old listing.
- The object was written to a different bucket or path because of a config bug.
Explain the consistency model clearly, then debug the code path.
5. Frequently asked questions
Is S3 a file system?
No. S3 is object storage. It has no real folders. The "folders" you see are just key prefixes. For a shared POSIX file system, use EFS or FSx.
Which S3 question is asked most in interviews?
Storage classes and lifecycle, followed by security: Block Public Access, bucket policies, encryption and presigned URLs.
How do I practise S3 safely?
Use a practice account, keep Block Public Access on, upload only dummy files, and delete test buckets after the lab. Watch request and storage costs in the billing console.
6. Quick revision
- S3 is designed for 99.999999999 percent (11 nines) durability.
- Strong read-after-write consistency for all requests.
- New objects are encrypted at rest by default with SSE-S3.
- Versioning plus Object Lock protects against deletes and ransomware.
- EFS is shared NFS storage across AZs. FSx gives managed Windows, Lustre, ONTAP and OpenZFS file systems.
7. Related chapters
- What Is Amazon S3? S3 vs EBS vs EFS, Storage Classes and Pricing Explained
- S3 Bucket Policy Examples: Block Public Access, ACLs, Pre-Signed URLs and Encryption
- S3 Versioning, Lifecycle Rules and Replication (SRR and CRR) Explained
- AWS CLI S3 Commands: cp, sync and s3api Examples
- AWS SDK S3 Examples: Upload, Download, Presigned URLs and Multipart (Python, PHP, Node.js)
- Mount Amazon EFS on EC2 Step by Step
- AWS Backup and Disaster Recovery Plans Explained for Beginners
This page is one part of a 500-question AWS interview set. Open the full list here: All 500 AWS interview questions.