TechWriterDev
  • Cloud
    • AWS
      • 00_Doubts
      • CloudPractitioner
        • Cloud Computing
        • AWS Global Infrastructure
        • Introduction to AWS EC2
        • Elastic load balancer(ELB)
        • 04_Messaging_Queuing
        • Aditional Computing Service
        • Accessing AWS resources
        • AWS Networking
        • Storage
        • Amazon Database Solutions
        • Monitoring Tools
        • AWS Security
        • Distributed Denial Of Service Attacks
      • DeveloperAssociate
        • References
        • AWS DVA-C02 Services Index
        • Services
          • 00_IAM
            • Identity and Access Management (IAM)
            • Account Protection Mechanisms
            • Access Mechanism of AWS Resources
            • Security Tools
            • Responsibility Model
            • Advanced Concepts
          • 01_EC2
            • Elastic Compute Cloud (EC2)
            • EC2 Volume Types
            • Amazon Machine Image (AMI)
            • AWS charges for IPv4 address
          • 02_SecurityGroups
            • Security Groups
          • 03_Elastic_LoadBalancing
            • Terminology
            • Elastic load balancer
            • Features
            • Basics
          • 04_AutoScaling
            • Auto Scaling
          • 05_RDS
            • Relational Database Service (RDS)
            • Aurora
            • Security
            • RDS Proxy
          • 06_ElastiCache
            • Cache
            • Cache Offerings
          • 07_Route53
            • Basics of DNS
            • Route 53
          • 08_VPC
            • Virtual Private Cloud (VPC)
          • 09_S3
            • Simple Storage Service (S3)
            • S3 Features
            • S3 Encryption
            • S3 Features
            • S3 Bucket Policy and IAM Policy
          • 10_ECS
            • Elastic Container Service (ECS)
            • Elastic Container Registry (ECR)
            • AWS Copilot
          • 11_EKS
            • Elastic Kubernetes Service (EKS)
          • 12_SDK_CLI_Tips
            • Access AWS Resources
          • 13_CloudFront
            • Cloud Front
          • 14_Messaging
            • Simple Queue Service (SQS)
            • Simple Notification Service (SNS)
            • Fan Out Pattern
            • Kinesis
            • Compare and Contrast
          • 15_ElasticBeanStalk
            • Elastic Beanstalk
          • 16_CloudFormation
            • CloudFormation
            • Dynamic References
          • 17_Monitoring
            • AWS Monitoring
            • AWS CloudWatch
            • CloudWatch Alarms
            • Synthetics Canary
            • Amazon EventBridge (formerly CloudWatch Events)
            • X-Ray
            • OpenTelemetry
            • CloudTrail
          • 18_Lambda
            • Lambda
            • Lambda Integrations
            • Configuring Lambda
            • Lambda Layers
          • 19_API_Gateway
            • API Gateway
            • API Gateway Integrations
          • 20_DynamoDB
            • DynamoDB
            • Operations
            • Indexes
            • DynamoDB Accelerator (DAX)
            • DynamoDB Streams
            • Transactions
            • Integrations
          • 21_CICD
            • CICD
            • CodeCommit
            • CodePipeline
            • CodeBuild
            • CodeDeploy
            • CodeArtifact
            • CloudGuru
          • 22_SAM
            • Serverless Application Model (SAM)
          • 23_CDK
            • Cloud Development Kit (CDK)
          • 24_StepFunctions
            • Step Functions
            • Types of step function
          • 25_AppSync
            • AppSync
          • 26_Amplify
            • Amplify
          • 27_STS
            • Security Token Service (STS)
          • 28_DirectoryService
            • Active Directory
          • 29_KMS
            • Encryption
            • KMS API
            • Features
            • Cloud Hardware Security Module (HSM)
          • 30_SSM_Store
            • SSM Parameter Store
          • 31_SecretsManager
            • Secrets Manager
          • 32_Cognito
            • Cognito
      • Questions
        • AWS_Region
        • EC2
        • IAM
  • Database
    • MongoDb
      • Mongo db Basics
      • Mongo DB Atlas
      • Document
      • Import-Export based on Data Format
      • Mongo Shell Commands
      • Query Operators
      • Indexes
      • Upsert
      • MongoDB Aggregation Framework
      • Aggregation Framework Operators
    • PostgreSQL
      • POSTGRE SQL DataTypes
      • About table
      • Constraints
  • Technologies
    • RabbitMQ
      • RabbitMQ Concepts
      • Introduction to Exchanges
      • Introduction to Queues
    • Terraform
      • 00_Introduction
      • Configuration blocks
      • Commands
      • Variables
      • Terraform Cloud
      • Modules
  • Languages
    • Java
      • Logging
        • Getting Started
      • 00_Core
        • 00_Basics
          • Java Vs C++
          • Object oriented principles
          • Steps to compile a java program
          • JVM Internals
          • Understanding Java Development Kit
          • What is JIT Compiler?
          • Java data types
          • 07_identifiers_type_conversion
          • 08_references_and_packages
          • Steps for attaching scanner
        • Concurrency
          • 00_Threads
            • Threads
          • 01_ExecutorFramework
            • Executor Framework
            • Asynchronous Computation
      • 01_Backend
        • 01_HttpAndWebServerBasics
          • HTTP
          • Content Type
          • Web Server
        • 02_J2EE_Basics
          • J2EE_Basics
          • Why HttpServlet classs is declared as abstract class BUT with 100 % concrete functionality ?
        • 03_TomCatAndSession
          • What is a Session?
          • WebContainer
        • 04_PageNavigation
          • Cookies Additional Information
          • Page Navigation Techniques
        • 05_AboutServlet
          • CGI v/s Servlet
          • Executor Framework
          • Servlet Life cycle
          • SERVLET CONFIG
          • Servlet Context
          • Servlet Listener (web application listener)
        • 08_SpringBoot
          • Spring Boot
          • Some common annotations used in spring eco system
        • 09_SpringDataJPA
          • Spring Data JPA
        • Java_Language_Changes
          • JDK enhancement tracking reference
        • 06_ORM_Hibernate
          • readmes
            • Hibernate
            • Advantages of Hibernate
            • Hibernate Caching
            • Hibernate API
            • Hibernate Query API
            • Hibernate Annotations and JPQL
            • Entity and Value Type
        • 07_SpringFramework
          • bean_validation
            • Bean Validation
          • core
            • readme
              • Spring
              • Spring Framework Modules
              • Spring MVC Request flow
              • Dependency Injection
              • Spring Beans
              • 06_Spring_Framework_Annotations
      • 03_Tools
        • Maven
          • Maven
  • SoftwareEngineering
    • DesignPatterns
      • Notes
        • Basics
        • OOP
        • SOLID Principles
        • 03_Creational
          • Abstract Factory (aka Kit)
          • Builder
          • Factory Method (aka Virtual constructor)
          • Prototype
          • Singleton
        • 04_Structural
          • Adapter (aka Wrapper)
          • Bridge (aka Handle | Body)
          • Composite
          • Decorator (aka Wrapper)
          • Facade
          • Flyweight
          • Proxy (aka Surrogate)
        • 05_Behavioral
          • Chain of Responsibility
          • Command (aka Action | Transaction)
          • Iterator (aka Cursor)
          • Observer (aka Publish-Subscribe | Dependents)
          • Strategy (aka Policy)
    • Principles
      • REST
        • REST
  • Tools
    • Containers
      • Docker
        • Docker
        • Docker Image
        • Commands
        • Compose
        • Best Practices
      • Kubernetes
        • Kubernetes
    • VCS
      • Git
        • Quick reference of useful Git commands
