Chapter 7 - Elastic Block Storage (EBS) and Elastic File System (EFS) Flashcards

1
Q

What is EBS?

A

EBS (Elastic Block Store) volumes are virtual disk in the cloud that you can attach to your EC2 instances.

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

How do you use EBS volumes?

A
Use them the same way you would use any system disk:
          Create a file system
          Run a database
          Run an operating system
          Store data
          Install applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does “IOPS” stand for?

A

Input / Output Operations Per Second

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

What are the use cases and fundamental characteristics of EBS volumes?

A

Production Workloads
Designed for mission-critical workloads.

Highly Available
Automatically replicated within a single Availability Zone to protect against hardware failures.

Scalable
Dynamically increase capacity and change the volume types with no downtime or performance impact to your live systems.

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

What is the difference between IOPS and Throughput?

A

IOPS is optimized for transactional speed. Generally associated with SSDs.

Throughput is optimized for large amounts of data transfer. Generally associated with HDDs.

IOPS

  • Measures the number of read and write operations per second
  • Important metric for quick transactions, low-latency apps, transactional workloads.
  • The ability to action reads and writes very quickly.
  • Choose Provisioned IOPS SSD (io1 or io2)

Throughput

  • Measures the number of bits read or written per second (MB/s).
  • Important metric for large datasets, large I/O sizes, complex queries.
  • The ability to deal large datasets.
  • Choose Throughput Optimized HDD (st1).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the break point between General Purpose SSDs and Provisioned IOPS SSDs?

A

16,000 IOPS

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

What are Volumes?

A

It is a virtual hard disk.

You need a minimum of 1 per EC2 instance, which is the Root Device Volume.

This is where the OS is installed.

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

What are Snapshots?

A

A “photograph” of the virtual disk/volume, which is stored in S3.

Snapshots are a point in time.

Snapshots are incremental.

The first Snapshot may take some time to create as there is no previous point-in-time copy.

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

What are 3 Tips for Snapshots?

A

Consistent Snapshots

  • Snapshots only capture data that has been written to your Amazon EBS volume, which might exclude any data that has been locally cashed by your application or OS.
  • For a consistent Snapshot, it is recommended you stop the EC2 instance and take a snap.

Encrypted Snapshots
- If you take a snapshot of an encrypted EBS volume, the snapshot will be encrypted automatically.

Sharing Snapshots (Changing the location of an EC2 instance)

  • You can share snapshots, but only in the region in which they were created.
  • To share to other regions, you will need copy them to the destination region first.
  • How to move EC2 instances from one region to another is a common question on the exam. Using a snapshot is how that is done.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What to Know about EBS Volumes?

A

Location
- EBS volumes will always be in the same AZ as the EC2 it is attached to.

Resizing

  • EBS volumes can be resized on the fly.
  • They do not need to be stopped and restarted.
  • However, you will need to extend the file system in the OS so the OS can see the resized volume.

Volume Type
- EBS volume types can be switched on the fly. You do not need to stop or restart the instance.

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

What are the fundamental characteristics of EBS Encryption?

A

Data at rest is encrypted inside the volume.

All data in flight moving between the instance and the volume is encrypted.

All snapshots are encrypted.

All volumes created from the snapshot are encrypted.

The encryption is end-to-end.

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

What are the steps required to encrypt existing unencrypted EC2 instances?

A

Take a snap

Copy that snap and encrypt while copying

Create an AMI from the encrypted snap

Launch and EC2 instance from that AMI

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

What is EC2 Hibernation?

A

Hibernating an EC2 instance tells the operating system to perform hibernation aka suspend-to-disk)

Hibernation saves the contents from the instance memory (RAM) to the associated Amazon EBS volume.

The instance’s Amazon EBS root and attached data volumes persist.

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

What are the benefits o starting an EC2 instance out of hibernation?

A

The instance boots much faster.

The operating system does not need to reboot because the in-memory state (RAM) is preserved.

This is useful for:

  • Long-running processes
  • Services that take time to initialize
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the limitations of EC2 Hibernation?

A

Instance RAM must be less than 150 GB.

Instance families include: C3, C4, C5, M3, M4, M5, R3, R4, R5

Available for Windows, Amazon Linux 2 AMI, and Ubuntu

Instances can’t be hibernated for more than 60 days.

Available for On-Demand instances and Reserved Instances

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

What is EFS?

A

Amazon Elastic File System - Shared Storage

