EC2 - Instance Storage

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/79

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

80 Terms

1
New cards

EBS (Elastic Block Store) Volume

A network drive that you can attach to your EC2 instances while they run. It allows data to persist even after the instance is terminated and can only be mounted to one instance at a time. It is bound to a specific Availability Zone.

2
New cards

Purpose of an EBS Volume

To provide persistent storage for EC2 instances, similar to a network USB stick.

3
New cards

EBS Volume Region Attachment

No, EBS volumes are bound to a specific Availability Zone and cannot be attached across regions.

4
New cards

AWS Free Tier for EBS

30 GB of free EBS storage of General Purpose SSD (gp2) or Magnetic storage per month.

5
New cards

Key Characteristics of an EBS Volume

Network-based storage (not physical) - Uses the network to communicate, which may introduce latency - Can be detached and attached to different EC2 instances quickly - Locked to a specific Availability Zone - Has provisioned capacity (GB and IOPS) - You are billed for the full provisioned capacity - Capacity can be increased over time

6
New cards

Moving an EBS Volume Between Availability Zones

You must first take a snapshot of the volume, then create a new volume from that snapshot in the desired Availability Zone.

7
New cards

Delete on Termination Attribute

It controls whether an EBS volume is deleted when its EC2 instance is terminated.

8
New cards

Default Behavior for Root EBS Volume

By default, the root EBS volume is deleted because the 'Delete on Termination' attribute is enabled.

9
New cards

Default Behavior for Non-Root EBS Volumes

By default, non-root EBS volumes are not deleted because the 'Delete on Termination' attribute is disabled.

10
New cards

Changing Delete on Termination Setting

It can be configured using the AWS Management Console or the AWS CLI.

11
New cards

Preserving Root EBS Volume After Termination

When you want to retain data or logs stored on the root volume after the instance is no longer running.

12
New cards

EBS Snapshot

A backup of your EBS volume at a specific point in time. It is not necessary to detach the volume to take a snapshot, but it is recommended.

13
New cards

Copying EBS Snapshots

Yes, EBS snapshots can be copied across Availability Zones or Regions.

14
New cards

EBS Snapshot Archive

A storage tier for EBS snapshots that is 75% cheaper than standard storage. It takes 24 to 72 hours to restore from the archive.

15
New cards

Recycle Bin for EBS Snapshots

A feature that allows you to retain deleted snapshots based on defined rules, so they can be recovered after accidental deletion.

16
New cards

Retention Period for Deleted EBS Snapshots

You can specify retention from 1 day to 1 year.

17
New cards

Fast Snapshot Restore (FSR)

A feature that fully initializes a snapshot in advance to eliminate latency during first use. This feature incurs additional cost.

18
New cards

Recycle Bin Protection

It protects Amazon EBS Snapshots and Amazon Machine Images (AMIs) from accidental deletions.

19
New cards

AMI

AMI stands for Amazon Machine Image.

20
New cards

What is an AMI?

A customization of an EC2 instance that includes your software, configuration, operating system, and monitoring settings.

21
New cards

Benefit of Using a Custom AMI

Faster boot and configuration time, since all software is pre-packaged.

22
New cards

AMIs Region Specificity

Yes, AMIs are built for a specific region but can be copied across regions.

23
New cards

Public AMI

AWS provided Amazon Machine Image.

24
New cards

Your own AMI

Self-created Amazon Machine Image.

25
New cards

AWS Marketplace AMI

Amazon Machine Image provided by third parties.

26
New cards

Steps to create an AMI

Start and customize an EC2 instance 2. Stop the instance (for data integrity) 3. Build an AMI (which creates EBS snapshots) 4. Launch instances from the AMI.

27
New cards

EBS snapshots

Creating an AMI automatically creates EBS snapshots of the instance volumes.

28
New cards

EC2 Instance Store

A type of high-performance hardware disk attached to an EC2 instance, offering better I/O performance than EBS.

29
New cards

Use of EC2 Instance Store

To get higher I/O performance for temporary or high-speed storage needs.

30
New cards

Data loss on EC2 Instance Store

The data is lost because Instance Store is ephemeral.

31
New cards

Use cases for EC2 Instance Store

Buffering, caching, scratch data, or temporary content.

32
New cards

Risk of using EC2 Instance Store

Data loss if the underlying hardware fails.

33
New cards

Responsibility for backups with EC2 Instance Store

The user is responsible for all backups and replication.

34
New cards

Types of EBS volumes

There are 6 types of EBS volumes.

35
New cards

SSD-based EBS volume types

gp2, gp3 (General Purpose SSD);io1, io2 Block Express (Provisioned IOPS SSD).

36
New cards

HDD-based EBS volume types

st1 (Throughput Optimized HDD), sc1 (Cold HDD).

37
New cards

EBS volumes characteristics

Size, Throughput, and IOPS (Input/Output Operations Per Second).

38
New cards

Boot volume types

gp2, gp3, io1, and io2 Block Express.

39
New cards

Consultation for EBS volume types

The AWS documentation.

40
New cards

Use cases for General Purpose SSD (gp2/gp3)

System boot volumes, virtual desktops, dev/test environments; cost-effective and low latency.