Powered by GitBook
On this page
  • AWS Instance Stores
  • Amazon Elastic Block Store (Amazon EBS)
  • EBS Snapshots
  • Object Storage
  • Amazon Simple Storage Service (S3)
  • Amazon S3 Storage classes
  • Difference between Amazon S3 and Amazon EBS
  • Amazon Elastic File System (Amazon EFS)
  • References
  1. Cloud
  2. AWS
  3. CloudPractitioner

Storage

PreviousAWS NetworkingNextAmazon Database Solutions

Last updated 4 months ago

AWS Instance Stores

  • Block-level storage volumes behave like physical hard drives.

  • An instance store provides temporary block-level storage for an Amazon EC2 instance. An instance store is disk storage that is physically attached to the host computer for an EC2 instance, and therefore has the same lifespan as the instance. When the instance is terminated, you lose any data in the instance store.

  • Amazon EC2 instances are virtual servers. If you start an instance from a stopped state, the instance might start on another host, where the previously used instance store volume does not exist. Therefore, AWS recommends instance stores for use cases that involve temporary data that you do not need in the long term.

Amazon Elastic Block Store (Amazon EBS)

  • Amazon Elastic Block Store (Amazon EBS) is a availability-zone service that provides block-level storage volumes that you can use with Amazon EC2 instances. If you stop or terminate an Amazon EC2 instance, all the data on the attached EBS volume remains available.

  • To create an EBS volume, you define the configuration (such as volume size and type) and provision it. After you create an EBS volume, it can be attached to an Amazon EC2 instance.

  • Because EBS volumes are for data that needs to persisted, it’s important to back up the data. You can take incremental backups of EBS volumes by creating Amazon EBS snapshots.

  • Its a volume, so it does not automatically scale.

