EC2 Flashcards

1
Q

What is EC2 ?

A

It is a web service that provides re-sizable compute capacity in the cloud.
* economic game changer.

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

EC2 Options ?

A

On-demand - allows you to pay a fixed rate (hour, second) with no commitment.
Reserved - provides you with a capacity reservation. (1-3 years contract). Significant discount.
Spot - enables you to bid whatever price you want for instance capacity. (Great if your apps have flexible start and finish times (like a stock market))
Dedicated hosts - Physical ECX2 server dedicated for your use. *Can use your own server bound licenses (VMWare, SQL, BYOL)

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

What are the 4 EC2 options ?

A

1) On Demand
2) Reserved
3) Spot
4) Dedicated Hosts

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

On-Demand - Use cases

A

1) Perfect for users that want the low cost and flexibility of Amazon EC2 without any upfront payments.
2) Applications with short term, spikey or unpredictable workloads that cannot be interrupted.
3) Applications being developed or tested for the first time. (Great for learning)

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

Reserved - Use Cases;

A

1) Applications with steady state requirements.
2) Applications with predictable usage.
3) Users can make upfront payments.

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

What are the three reserved instance (RI) types?

A

1) Standard RI
2) Convertible RI
3) Scheduled RI

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

Discounts on RI ?

A

Standard RI - 75% discount off (3-year contract)

Convertible RI 54% discount off (3-year contract)

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

What is a scheduled RI ?

A

An EC2 instance that is only available to launch within the time window you reserve.
* It allows you to match your capacity reservation to a predictable recurring schedule that only requires a fraction of a day, month or year.

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

Use Cases for Spot Instances?

A

1) Applications that have flexible start/finish time.
2) Applications that are only feasible at very low compute prices.
3) Users with an urgent need for large amounts of additional computing capacity.

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

Use Cases for dedicated hosts?

A

1) Useful for customers and licenses who are not eligible to support multi-tenant virtualisation
2) Can be purchased on demand (hourly)
3) can be purchased as a reservation for up to 70% off the on-demand price.

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

EC2 Instances Types: FightDrMcPX

A
F = FPGA
I = IOPS
G = Graphics
H = High Disk Throughput
T = Cheap General Purpose
D = Density
R = Ram
M= Main choice for general purpose apps:
C = Compute
P = Graphics (Pics)
X = Xtreme Memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Spot Instance Termination - When are you charged?

A

If a spot instance is terminated by AWS EC2 then you are not charged for the partial hour of usage. If you terminate the instance yourself then you will be charged for the complete hour in which the instance ran.

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

What does the status system check mean on an EC2 instance?

A

This check verifies that your instance is reachable. We test that we are able to get network packets to your instance.
* similar to a hypervisor check.

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

What does the instance system check mean on an EC2 instance?

A

This check verifies that your instance’s operating system is accepting traffic.

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

Termination Protection

A

This is turned on by default and you must turn it off into to terminate an instance.

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

EBS root volume encryption?

A

1) It cannot be natively encrypted on implementation.
2) It can be encrypted if you copy the AMI and encrypt the copied AMI’s root volume.
3) It can be encrypted by third-party tools.

17
Q

Role assignment

A

Roles can be assigned on creation or post creation.

18
Q

Check an EC2 metadata

A

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

19
Q

What is an EC2 clustered placement group?

A

A group of instances within a single availability zone.

  • Recommended for: Low network latency.
  • Recommended for high network throughput.
20
Q

What is an EC2 spread placement group?

A

A group of instances that are placed on distinct hardware. Recommended for applications that have a number of critical instances that should be kept separate from each other.
* Can span multiple availability zones.

21
Q

Placement group naming

A

Must be unique to your account.

22
Q

Only certain types of instances can be launched in a placement group.

A

Compute optimised
GPU
Memory optimised
Storage optimised

23
Q

Placement groups merges and movements

A

You cannot merge a placement group.
You cannot move an existing instance into a placemenr group.
You can create an AMI from an existing instance then launch a new instance from the AMI into a placement group.