Amazon S3
S3
Amazon S3 is an AWS service that stores files and other data as objects. Applications retrieve an object using its bucket and key instead of opening it from a local disk.
Also known as: объектное хранилище, object storage
What Amazon S3 is
Amazon Simple Storage Service (S3) is managed object storage. Think of a backup job that needs to keep a database dump somewhere other than the machine that created it. The job can upload the dump to S3 and retrieve it later without provisioning a disk or running a file server. The same model works for user uploads, build artifacts, and datasets used by analytics jobs.
How objects are stored and retrieved
A bucket is a container you create in an AWS Region. An object is the stored data and its metadata, such as the content type. A key is the name used to address the object within the bucket. In a general-purpose bucket, reports/2026/jan.csv is one key, not a file nested inside two filesystem directories. The slash-separated parts make it convenient to list objects by prefix.
Clients use the S3 API over HTTPS, often through an AWS SDK or the AWS CLI. PUT writes an object and GET reads it. Once a write succeeds, a subsequent read sees the new object, and a subsequent list reflects the change. This is strong consistency, not a guarantee that writes to several keys will appear as one atomic update. In a general-purpose bucket, a normal PUT to an existing key replaces the entire object. With S3 Versioning enabled, older versions remain available until explicitly deleted or expired by a lifecycle rule.
Example: private report downloads
Suppose an application puts generated invoices in a private bucket and stores each invoice's object key in a database. When a customer asks to download an invoice, the backend checks that the customer owns it, then generates a short-lived presigned GET URL. The browser fetches the bytes directly from S3 without having AWS credentials. Anyone who obtains that URL can use it while it is valid, so treat it as a temporary credential, not a one-time token.
What S3 does not replace
S3 is not a shared disk for software that expects file locks and in-place edits. It also does not provide the indexed queries an application database does: put invoice dates and customer IDs in the database and the PDF bytes in S3. Keep buckets private unless public access is a deliberate requirement. Give workloads only the permissions they need through IAM roles, and use S3 Block Public Access to help prevent unintended public exposure.
How it comes up in interviews
A common system design question is how to retain logs for a year without paying the same rate for all of them. Start by asking how often older logs are read and how quickly they must be available during an incident. Then explain how S3 Lifecycle rules can transition objects to lower-cost storage classes or expire them when retention ends. Compare total cost, including requests and retrieval fees, and check whether an archive tier requires a restore before the data can be read.