Storage Flashcards

1
Q

Main difference between EBS and Instance Store

A

EBS is persistent storage, Instance Store is deleted on stop of an instance

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

What are EBS Volumes bound to?

A

A specific AZ

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

How are EBS Volumes connected to EC2 Instances?

A

Through the Network

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

What is an advantage that makes EBS Volumes flexible?

A

Since EBS Volumes are Network Drives. They can be dettached from an instance and attached to a different one

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

What is a big limiation of EBS Volumes?

A

If it’s created in sa-east-1a, it can’t be attached to an EC2 instance in sa-east-1b. (Though you can snapshot a volume to move it)

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

If you create a 30GB EBS Volume, what are you billed?

A

The 30GBs

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

Can you extend the size of an EBS Volume?

A

Yes

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

Which of these 2 are bound to a specific AZ: EC2 Instances or EBS Volumes?

A

BOTH

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

What defines if an ebs volume is deleted when an instance is terminated?

A

If you enable the option “Delete on termination” for the ebs volume

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

how is an instances ebs volume configured by default? And how are additional ebs volumes configured?

A

root ebs has “delete on termination” enabled by default, other ebs volumes have this option disabled by default.

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

Where are Snapshots stored?

A

S3

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

is there a way to move an EBS volume from one AZ to another AZ?

A

Yes. There is a way to migrate an EBS Volume to a different AZ. It’s with a snapshot. (Snapshots can be moved between AZs)

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

What are snapshots in AWS?

A

A backup in s3

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

How can we move an EBS Volume to a different AZ?

A

You can take a snapshot of a volume, then restore it to a new EBS Volume. With the option “Create Volume from snapshot”. Finally you can choose any az from the current region for the destination of the new volume.

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

What does EBS Mean?

A

Elastic Block Store

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

How can you make a snapshot storage cheaper?

A

Move it to an archive tier that is available for snapshots

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

How cheaper is the cost of a snapshot moved to an archive tier?

A

75% cheaper

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

What is the disadvantage of moving a snapshot backup to an archive storage tier?

A

It takes longer to restore. From 24 up to 72hs

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

How can you protect EBS Snapshots from accidental deletion?

A

Set up the recycle bin for EBS Snapshots

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

How long are deleted snapshots retained by the recycle bin?

A

Depends on the configuration. Minimum is 1 day, maximum is 1 year.

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

What is FSR?

A

Fast Snapshot Restore: It gives you very lower latency to the i/o operations for the blocks when first accessed, on the first initialiation of a restored snapshot.

This option is enabled by snapshot

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

What is FSR useful for?

A

When you need to restore a very big snapshot and you need extra performance so this process has to be done very quickly.

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

Can we move an EBS Volume to a different region?

A

Yes. You can take a snapshot of it and then copy the snapshot to a different region. Finally restore the snapshot to a new volume in this new region.

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

What is AMI?

A

Amazon Machine Image. Basically a EC2 Instance customization for deploying EC2 instances. Like a “Template”. But templates are a different thing in EC2 and aws.

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

What is the basic benefit of using AMIs?

A

Faster boot and configuration times because of the pre-packaged software you install in an AMI.

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

Are AMIs region specific?

A

Yes. You can copy them from one region to another.

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

What are the different kinds of AMIs?

A

Public AMIs: EC2 instance Images provided by AWS
Your Own AMIs: You make and mantain them
Marketplace AMIs: An AMI someone else made, and they may sell it.

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

Describe the AMI Creation Process:

A

AMI Creation Process:
Start EC2 Instance and customize it
Stop the instance (For data integrity)
Build an AMI (Building AMI creates EBS Snapshots behind the scenes)

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

What is the main disadvantage of EBS Storage?

A

It’s network storage, so it has limited performance because of the added latency (Compared to a directly attached disk).

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

Why is Instance Store good? And how does this work?

A

It’s a high performance storage. It’s directly attached to the EC2 instance. This is because the instance store disk is in the same hardware that runs the instance.

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

Instance Store main advangate?