41
New cards

gp3 volume performance characteristics

Baseline 3,000 IOPS and 125 MiB/s throughput, up to 16,000 IOPS and 1,000 MiB/s configurable.

42
New cards

gp2 volume performance characteristics

3 IOPS per GB (up to 16,000 IOPS), with burst capability to 3,000 IOPS on small volumes.

43
New cards

Use cases for Provisioned IOPS SSD (io1/io2)

Mission-critical apps, databases, or workloads needing sustained or very high IOPS.

44
New cards

io1 volume specifications

4 GiB-16 TiB; up to 64,000 IOPS on Nitro EC2, 32,000 on others; IOPS can be provisioned independently.

45
New cards

io2 Block Express specifications

4 GiB-64 TiB; up to 256,000 IOPS with 1,000:1 IOPS:GiB ratio; sub-millisecond latency; supports multi-attach.

46
New cards

HDD-based EBS volumes limitations

They cannot be used as boot volumes.

47
New cards

Throughput Optimized HDD (st1) specs

125 GiB-16 TiB; max throughput 500 MiB/s, max IOPS 500; good for big data, log processing.

48
New cards

Cold HDD (sc1) specs

125 GiB-16 TiB; max throughput 250 MiB/s, max IOPS 250; good for infrequently accessed data and cost-sensitive workloads.

49
New cards

EBS Multi-Attach

A feature allowing the same EBS volume to be attached to multiple EC2 instances within the same Availability Zone.

50
New cards

EBS volume types supporting Multi-Attach

io1 and io2 family volumes.

51
New cards

EC2 instances sharing EBS volume limit

Up to 16 EC2 instances at a time.

52
New cards

Permissions with EBS Multi-Attach

Each instance has full read and write permissions to the volume.

53
New cards

Primary use case for EBS Multi-Attach

Not specified in the notes.

54
New cards

File system for EBS Multi-Attach

A cluster-aware file system (not XFS, EXT4, etc.).

55
New cards

Amazon EFS

A managed NFS (Network File System) that can be mounted on many EC2 instances and supports multi-AZ deployments.

56
New cards

EFS billing

Pay-per-use, with cost around 3x that of gp2 EBS.

57
New cards

Typical use cases for EFS

Content management, web serving, data sharing, and WordPress hosting.

58
New cards

Amazon EFS protocol

NFSv4.1 protocol.

59
New cards

Access control for Amazon EFS

Through security groups.

60
New cards

EFS compatibility with AMIs

No, it is only compatible with Linux-based AMIs.

61
New cards

EFS encryption method for data at rest

Encryption at rest using AWS KMS.

62
New cards

Type of file system for EFS

A POSIX-compliant file system with a standard Linux file API.

63
New cards

EFS scaling

Automatically scales to petabyte-size, supports 1000s of concurrent clients and 10+ GB/s throughput.

64
New cards

EFS performance modes

General Purpose (default) for latency-sensitive apps, and Max I/O for high throughput and highly parallel workloads.

65
New cards

EFS throughput modes

Bursting, Provisioned (fixed throughput), and Elastic (auto-scaled based on workload).

66
New cards

EFS Elastic Throughput

Scales throughput automatically up to 3 GiB/s for reads and 1 GiB/s for writes; ideal for unpredictable workloads.

67
New cards

EFS storage classes

Standard, Infrequent Access (EFS-IA), and Archive.

68
New cards

EFS lifecycle policies

To automatically move files to lower-cost storage tiers after N days.

69
New cards

Features of EFS Standard storage class

Frequently accessed files; high availability across multiple AZs; best for production.

70
New cards

Features of EFS Infrequent Access (EFS-IA)

Lower cost for storage with a retrieval cost; for infrequently accessed files.

71
New cards

EFS Archive storage class

For rarely accessed data (a few times per year); 50% cheaper.

72
New cards

Characteristics of EFS One Zone storage

Single AZ, good for dev/test, backup enabled by default, compatible with EFS One Zone-IA.

73
New cards

EFS cost savings with lifecycle management and One Zone storage

Over 90% in cost savings.

74
New cards

Key characteristics of EBS volumes

Attached to one EC2 instance (except io1/io2 with Multi-Attach), locked to an Availability Zone, support gp2/gp3/io1/io2 types, and can terminate with the instance (unless disabled).

75
New cards

IO scaling for EBS volume types

For gp2, IO scales with volume size; for gp3 and io1/io2, IO performance can be provisioned independently.

76
New cards

Migrating an EBS volume across Availability Zones

Take a snapshot, then restore the snapshot in a different AZ.

77
New cards

EBS backups during heavy traffic

Because EBS backups use IO, which can affect application performance under load.

78
New cards

Root EBS volume termination

The root EBS volume is deleted by default (can be changed).

79
New cards

Key characteristics of Amazon EFS

Supports mounting by hundreds of EC2 instances across AZs, used for shared access (e.g., WordPress), Linux-only, higher cost than EBS, supports storage tiering for cost savings.

80
New cards

Differences between EBS and EFS

EBS is for single-instance block storage (AZ-locked); EFS is shared file storage for many instances across AZs; EFS is Linux-only and more expensive, but scalable and sharable.