EC2 101 Flashcards

1
Q

Per second billing

A

Available for instances launched in:

On-Demand, Reserved and Spot forms
All regions and Availability Zones
Amazon Linux and Ubuntu

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

on-demand instance overview

A

pay fixed rate by hour or second with no commitment

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

reserved instance overview

A

provide capacity reservation
significant discount on charges
1-3 year terms

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

spot instances overview

A

let you bid on pricing
allow for greater savings if you have flexible start and stop times
If you terminate, you pay for full hour
if AWS terminates, you get hour for free

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

dedicated hosts overview

A

physical EC2 server

allow for using existing licenses

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

on-demand instance use cases

A

users need low cost & flexibility
no upfront payment
applications with short-term, spiky or unpredictable workloads
applications being tested in EC2 for first time

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

reserved instance use cases

A

applications with steady state or predictable usage
applications requiring reserved capacity
users make upfront payments to reduce costs

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

spot instance use cases

A

applications that have flexible start, stop times
applications only feasible at very low prices
users with urgent need for large amount of extra capacity

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

dedicated host use cases

A

if regulations or licensing prevent multi-tenant virtualization
licensing based on cpu, or cores
can buy at hourly rate
can buy as a reservation

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

Types of Reserved Instances

A

standard RI up to 75% discount
convertible RI’s up to 54% discount. Allow changing attributes of instances\
scheduled RI’s let you set time they run

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

EC2 Instance Types

DRMCGIFTPX

A
dense storage
memory optimized (RAM)
general purpose (Main choice for gp)
compute optimized
graphics intensive
high speed storage (I for IOPS)
FPGA
general purpose, lowest cost (T2 micro)
graphics general purpose GPU (machine learning)
memory optimized (extreme memory)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Elastic Block Storage

A

block based storage
create volumes and attach them to EC2 instances
for running databases, operating systems
placed in specific AZ and automatically replicated within that AZ

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

EBS Volume Type

GP2

A

General Purpose SSD
balance price and performance
ratio of 3 IOPS per gig, up to 10,000 IOPS
bursts to 3000 IOPS for volumes over 3334 Gb

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

EBS Volume Type

Provisioned IOPS SSD (IO-1)

A

for IO intense apps like NoSQL or large relational databases
use if you need more than 10,000 IOPS
can go up to 20,000 IOPS

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

EBS Volume Type

Throughput Optimized HDD (ST1)

A

Magnetic HD
use for big data, log processing
use if large amounts of sequential data
CANNOT be a boot volume

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
EBS Volume Type
Cold HDD (SC1)
A

lowest cost storage
for infrequently accessed workloads
use for file servers
CANNOT be a boot volume

17
Q

EBS Volume Type

Magnetic (standard)

A

CAN be bootable
lowest cost per Gb of all bootable EBS volume types
ideal for infrequently accessed data, lowest cost

18
Q

Can you mount an EBS volume to multiple EC2 instances?

A

no

19
Q

How to get instance metadata from the instance terminal

A

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

20
Q

EC2 Placement Groups

A

Grouping of instances in a single AZ for using 10Gb network. Can’t span AZ’s.

Lets applications use a low latency 10Gbs network
For apps that need low latency, high throughput or both

21
Q

Types of instances allowed in Placement Group

A

compute optimized
GPU
Memory Optimized
Storage Optimized

22
Q

Does AWS recommend using homogenous instances in a placement group?

A

Yes. Same family and sizes

23
Q

Can you move an existing instance into a placement group?

A

No.

Have to create an AMI, then move then launch new instance from the AMI

24
Q

Can you merge placement groups?

A

No

25
Q

HVM

Hardware Virtual Machine

A

HVM AMI’s have fully virtualized set of hardware and boot by executing MBR of the root block device of your image

Lets you run OS directly on top of a VM with no modification, as if it were bare metal

EC2 hosts system emulates some or all of the hardware

26
Q

PVM

Paravirtual Machine

A

boot with special boot loader PV-GRUB

Can run on hardware without explicit support for virtualization

CANNOT take advantage of special hardware extensions for GPU processing, advanced networking

Historically had better performance than HVM but HVM has improved and no longer true

27
Q

PVM vs HVM

A

main differences
how they boot
taking advantage of special hardware extensions

28
Q

Does AWS recommend PVM or HVM?

A

HVM and current generation instance types