EBS & Local Instance Store Flashcards

1
Q

What is EBS

A

Amazon Elastic Block Store (EBS) is a block-level storage service for use with EC2 instances. It offers highly available and reliable storage volumes that can be attached to EC2 instances to provide persistent storage for applications and data. You can only attach it to one instance. They are linked to a specific availability zone

Amazon EBS provides block-level storage volumes, which are essentially virtual hard drives that can be attached to EC2 instances. These volumes appear as raw block devices to the operating system of the EC2 instance and can be formatted, resized up and used like traditional hard drives.

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

What happens to the EBS volume after the instance is stopped or terminated

A

EBS volumes are persistent, meaning that the data stored on them persists independently of the lifecycle of the EC2 instance. Even if the EC2 instance is stopped or terminated, the data on the EBS volume remains intact. This makes EBS volumes suitable for storing critical data and applications that require long-term persistence.

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

How can you transfer your volumes into another AZ

A

You can snapshot them and restore them into another AZ

EBS allows you to create point-in-time snapshots of your volumes, which are incremental backups stored in Amazon Simple Storage Service (S3). Snapshots can be used to back up your data, restore volumes, or create new volumes in different AWS Regions.

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

What are the EBS Volume types

A

General Purpose SSD (gp2) volumes, which provide a balance of price and performance for a wide range of workloads.

Provisioned IOPS SSD (io1) volumes, which are designed for I/O-intensive applications that require high performance and consistent low latency.

Throughput Optimized HDD (st1) volumes, optimized for frequently accessed, throughput-intensive workloads such as big data and data warehousing.

Cold HDD (sc1) volumes, suitable for less frequently accessed workloads that require low-cost storage.

Note: Only gp2/gp3 and io1/io2 can be used as boot volumes

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

What are EBS Snapshots

A

EBS snapshots are backups or point-in-time copies of Amazon EBS volumes. By creating snapshots regularly, you can protect your data against accidental deletion, corruption, or other data loss events. In the event of a failure, you can use snapshots to restore your volumes to a previous state, minimizing downtime and data loss.

EBS snapshots are incremental, meaning that when you create a snapshot, only the data that has changed since the last snapshot is copied to Amazon S3. No need to detach a volume to do a snapshot, but it is recommended. You can copy snapshots across region for DR purposes. You can make an image (AMI) from a snapshot

Note: EBS volumes restored by snapshots need to be pre-warmed. With Fast Snapshot Restore (FSR), AWS pre-warms the EBS volumes associated with the snapshots, significantly reducing the time it takes to restore the snapshots. FSR allows you to enable fast snapshot restore on specific EBS snapshots as needed.

or you can use the fio/dd command (which is the old way)

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

What is Amazon Data Lifecycle Manager and its uses

A

Amazon Data Lifecycle Manager is a service that automates the management of data lifecycle policies for Amazon Elastic Block Store (EBS) snapshots.

Amazon DLM automates the creation, retention, and deletion of EBS snapshots according to predefined policies. Instead of manually managing snapshot schedules and retention periods, you can use DLM to automate these tasks, saving time and reducing operational overhead.

With Amazon DLM, you can define lifecycle policies based on your specific requirements and business needs. You can specify the frequency of snapshot creation (e.g., daily, weekly), the number of retained snapshots, and the tags or resource identifiers to apply policies to.

Amazon DLM allows you to define policies based on tags applied to your Amazon EC2 instances or EBS volumes.

Amazon DLM supports copying of snapshots across AWS Regions. You can create policies to automatically copy snapshots to different Regions for disaster recovery, data replication, or compliance purposes.

It cant be used to manage snapshots/AMIs created outside of DLM or instance-store backed AMIs

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

What is the difference between Amazon Data Lifecycle Manager vs AWS Backup

A

Amazon Data Lifecycle Manager (DLM): DLM is specifically designed for managing the lifecycle of Amazon Elastic Block Store (EBS) snapshots. It automates the creation, retention, and deletion of EBS snapshots according to predefined policies.

AWS Backup: AWS Backup is a centralized backup service that supports a wide range of AWS resources, including Amazon EBS volumes, Amazon EC2 instances, Amazon RDS databases, Amazon DynamoDB tables, Amazon EFS file systems, and more. It provides a unified backup solution for managing backups across multiple AWS services.

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

Are EBS volumes encrypted by default

A

No, however, there is an account-level setting to encrypt automatically new EBS volumes and Snapshots. This setting needs to be enabled on a per-region basis

EBS snapshots support encryption of data at rest using AWS (KMS) keys.

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

What is EBS Multi-Attach?

A

With EBS Multi-Attach, you can attach a single EBS volume to multiple EC2 instances within the same Availability Zone. This enables multiple EC2 instances to read and write to the same volume concurrently, providing shared storage for applications that require shared access to data.

EBS Multi-Attach is limited to a single Availability Zone. You cannot attach a Multi-Attach volume to instances in different Availability Zones.

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

What is an EC2 Instance store

A

EC2 Instance Store is a type of temporary block-level storage that is physically attached to an EC2 instance. Unlike Amazon EBS (Elastic Block Store), which provides persistent block storage that persists beyond the lifetime of an EC2 instance, instance store volumes are temporary and are lost when the instance is stopped or terminated. It cannot be increased in size like EBS. It has a very high I/O

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