A

Better I/O Performance

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

Disadvantage of Instance Store?

A

It’s ephemeral storage. If you stop/hibernate/terminate an instance its instance store is deleted.

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

Is instance store good as a long term storage?

A

NO. Its not persistent storage. Its ephemeral

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

What are good use cases for instance store? (And why)

A

Buffer, cache, scratch data, temporary content.

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

What is a big risk of using instance store? How do you prevent this?

A

If hardware fails there is risk of data loss. Prevent with Backup/replication solutions

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

What do the terms gp2 and gp3 mean?

A

It’s a General Purpose EBS Volume. It means its a volume balanced for price and performance. Aimed for a wide variety of workloads. gp2/gp3 (SSD).

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

What does io2 and io3 mean?

A

It’s Block express. The highest performance SSD in EBS storage. Made for low latency and high throughput workloads. It’s for MISSION CRITICAL workloads.

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

What does st1 mean?

A

It’s HDD. Bad compared to general purpose and block express SSDs. But it’s low cost and its the high end for HDD EBS Storages. It’s for frequently accessed workloads.

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

What does sc1 mean?

A

It’s the lowest end disk type in EBS. It’s HDD and designed for less frequently accessed workloads

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

Which type of EBS Volumes can be used as boot volumes?

A

Only General purpose gp2/gp3 SSDs, and Block Express io2 and io3 SSDs.

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

How many types of EBS storage are there?

A

6: gp2, gp3, io2, io3, st1, sc1.

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

What are the use cases of general purpose EBS Volumes?

A

Good for Virtual Desktops, system boot volumes, and development or test environments.

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

What are the characteristics of general purpose EBS Volumes?

A

Cost effective
Low latency (For EBS)
Its SSD disk
Can boot from it
2 Types: gp2 and gp3
dont support multi-attach

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

Whats the difference between gp2 and gp3 storage types?

A

In gp2 you increase iops and bandwidth with the size of the disk.
In gp3 you can increase iops and MiB/s independently

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

What is Provisioned IOPS?

A

The fastest EBS storage type. io1 and io2. For critical applications

38
Q

What is io1 and io2?

A

The 2 types of Provisioned IOPS

39
Q

What are use cases of Provisioned IOPS?

A

Critical business applications that need sustained high IOPS performance. For example Databases.
Any workloads that need great storage performance and consistently high disk performance.
Only ones that support the Multi-attach function

40
Q

Which is faster, io1 or io2?

A

io2 Block Express

41
Q

Whats the difference between io1 and io2 storage types?

A

Io2 is faster.
Io1 provisions up to 32000 IOPS, and 64000 for Nitro EC2 instances.
Io2 Block Express provisions up to 256000 IOPS.

42
Q

Which is faster, io1 or io2?

A

Io2

43
Q

What are the types of EBS HDDs?

A

sc1 ad st1

44
Q

Which is faster, sc1 or st1?

A

st1

45
Q

What is the use case of st1?

A

For BIG DATA, Data Warehouses, log processing storages.

46
Q

What is the difference between sc1 and st1?

A

ST1 is an HDD optimized for throughput. (500MiB/s - 500 IOPS)
SC1 is the slowest and lowest cost EBS storage. (250MiB/s - 250 IOPS)

47
Q

What is the use case of sc1?

A

For data that is infrequently accessed. Because it’s the slowest storage available. Its useful for when you need the lowest cost.

48
Q

What are the characteristics of PIOPS EBS Volumes?

A

Fastest EBS Volumes
Can be used as boot volume
its ssd
its high IOPS
its the lowest latency in case of io2
Support Multi-Attach

49
Q

what is function that EBS HDDs cant do?

A

They can’t be used as boot volumes. Neither St1 nor Sc1

50
Q

What is a key factor of using higher than 64000 IOPS or 16TiB disks on an EC2 instance?

A

You need Nitro System instances if you want that high of a performance or capacity.

51
Q

What is Multi-Attach?

A

Lets you attach many instances to a single EBS Volume (This is for specific use cases)

