EC2 Flashcards

1
Q

What is EC2?

A

Elastic Compute Cloud, a web service that provide resizable compute capacity in the cloud. You only pay for the capacity you use

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

EC2 Options

A

On Demand
Reserved
Spot

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

On Demand Pricing Structure

A

fixed rate by the hour with no commitment

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

Reserved Pricing Structure

A

you get a capacity reservation with a significant discount on hourly charge. 1 or 3 year terms

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

Spot

A

enables on to bid whatever price you want for instance capacity

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

On Demand uses cases include

A

Users wanting low cost and flexibility without upfront payment or long-term commitment

App with short-term, spiky or unpredictable workloads that cannot be interrupted

Apps being developed/tested

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

Reserved uses cases include

A

Apps with steady state or predictable usage

Apps that require reserved capacity

Users able to make upfront payment to reduce their total computing costs

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

Spot

A

Apps that have flexible start and end times

Apps that are only feasible at very low compute prices

Users with urgent computing needs for large amounts of additional capacity

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

EC2 instance types include:

A

T2, M3/4, C3/4, R3, G2, I2, D2 (T MaC RiGID)

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

What is EBS?

A

Elastic Block Storage. It is basically a disk in the cloud that can be attached to only one EC2 instance.

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

EBS volume types include:

A

General purpose SSD (GP2)
Provisioned IOPS SSD (IO1)
Magnetic (Standard)

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

General purpose SSD (GP2)

A

99.999% availability
Ratio of 3 IOPS per GB with up to 10,000 IOPS
Ability to burst up to 3000 IOPS for short periods for volumes under 1Gib

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

IOPS

A

Input/Output per second

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

Provisioned IOPS SSD (IO1)

A

Designed for I/O intensive applications. Use if you need more than 10,000 IOPS

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

Magnetic

A

Traditional disk storage - ideal for infrequently accessed data and for low-cost storage.

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

True or False. Termination protection for EC2 instances are turned on by default.

A

False. It is on turned on.

17
Q

What is the default action for an EBS-backed instance when the instance is terminated?

A

The root EBS volume is deleted.

18
Q

True or False. Root volumes cannot be encypted by default.

A

True, you need a third party tool to encrypt the root volume. However, additional volumes can be encrypted.

19
Q

What is a volume and where do they exist?

A

a virtual hard disk on EBS

20
Q

What is a snapshot and where do they exist?

A

Snapshots are point in time copies of volumes and exist on S3

21
Q

Snapshots are incremental meaning…

A

That only the blocks that have changed since the last snapshot are moved to S3.

22
Q

Can snapshots be shared?

A

Yes, only if they are unencrypted.

23
Q

Under what conditions should you take a snapshot of a root device?

A

After stopping the instance.

24
Q

How can a snapshot of a RAID array be taken?

A

By either:

  1. Freezing the file system
  2. Unmounting the RAID array
  3. Shutting down the associated EC2 instance
25
Q

What is an AMI?

A

Amazon Machine Image is a template which provides the information required to launch a virtual server in the cloud.

26
Q

What composes the AMI?

A
  1. A template for the root volume for the instance
  2. Launch permissions that control which AWS accounts can use the AMI to launch instances
  3. A block device mapping that specifies the volumes to attach to the instance when it’s launched.
27
Q

All AMIs are categorized as either backed by…

A

Amazon EBS or instance store

28
Q

For EBS volumes, the root device for an instance launched from the AMI is…

A

An Amazon EBS volume created from an Amazon EBS snapshot.

29
Q

For instance store volumes, the root device for an instance launched from the AMI is..

A

An instance store volume created from a template stored in Amazon S3

30
Q

What another name for instance store volumes?

A

Ephemeral storage

31
Q

Can instance store volumes be stopped?

A

No. If the underlying host fails you lose all data

32
Q

What happens to the EBS and instance store root volumes upon termination?

A

By default, the root volume will be terminated; however with EBS volumes, you can tell AWS to keep the root device volume

33
Q

True or false. Elastic Load Balancers have their own IP address.

A

False. They have their own DNS name. They are never given an IP address

34
Q

In Cloud Watch, what are the standard and detailed monitoring times?

A

5 minutes for standard, 1 minute for detailed

35
Q

What are some features of cloudwatch?

A

Dashboards - see what’s happening
Alarms - notify you of threshold hits
Events - help you to respond to state changes
Logging

36
Q

Can you assign a role to an existing EC2 instance?

A

No. Only when the instance is being provisioned.

37
Q

What some of the advantages of using roles to access and EC2 instance?

A
  1. more secure than storing the access key and secret access key on individual EC2 instances
  2. roles are universal which means you can use them in any region
  3. roles are easier to manage
38
Q

What is the metadata URL?

A

http://169.254.169.254/latest/meta-data/