EC2 Instance Storage Flashcards

1
Q

What’s an EBS Volume?

A
  • An EBS (Elastic Block Store) Volume is a network drive you can attach
    to your instances while they run
  • It allows your instances to persist data, even after their termination
  • They can only be mounted to one instance at a time (at the CCP level)
  • They are bound to a specific availability zone
  • Analogy: Think of them as a “network USB stick”
  • Free tier: 30 GB of free EBS storage of type General Purpose (SSD) or
    Magnetic per month

EBS Volume
* It’s a network drive (i.e. not a physical drive)
* It uses the network to communicate the instance, which means there might be a bit of
latency
* It can be detached from an EC2 instance and attached to another one quickly
* It’s locked to an Availability Zone (AZ)
* An EBS Volume in us-east-1a cannot be attached to us-east-1b
* To move a volume across, you first need to snapshot it
* Have a provisioned capacity (size in GBs, and IOPS)
* You get billed for all the provisioned capacity
* You can increase the capacity of the drive over time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the Delete on Termination attribute does - EBS ?

A
  • Controls the EBS behaviour when an EC2 instance terminates
    • By default, the root EBS volume is deleted (attribute enabled)
    • By default, any other attached EBS volume is not deleted (attribute disabled)
  • This can be controlled by the AWS console / AWS CLI
  • Use case: preserve root volume when instance is terminated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of EBS Snapshots ?

A
  • Make a backup (snapshot) of your EBS volume at a point in time
  • Not necessary to detach volume to do snapshot, but recommended
  • Can copy snapshots across AZ or Region
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the EBS Snapshots Features ?

A
  • EBS Snapshot Archive
    • Move a Snapshot to an ”archive tier” that is
      75% cheaper
    • Takes within 24 to 72 hours for restoring
      the archive
  • Recycle Bin for EBS Snapshots
    • Setup rules to retain deleted snapshots so
      you can recover them after an accidental
      deletion
    • Specify retention (from 1 day to 1 year
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the AMI ?

A
  • AMI = Amazon Machine Image
  • AMI are a customization of an EC2 instance
    • You add your own software, configuration, operating system, monitoring…
    • Faster boot / configuration time because all your software is pre-packaged
  • AMI are built for a specific region (and can be copied across regions)
  • You can launch EC2 instances from:
    • A Public AMI: AWS provided
    • Your own AMI: you make and maintain them yourself
    • An AWS Marketplace AMI: an AMI someone else made (and potentially sells)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the AMI Process (from an EC2 instance) ?

A
  • Start an EC2 instance and customize it
  • Stop the instance (for data integrity)
  • Build an AMI – this will also create EBS snapshots
  • Launch instances from other AMIs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the EC2 Image Builder and what is it used for ?

A

EC2 Image Builder is an AWS service that simplifies the creation, maintenance, and validation of Amazon Machine Images (AMIs), ensuring secure and up-to-date images.

  • Used to automate the creation of Virtual Machines or container images
  • => Automate the creation, maintain, validate and test EC2 AMIs
  • Can be run on a schedule (weekly, whenever packages are updated, etc…)
  • Free service (only pay for the underlying resources)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is EC2 Instance Store and what is it good for ?

A

An EC2 Instance Store provides temporary block-level storage for Amazon EC2 instances, offering high-performance storage located directly on the host node.

  • EBS volumes are network drives with good but “limited” performance
  • If you need a high-performance hardware disk, use EC2 Instance Store
  • Better I/O performance
  • EC2 Instance Store lose their storage if they’re stopped (ephemeral)
  • Good for buffer / cache / scratch data / temporary content
  • Risk of data loss if hardware fails
  • Backups and Replication are your responsibility

Block-level storage is a concept in data storage which represents data as blocks, or ‘chunks’, each with its own address but with no additional information (metadata) to provide more context for what that block of data is.

In other words, block-level storage operates at a lower level of control, handling files in blocks of data (often a sequence of bytes or bits) and leaving the organization of these blocks to the operating system or the application that uses the storage.

This type of storage is commonly used in Storage Area Network (SAN) environments and for storage systems like hard drives, SSDs, and EC2 instance stores. It is particularly suitable for handling large amounts of data in a consistent, fast, and reliable manner, making it ideal for applications like databases or transactional applications.

Block-level storage is different from file-level storage where data is stored in files and directories, and the storage system is aware of things like file metadata, hierarchy, permissions etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is EC2 Instance Store and what is it good for ?

A

An EC2 Instance Store provides temporary block-level storage for Amazon EC2 instances, offering high-performance storage located directly on the host node.

  • EBS volumes are network drives with good but “limited” performance
  • If you need a high-performance hardware disk, use EC2 Instance Store
  • Better I/O performance
  • EC2 Instance Store lose their storage if they’re stopped (ephemeral)
  • Good for buffer / cache / scratch data / temporary content
  • Risk of data loss if hardware fails
  • Backups and Replication are your responsibility
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is EFS – Elastic File System ?

A

Amazon EFS (Elastic File System) is a scalable, cloud-based file storage service for applications that run on AWS.

  • Managed NFS (network file system) that can be mounted on 100s of EC2
  • EFS works with Linux EC2 instances in multi-AZ
  • Highly available, scalable, expensive (3x gp2), pay per use, no capacity planning
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is EFS Infrequent Access (EFS-IA) ?

A
  • Storage class that is cost-optimized for files not
    accessed every day
  • Up to 92% lower cost compared to EFS Standard
  • EFS will automatically move your files to EFS-IA
    based on the last time they were accessed
  • Enable EFS-IA with a Lifecycle Policy
  • Example: move files that are not accessed for 60
    days to EFS-IA
  • Transparent to the applications accessing EFS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Shared Responsibility Model for EC2 Storage ?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Amazon FSx ?

A

Amazon FSx is a fully managed service that provides cost-effective, scalable file storage with the compatibility and features of popular open-source and commercially-licensed file systems.

  • Launch 3rd party high-performance file systems on AWS
  • Fully managed service
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is Amazon FSx for Windows File Server ?

A
  • A fully managed, highly reliable, and
    scalable Windows native shared
    file system
  • Built on Windows File Server
  • Supports SMB protocol &
    Windows NTFS
  • Integrated with Microsoft Active
    Directory
  • Can be accessed from AWS or
    your on-premise infrastructure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Amazon FSx for Lustre ?

A
  • A fully managed, high-performance, scalable file storage for High Performance Computing (HPC)
  • The name Lustre is derived from “Linux” and “cluster”
  • Machine Learning, Analytics, Video Processing, Financial Modeling, …
  • Scales up to 100s GB/s, millions of IOPS, sub-ms latencies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly