File tree Expand file tree Collapse file tree
Study_Notes/04_Ec2_STORAGE_EBS Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Amazon Elastic Block Store (EBS) is persistent block-level storage designed to be used with Amazon EC2 instances.
2+ Block storage means the data is stored in fixed-size chunks (blocks), similar to a traditional hard drive or SSD.
3+
4+ # EBS is primarily used for:
5+
6+ Operating system disks
7+
8+ Databases
9+
10+ Application data requiring low latency
11+
12+ Stateful workloads
13+
14+ # Core properties:
15+
16+ EBS volumes are attached to EC2 instances
17+
18+ Each volume exists in one Availability Zone
19+
20+ Data persists independently of the EC2 instance lifecycle
21+
22+ Volumes can be detached and reattached to other instances in the same AZ
23+
24+ EBS vs other storage:
25+
26+ EBS ≠ S3 (object storage)
27+
28+ EBS ≠ EFS (shared file storage)
29+
30+ EBS behaves like a disk, not a bucket or shared folder
31+
32+ # Volume types and intent:
33+
34+ General Purpose SSD (gp3/gp2): default, balanced cost and performance
35+
36+ Provisioned IOPS SSD (io2): mission-critical, predictable I/O
37+
38+ Throughput Optimized HDD (st1): large sequential workloads
39+
40+ Cold HDD (sc1): infrequently accessed data
41+
42+ High-level design rule:
43+ If an EC2 instance needs a disk that survives stop/start, EBS is the default answer.
44+
45+ # Exam traps:
46+
47+ EBS is not regional
48+
49+ EBS cannot be shared by default
50+
51+ EBS is not free (storage + IOPS)
Original file line number Diff line number Diff line change 1+ EBS Multi-Attach allows a single EBS volume to be attached to multiple EC2 instances simultaneously.
2+
3+ This feature exists to support clustered applications that require shared block storage.
4+
5+ # Strict limitations:
6+
7+ Only supported on io1 and io2 volumes
8+
9+ All attached instances must be in the same Availability Zone
10+
11+ Applications must coordinate writes (AWS does not handle locking)
12+
13+ What Multi-Attach does NOT do:
14+
15+ It does not provide file-level locking
16+
17+ It does not prevent corruption
18+
19+ It does not behave like EFS
20+
21+ # Correct use cases:
22+
23+ Databases with cluster-aware file systems
24+
25+ Enterprise applications designed for shared block devices
26+
27+ Incorrect use cases:
28+
29+ General file sharing
30+
31+ Web servers sharing assets
32+
33+ Applications without write coordination
34+
35+ # Exam logic:
36+ If AWS mentions “multiple EC2 instances access the same storage”:
37+
38+ File-level → EFS
39+
40+ Object-level → S3
41+
42+ Block-level with cluster software → EBS Multi-Attach
Original file line number Diff line number Diff line change 1+ EBS Snapshots are point-in-time backups of EBS volumes.
2+
3+ Snapshots are stored in Amazon S3, but not directly accessible as S3 objects.
4+
5+ # Snapshot behavior:
6+
7+ First snapshot is full
8+
9+ All subsequent snapshots are incremental
10+
11+ Only changed blocks are saved
12+
13+ Deleting a snapshot does not break others
14+
15+ What snapshots enable:
16+
17+ Disaster recovery
18+
19+ Cross-region migration
20+
21+ Volume cloning
22+
23+ AMI creation
24+
25+ # Operational details:
26+
27+ Snapshots are regional
28+
29+ Volumes created from snapshots can be in any AZ within the region
30+
31+ Snapshots can be copied to other regions
32+
33+ Important clarification:
34+ Snapshots back up the volume, not the EC2 instance.
35+ Memory, CPU state, and running processes are NOT captured.
36+
37+ # Exam traps:
38+
39+ Snapshots are not real-time replication
40+
41+ Snapshots do not replace high availability
42+
43+ Snapshots are not automatic unless configured
Original file line number Diff line number Diff line change 1+ An Amazon Machine Image (AMI) is a bootable template used to launch EC2 instances.
2+
3+ # An AMI includes:
4+
5+ Operating system
6+
7+ Installed software
8+
9+ Configuration settings
10+
11+ One or more EBS snapshots
12+
13+ # AMIs enable:
14+
15+ Rapid instance launches
16+
17+ Identical environments
18+
19+ Auto Scaling
20+
21+ Disaster recovery
22+
23+ # ypes of AMIs:
24+
25+ AWS-provided (Amazon Linux, Ubuntu, Windows)
26+
27+ Marketplace AMIs
28+
29+ Custom AMIs
30+
31+ # Key distinction:
32+
33+ Snapshot = disk backup
34+
35+ AMI = launchable system template
36+
37+ Lifecycle understanding:
38+
39+ Create or modify EC2 instance
40+
41+ Create AMI
42+
43+ AMI references snapshots
44+
45+ New EC2 instances launched from AMI
46+
47+ # Exam mindset:
48+ If the question mentions preconfigured EC2 instances, think AMI.
Original file line number Diff line number Diff line change 1+ Manual AMI creation is slow and error-prone.
2+ EC2 Image Builder exists to automate AMI creation and maintenance.
3+
4+ # Image Builder automates:
5+
6+ OS updates
7+
8+ Security patches
9+
10+ Software installation
11+
12+ Testing
13+
14+ AMI distribution
15+
16+ # Core components:
17+
18+ Image pipeline
19+
20+ Build components
21+
22+ Validation steps
23+
24+ Scheduling
25+
26+ # Why AWS built this:
27+
28+ Enterprises need consistent images
29+
30+ Security compliance requires repeatability
31+
32+ Manual processes do not scale
33+
34+ When to use Image Builder:
35+
36+ Regular AMI updates
37+
38+ Security-focused environments
39+
40+ Large fleets of EC2 instances
41+
42+ # Exam logic:
43+ Manual AMI = possible
44+ Automated AMI lifecycle = Image Builder
Original file line number Diff line number Diff line change 1+ Instance Store is temporary storage physically attached to the EC2 host machine.
2+
3+ # Key characteristics:
4+
5+ Extremely high performance
6+
7+ No additional cost
8+
9+ Data is ephemeral
10+
11+ Data is lost when:
12+
13+ Instance stops
14+
15+ Instance terminates
16+
17+ Underlying hardware fails
18+
19+ # Correct use cases:
20+
21+ Caches
22+
23+ Temporary files
24+
25+ Scratch space
26+
27+ Buffers
28+
29+ # Incorrect use cases:
30+
31+ Databases
32+
33+ Backups
34+
35+ Anything needing persistence
36+
37+ # Exam rule:
38+ If the question says “data must survive restart”, Instance Store is wrong.
Original file line number Diff line number Diff line change 1+ Amazon Elastic File System (EFS) is managed shared file storage.
2+
3+ # EFS characteristics:
4+
5+ File-level storage
6+
7+ Linux workloads
8+
9+ Multiple EC2 instances can mount simultaneously
10+
11+ Automatically scales
12+
13+ Regional and multi-AZ
14+
15+ # EFS vs EBS:
16+
17+ EBS = single instance disk
18+
19+ EFS = shared filesystem
20+
21+ # Common uses:
22+
23+ Shared web content
24+
25+ Content management systems
26+
27+ Shared application data
28+
29+ # Exam logic:
30+ Multiple EC2 instances need shared access → EFS.
Original file line number Diff line number Diff line change 1+ Amazon FSx provides fully managed file systems optimized for specific workloads.
2+
3+ # FSx variants:
4+
5+ FSx for Windows File Server
6+
7+ FSx for Lustre
8+
9+ # Why FSx exists:
10+
11+ EFS is general-purpose
12+
13+ Some workloads need specialized performance or compatibility
14+
15+ # Use cases:
16+
17+ Windows applications
18+
19+ High-performance computing
20+
21+ Media processing
22+
23+ # Exam hint:
24+ If the workload mentions Windows file systems, think FSx.
Original file line number Diff line number Diff line change 1+ AWS Shared Responsibility Model applies to EC2 storage.
2+
3+ # AWS is responsible for:
4+
5+ Physical data centers
6+
7+ Hardware
8+
9+ Underlying infrastructure
10+
11+ Availability of services
12+
13+ # You are responsible for:
14+
15+ Data protection
16+
17+ Backups
18+
19+ Encryption configuration
20+
21+ Access permissions
22+
23+ Snapshot and AMI management
24+
25+ # Critical exam takeaway:
26+ AWS secures the cloud.
27+ You secure what’s in the cloud.
You can’t perform that action at this time.
0 commit comments