52
Q

What are limitations of Multi-Attach?

A

Up to 16 EC2 Instances can be attached to a single volume
Instances and EBS Volume must be within the same AZ
Only works with io1 and io2 volumes.

53
Q

What are the Multi-Attach use cases?

A

Higher application availability in clustered apps.
Apps that must manage concurrent write operations

54
Q

What are characteristics of Multi-Attach?

A

Each instance attached has full read & write permissions to the volume. (So they can read and write at the same time)

55
Q

How many instances can be attached to the same ebs volume?

A

Up to 16 EC2 instances with multi attach

56
Q

What does EBS Encryption encrypt?

A

Data at rest and in transit (between volume and instance) of EBS Volumes.
EBS Volumes, Snapshots, Volumes created from snapshot, are all encrypted

57
Q

Who handles the encryption?

A

AWS Behind the scenes.

58
Q

How much does EBS Encryption impact latency?

A

Barely. Latency impact is minimal

59
Q

What kind of encryption is used for EBS?

A

AES-256 encryption, using a KMS.

60
Q

Describe the steps for encrypting an unencrypted EBS Volume

A

1 Snapshot of volume
2 Encrypt the snapshot
3 Create new EBS Volume from the snapshot
4 Attach new volume to the original instance

61
Q

Which protocol does EFS use?

A

NFS (Version 4.1)

62
Q

What function differentiates EFS to other storage services?

A

It can be attached to instances in different AZs.

63
Q

What are the main characteristics of EFS?

A

Highly available
Scalable in size
Very expensive, 3 times that of a gp2 EBS Storage.
You pay what you use

64
Q

How does EFS Scale in storage size? And how much storage do you pay for?

A

EFS Scales automatically. The space occupied is the size of the EFS System. It can grow or shrink depending on use, and the space occupied is what you pay for

65
Q

Use cases of EFS are:

A

Web servers, wordpress sites, content management and data sharing.

66
Q

Which OS is EFS compatible and incompatible with?

A

It’s compatible with Linux but incompatible with Windows.

67
Q

Does EFS support Encryption? How does it work?

A

Yes. With a KMS Server.

68
Q

How do you do capacity planning with EFS?

A

You don’t. You pay per use. And it scales automatically.

69
Q

What are the two modes of EFS?

A

Performance and Throughput

70
Q

Which options do you have for EFS File systems regarding zones?

A

You can choose to store an EFS File system in a region, or in a single AZ, which is cheaper.

71
Q

How can you most simply back up an EFS File System?

A

Enabling automatic backups in the EFS File system creation, or later.

72
Q

How do save costs of the stored data in an EFS File System? How does this work?

A

With lifecycle management. You transition files to a different tier based on how often these files are accessed.

73
Q

What is lifecycle management in EFS?

A

A way to reduce costs of EFS storage by moving files between tiers of storage, less used files are moved to cheaper tiers.

74
Q

What are the tiers of EFS storage and what are the differences?

A

Standard tier: Most frequently accessed files and the default tier.
IA: Less frequent access. Cheaper, but there is a cost every time a file is accessed.
Archive: 50% cheaper. Rarely accessed data.

75
Q

What is a caveat of the IA storage class?

A

Its cheaper than the standard but there is a fixed cost each time you access a file in this tier. (But since these are less frequently accessed, it’s overall cheaper than the standard tier)

76
Q

How does lifecycle management move file between tiers?

A

You set how many days have to go by before moving a file from standard to IA, and to archive. You also set if a file is moved back to standard tier or not after it being accessed once.

77
Q

Are EFS files that get moved to IA or archive tiers stored there forever?

A

Yes, unless you set to move back to standard after a file is accessed once. You can set to move back to standard after access, or to just keep it in the current tier after access.

78
Q

What are the options of EFS Performance mode? What are the differences between them? What are some use cases?

A

General purpose and MAX I/O.
General purpose is lower latency. (For web servers, shared files)
MAX I/O is higher throughput and IO, but higher latency too. (For media transfers, big data)

