EC2 Flashcards

1
Q

What is EC2 ?

A

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

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

What are the 4 EC2 Pricing 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
3
Q

What are EC2 On-Demand Instances - Use cases?

A

1) Users that want the low cost and flexibility of Amazon EC2
2) without any upfront payments.
3) Applications with short term, spikey or unpredictable workloads that cannot be interrupted.
4) Applications being developed or tested for the first time.
5) Learning Environments

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

What are EC2 Reserved Instances - 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
5
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
6
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
7
Q

What are Use Cases for EC2 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
8
Q

What are the 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
9
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
10
Q

What is EC2 Termination Protection?

A

Prevents the deletion of an instance, it’s turned off by default.

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

Describe EC2 On Demand Instances:

A

Allows to pay a fixed rate by the hour, with no commitment.
Recommended for:
Applications with unpredictable workloads
Applications that can’t be interrupted

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

Describe EC2 Reserved Instances.

A

Provides a capacity reservation, with significant discount.
Contract terms are 1 or 3 years.
- Applications with Predictable workloads.
There are 3 types:
- Standard
- Convertible
- Scheduled

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

What are the 3 types of EC2 Reserved Instances:

A
Standard:
 - 75% of discount from On Demand price
Convertible:
 - You may convert one instance to another.
Scheduled:
- Works at specific time intervals.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Describe EC2 Spot Instances

A

Unused instances on which you bid on.
AWS will assign them to you if your target price is above the spot price.
Workload will run as long as the price is below.
Ideal for workloads that can be interrupted.

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

Describe EC2 Dedicated host instances

A

Used for regulatory applications.

Can be purchased on demand.

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

Can you encrypt the root device volume?

A

Yes, from the beginning or at a later time

17
Q

What is the default action for the volumes when you terminate an EC2 instance?

A

To delete the root volume, and keep the rest.

18
Q

What’s the difference between Security Group rules and NACLs (network access controls LIsts)?

A

Security groups rules are stateful: once you allow inbound traffic to a port, outbound traffic is allowed.
NACLs rules are state-less: you have to permit inbound and outbound traffic rules.

19
Q

How does traffic behaves on security Groups by default?

A

All traffic is blocked, you must create “allow” rules to allow specific traffic.

20
Q

What types of Storage are available for EC2 Instances?

A

EBC and Instance Store

21
Q

How is sometimes called Instance Store?

A

Ephemeral Storage, since it is not persistent.

22
Q

What is the difference between EBS and Instance Store?

A

If an instance store backed AMI fails at the Hypervisor, data will be lost.
None will lose data if rebooted.
EBS can be stopped, Instance Store can’t.
You can’t keep an Instance Store volume.
Instance Store volumes can’t be seen in Volumes.

23
Q

What is ENI?

A

Elastic Network Interface:

  • provides a primary private IPv4 address
  • One or more private IPv4 address
  • One elastic IPv4 per private address
  • One or more IPv6 address
  • One or more security groups
  • A MAC Address
  • A source/destination check flag
  • A description.
24
Q

What is Enhanced Networking?

A

It’s a method to provide higher network performance to your EC2 instance, only available to some instance types.

25
Q

What does Enhanced Networking SR-IOV stands for?

A

Single root I/O Virtualization

26
Q

What options of Enhanced Networking exist?

A

Elastic Network Adapter (ENA) and Virtual Function (VF)

27
Q

What is the supported speed of ENA?

A

100 Gbps

28
Q

What is EFA and what is it’s purpose?

A

Elastic Fabric Adapter,enhance HPC and ML workloads.,

  • Low latency
  • bypasses OS
  • Only Linux support
29
Q

What are the uses of ENI vs ENA vs EFA?

A

ENI - additional network interfaces.
ENA - High performance Network interface
EFA - HPC or ML workloads.