A managed NFS (network file system) that can be mounted on many EC2 instances.

Uses NFSv4 protocol

17
Q

What are the use cases for EFS?

A

Content Management

  • Easily share content between EC2 instances
  • Wordpress blogs, Joomla! websites

Web Servers
- Have just a single folder structure for your website.

18
Q

What are the two fundamental performance characteristics options for EFS?

A

General Purpose
- Web servers, CMS, etc.

Max I/O
- Big data, media processing, etc.

19
Q

What are the Pros and Cons of EFS?

A

Pros

  • Highly available and scalable
  • File system scales automatically up to petabytes; no capacity planning required
  • Only pay for the storage you use (no provisioning required)
  • Can support thousands of concurrent NFS connections
  • Data is stored across multiple AZs within a region
  • Read-after-write consistency

Cons

  • Expensive
  • Only compatible with Linux-based AMI (Windows not supported at this time)
20
Q

What is FSx for Windows?

A

Amazon FSx for Windows File Server provides a fully managed native Microsoft Windows file system so that you can easily move your Windows-based applications that require file storage to AWS.

Amazon FSx is built on Windows Server

21
Q

How is FSx for Windows different from EFS?

A

FSx for Windows is:

  • A managed Windows Server that runs Windows Server Message Block (SMB)-based file services.
  • Designed for Windows and Windows applications
  • Supports AD users, access control lists, groups, and security policies, along with Distributed File System (DFS) namespaces and replication.

EFS is:

  • A managed NAS filer for EC2 instances based on NFSv4.
  • One of the first network file sharing protocols native to Unix and Linux.
22
Q

What is FSx for Lustre?

A

A fully managed file system that is optimized for compute-intensive workloads

High performance computing

Machine learning

Media data processing workflows

Electronic design automation

This file system can process massive datasets at up to hundreds of gigabytes per second of throughput, millions of IOPS, and sub-millisecond latencies.

23
Q

How do you choose to use EFS, FSx for Windows or FSx for Lustre?

A

EFS: When you need distributed, highly resilient storage for Linux instances and Linux-based applications.

Amazon FSx for Windows: When you need centralized storage for Windows-based applications, such as SharePoint, Microsoft SQL Server, Workspaces, IIS Web Server, or any other native Microsoft application.

Amazon FSx for Lustre: When you need high-speed, high capacity distributed storage. This will be for applications that do high performance computing (HPC), financial modeling, etc. Remember that FSx for Lustre can store data directly on S3.

24
Q

What is an AMI?

A

An Amazon Machine Image (AMI) provides the information requires to launch an instance.

An AMI is just a blueprint for an EC2 instance.

You must specify an AMI when you launch an instance.

25
Q

What are the 5 Things You Can Base You’re AMI On?

A

Region

Operating system

Architecture (32-bit or 64-bit)

Launch permissions

Storage for the root device (root device volume)

26
Q

What is the difference between a root device for an instance launched from the AMI on EBS vs Instance Store?

A

Amazon EBS

  • The root device for an instance launched from the AMI is an Amazon EBS volume created from an Amazon EBS snapshot.
  • EBS-backed instances can be stopped.

Instance Store

  • The root device for an instance launched from the AMI is an instance store volume created from a template stored in Amazon S3.
  • Instance store volumes cannot be stopped.

Both

  • You can reboot both EBS and instance store volumes and will not lose your data.
  • By default, both root volume types will be deleted on termination. However, with EBS volumes, you can tell AWS to keep the root device volume.
27
Q

What is AWS Backup?

A

Backup allows you to consolidate your backups across multiple AWS services, such as EC2, EBS EFS, Amazon FSx for Lustre, Amazon FSx for Windows File Server, and AWS Storage Gateway.

It can include other services, such as database technologies like RDS and DynamoDB.

28
Q

What is AWS Backup with Organizations?

A

Centralized control of backup of multiple AWS accounts across the entire AWS organization.

29
Q

What are the benefits of AWS Backup?

A

Central Management
- Use a single, central backup console, allowing you to centralize your backups across multiple AWS services and multiple AWS accounts.

Automation
- You can create automated backup schedules and retention policies. You can also create lifecycle policies, allowing you to expire unnecessary backups after a period of time.

Improved Compliance
- Backup policies can be enforced while backups can be encrypted both at rest and in transit, allowing alignment to regulatory compliance. Auditing is made easy due to a consolidated view of backups across many AWS services.