79
Q

How much can EFS scale?

A

To Petabyte scale, more than 10G/s throughput, and thousands of concurrent NFS clients.

80
Q

Which EFS Throughput mode scales with how much storage your EFS File System is currently using?

A

Bursting mode.

81
Q

Which EFS Throughput mode is more flexible?

A

Enhanced Mode

82
Q

Which EFS Throughput mode has 2 options, what are they and what is the difference between them?

A

Enhanced mode. It has elastic or provisioned.
Elastic means your throughput scales auto with how much workload activity there is against the EFS file system.
Provisioned is a set value you choose for the throughput. You get a burst of x3 that set value.

83
Q

What happens to performance mode then you choose elastic throughput?

A

You can’t set the performance mode to Max I/O when using elastic throughput.

84
Q

What is bursting, elastic and provisioned in EFS? What are each of them?

A

The 3 main modes for throughput. Bursting scales with storage size.
Elastic scales automatically with use, and provisioned is a static preset value.

85
Q

Inside which service do you create security groups?

A

EC2

86
Q

Which network configurations do you need to do to create an EFS File System?

A

You need to choose a VPC, and then a subnet and IP address for the File System per Availability Zone. You also need a security group to control who can access the NFS shares.

87
Q

what is the procedure to attach an EFS to an EC2 instance automatically?

A

On instance creation, choose a specific subnet for the instance.
Use the Attach EFS option in storage options
Enable the option to auto create and attach security groups for communication between instance and EFS.
Enable the option to auto apply user script to mount the share into the instance on instance first launch.

These steps will get you one ore more instance within a region with connectivity to the EFS system in a share. Resulting in a common network drive for all the instances desired.

88
Q

What is the procedure to attach an EFS to an EC2 instance manually?

A

To attach an instance to an EFS system, first, you need to have network connectivity from the instance to the EFS system in the NFS protocol. Through security groups and security rules, applied to the Ip addresses of the instance and EFS, or alternatively, applied directly to an opposite security group belonging to the instance and EFS system.
Then you need to mount a share of the EFS through the command line or an UI utility of the linux system.

89
Q

Can you boot an OS from EFS?

A

No you can’t.

90
Q

How do you control access to your EFS?

A

With security groups

91
Q

What are the security groups attached to in EFS?

A

To the ENI or ENIs that are attached to the EFS file system.

92
Q

Which of these file systems can be attached to multiple EC2 instances? EBS or EFS?

A

Both. EFS easily because its an NFS. EBS only through multi attach which is only supported for io1 an io2 types.

EBS multiattach is limited to 16 instances, while EFS can mount to 100s of instances in different AZs.

93
Q

What is a limitation of EBS against EFS?

A

EBS volumes are locked to a single AZ. EFS can connect to multiple AZs through use of multiple ENIs a region. One for each AZ to which the instances can connect to.

94
Q

What is a possible issue of backing up an EBS Volume?

A

It consumes IO and can slow the volume for the instance. You should do it when it’s not being used.

95
Q

What are the disadvantages of EFS?

A

Can’t boot from it
Only works with linux

96
Q

Which is cheaper, EFS or EBS?

A

EBS

97
Q

How can you apply cost savings in EFS?

A

With lifecycle management you can use storage tiers.

98
Q

What is an EFS Mount Target?

A

An ENI with an ip address and a dns name where you can mount the EFS share to your instance

99
Q

Can I use an AMI in an european region to create an instance in another european region?

A

NO. AMIs are region specific.

100
Q

Why would you copy an AMI to another region?

A

To be able to launch instances from this AMI in a different region

101
Q

Which type of storage offers the highest IOPS of all the options available?

A

Instance Store.

102
Q

How can you make an instance store volume be persistent?

A

With backup/replication methods.
For example, you can replicate an instance to a different az. If your original instance is stopped for any reason and the instance store is lost. You have a replica ready to take its place. You will lose data depending of the RPO set for the replica, and depending of the tool you use for this hypothetical replica.

103
Q
A