EBS Snapshots

  • An EBS snapshot is an incremental backup. This means that the first backup taken of a volume copies all the data. For subsequent backups, only the blocks of data that have changed (delta updates) since the most recent snapshot are saved.

  • Incremental backups are different from full backups, in which all the data in a storage volume copies each time a backup occurs. The full backup includes data that has not changed since the most recent backup.

Object Storage

  • In object storage, each object consists of data, metadata, and a key.

  • The data might be an image, video, text document, or any other type of file. Metadata contains information about what the data is, how it is used, the object size, and so on. An object’s key is its unique identifier.

Recall that when you modify a file in block storage, only the pieces that are changed are updated. When a file in object storage is modified, the entire object is updated.

Amazon Simple Storage Service (S3)

  • Amazon Simple Storage Service (Amazon S3) is a service that provides object-level storage. Amazon S3 stores data as objects in buckets.

  • It is regionally distributed.

  • Supports versioning, which means when an object is changed, then entire object is uploaded rather than only changes.

  • You can upload any type of file to Amazon S3, such as images, videos, text files, and so on. For example, you might use Amazon S3 to store backup files, media files for a website, or archived documents. Amazon S3 offers unlimited storage space. The maximum file size for an object in Amazon S3 is 5 TB.

  • When you upload a file to Amazon S3, you can set permissions to control visibility and access to it. You can also use the Amazon S3 versioning feature to track changes to your objects over time.

Amazon S3 Storage classes

  • You can choose from a range of storage classes to select a fit for your business and cost needs.

  • When selecting an Amazon S3 storage class, consider these two factors:

    • How often you plan to retrieve your data.

    • How available you need your data to be.

