EC2 Instance Storage + Storage Classes Flashcards
Types of containers in AWS
- Amazon Elastic Container - ECR
- Amazon Elastic Container Service - ECS
- Amazon Elastic Kubernetes Service - EKS
ECR
Amazon Elastic Container
Stores, shares, and deploy container software
ECS
Amazon Elastic Container Service
- Fully managed and serverless using Fargate
- Run on EC2, Fargate
- Supports Docker and Docker Compose CLI
EKS
Amazon Elastic Kubernetes Service
- Fully managed (EKS) open-source system
- Can run on EC2, Fargate, EKS on outposts
- Supports Kubernetes
You need to use Docker to manage your newly deployed container-based application. Which AWS service can help you manage the app?
ECS - Amazon Elastic Container Service
What is Fargate
It is a pay-as-you-go auto-scaling compute engine.
1. You build your container image
2. Define memory and compute resources
3. Run and manage container resources
It does not share kernels, CPU, memory resources, elastic network interfacing that provide isolation
Like a minifactory that you just ask what you need and this will create everything for you. No need to worry on the hows
Fargate vs Lambda
- Lambda run < 15 mins
- Fargate >15 mins
- Lambda and Fargate are both serverless
- Lambda has a ALWAYS free-tier
- Fargate you pay for the resources you used (vCPUs, memory and storage)
What is amazon EBS
Elastic Block Store
- It’s directly attached
- Reliable (high availability and durability)
- Ensures data is preserved, even if the instance crashes.
Scalability.
- EBS can be expanded on the fly without any downtime.
- EBS also has snapshot capabilities.
This means it can take backups and also use these backups to create new volumes.
EBS use cases are hosting relational or NoSQL databases, data warehousing and big data analytics,
and also enterprise resource planning and customer relationship management applications.
What is EFS
Elastic File System
EFS is a scalable file storage solution for EC2 and other AWS services.
Some key features of EFS is it’s fully managed.
This simplifies the complexities of deploying and maintaining advanced file systems.
EFS grows and shrinks automatically as you add and remove files.
It’s designed to be accessed by multiple EC2 instances
from various AWS services simultaneously.
Instance Stores
Temporary block level storage directly attached to the EC2 instance.
Unlike EBS, the storage is ephemeral, and it’s ideal for temporary data.
Some key features of instance stores is its high I/O performance.
Data on instance store volumes is lost if the instance stops, terminates, or crashes.
No extra cost.
Temporary storage of information like caches or buffers.
It’s suitable for workloads that need to write and discard large amounts of data.
How alike or different are
EBS - EFS - Instance Store
EBS and EFS –> you gotta pay
Instance Store –> free but ephimeral one instance disappears
Storage class - S3 Standard
- Frequently accessed data
- High throughput performance and low latency
- Can scale automatically
to handle your storage needs - across multiple devices in multiple facilities
Storage class - S3 Standard-Infrequent Access
- Data that’s less frequently accessed, but requires rapid access when needed
- Retrieval fee, it’s best for data accessed less frequently, but quickly when needed.
Storage class - S3 Intelligent-Tiering
- Data with unpredictable access patterns, it automatically moves data between two access tiers.
- Designed for savings in storage costs without performance impact.
Storage class - One Zone-Infrequent Access
- storing data in just one availability zone
- Cost-effective, but slightly less durable
than multiple zone options - Secondary backup or data that’s easily reproducible.
Storage class - S3 Glacier Instant Retrieval
- immediate access to your archive data.
It’s an archive storage class
that delivers the lowest cost storage for long-lived data
that is rarely accessed
and requires retrieval in milliseconds.
Storage class - S3 Glacier Flexible Retrieval
- isn’t accessed as much
- archive data that is accessed
one to two times per year - archive data that does not require immediate access,
but needs the flexibility to retrieve
large sets of data at no cost.
Storage class - S3 Glacier Deep Archive
- Cost-effective for long-term archival,
- Retrieval can take up to 12 hours.
Amazon FSX Storage
- Fully managed Windows File System that’s crafted for Windows specific workloads.
- workloads
that require native Windows features
-
Elastic Disaster Recovery
- pay only for the servers you are actively replicating to AWS.
SSD-backed Volumes
- Solid State Drive
- Faster
- More expensive
- Ideal for high IOPS
HDD-backed Volumes
- Hard Disk Drive
- Slower
- Less expensive
- Ideal for throughput tasks (handle high volumes of work efficiently)
AWS Storage Gateway
- Bridge between on-premise data and cloud data in S3
- Hybrid storage service to allow on- premises to seamlessly use the AWS Cloud
- Use cases: disaster recovery, backup & restore, tiered storage
- Types of Storage Gateway:
- File Gateway
- Volume Gateway
- Tape Gateway
- FSx File Gateway
AWS Backup
- Creates bkps across multiple AWS services (EC2, EBS, FSx)
- Encryption and Compliance
- Centralized Backup Management - simplifies overseeing bkps
- Automated bkp scheduling
- Cross-regio & Account Bkp - disaster recovery
What are outposts
it is like a small place where data can be saved, it is closer to my service for faster retrieval, still connected to AWS main