S3 Standard

  • Designed for frequently accessed data, with 99.999999999% durability (also known as eleven 9's of durability).

  • Stores data in a minimum of three Availability Zones and hence can sustain two concurrent AWS facilty failures.

  • Used for frequently access data and provides high throughput and low latency.

  • S3 Standard provides high availability for objects. This makes it a good choice for a wide range of use cases, such as websites, content distribution, and data analytics.

  • S3 Standard has a higher cost than other storage classes intended for infrequently accessed data and archival storage.

S3 Standard-Infrequent Access (S3 Standard-IA)

  • Ideal for infrequently accessed data.

  • Similar to S3 Standard but has a lower storage price and higher retrieval price.

  • S3 Standard-IA is ideal for data infrequently accessed but requires high availability when needed. Both S3 Standard and S3 Standard-IA store data in a minimum of three Availability Zones. S3 Standard-IA provides the same level of availability as S3 Standard but with a lower storage price and a higher retrieval price.

S3 One Zone-Infrequent Access (S3 One Zone-IA)

  • Stores data in a single Availability Zone.

  • Has a lower storage price than S3 Standard-IA.

  • Compared to S3 Standard and S3 Standard-IA, which store data in a minimum of three Availability Zones, S3 One Zone-IA stores data in a single Availability Zone.

  • This makes it a good storage class to consider if the following conditions apply:

    • You want to save costs on storage.

    • You can easily reproduce your data in the event of an Availability Zone failure.

S3 Glacier

  • Low-cost storage designed for data archiving/backup.

  • Able to retrieve objects within a few minutes to hours.

  • S3 Glacier is a low-cost storage class that is ideal for data archiving. For example, you might use this storage class to store archived customer records or older photos and video files.

S3 Glacier Instant Retrieval

  • Provides milliseconds retrieval, for data accessed once a quarter.

  • Minimum storage duration is 90 days.

S3 Glacier Flexible Retrieval

  • Has 3 Flexible options

    • Expedited

      • Will provide data in 1 and 5 minutes.

    • Standard

      • Will provide data in 3-5 hours.

    • Bulk

      • Will provide data in 5-12 hours.

      • Retrieval is free.

  • Minimum storage duration is 90 days.

S3 Glacier Deep Archive

  • Lowest-cost object storage class ideal for archiving.

  • Has 2 Flexible options

    • Standard

      • Will provide data in 12 hours

    • Bulk

      • Will provide data in 48 hours

  • Minimum storage duration is 180 days.

Note: When deciding between Amazon S3 Glacier and Amazon S3 Glacier Deep Archive, consider how quickly you need to retrieve archived objects. You can retrieve objects stored in the S3 Glacier storage class within a few minutes to a few hours. By comparison, you can retrieve objects stored in the S3 Glacier Deep Archive storage class within 12-48 hours.

S3 Intelligent-Tiering

  • Ideal for data with unknown or changing access patterns.

  • Requires a small monthly monitoring and auto tiering fee per object

  • There are no retrieval charges in S3 intelligent-tiering.

  • In the S3 Intelligent-Tiering storage class, Amazon S3 monitors objects’ access patterns.

    • If you haven’t accessed an object for 30 consecutive days, Amazon S3 automatically moves it to the infrequent access tier, S3 Standard-IA.

    • If you access an object in the infrequent access tier, Amazon S3 automatically moves it to the frequent access tier, S3 Standard.

  • Following tiers are present in this option, based on days the object has not been accessed.

    • Frequent Access tier , (default)

    • Infrequent Access tier, > 30 days

    • Archive Instant Access tier, > 90 days

    • Archive Access tier, >= 90 < 700+ days. Note, days are configurable.

    • Deep Archive Access tier, >=180 < 700+ days. Note, days are configurable.

Difference between Amazon S3 and Amazon EBS

Feature
Elastic Block Storage
Amazon Simple Storage Service

Size

Up to 16 TiB each

Unlimited storage with up to 5 TiB per object

Capability to survive EC2 Termination

Yes

Yes

Solid State Drives

Yes

Yes

Supports HDD option

Yes

Yes

Read-Write Support

Complex read write operations supported, with many writes and reads

Write Once Read Many (WORM) specialization, supports occasional changes

Eleven 9's of durability

No

Yes

Regionally distributed

No, Availability Zone resource

Yes

Web enabled

No

Yes

Serverless

No

Yes

Offers Cost Savings

No

Yes, through storage classes

Versioning supported

No

Yes

Delta updates

Yes, through block updates

No

Amazon Elastic File System (Amazon EFS)

  • Managed file system.

  • It is a regional resource, based on linux file system which can scale automatically.

  • Being a regional service, it stores data in and across multiple Availability Zones.

  • It's a shared files systems i.e., multiple instances can read and write at the same time.

  • Additionally, on-premises servers can access Amazon EFS using AWS Direct Connect.

References

More on AWS S3 cloud storage classes can be found .

Read More about AWS storage

Hands on tutorials

here
here
here
EBS SnapShot Diagram
Object Storage