EC2 - Purchasing Options Flashcards

Understand the different purchasing options for EC2 Instances (47 cards)

1
Q

List all available EC2 Instance purchasing options

A

On Demand
Reserved Instance
Convertible Reserved Instance
Savings Plans
Spot Instances
Dedicated Hosts
Dedicated Instances
Capacity Reservations

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

What use cases would On-Demand Instances be useful for?

A

Short-term and un-interrupted workloads, where you cannot predict how the application will behave

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

What are the billing options for On-Demand Instances?

A

Linux or Windows are billed per second after the first minute.

All other OS’s are billed per hour

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

What purchasing option has the highest cost but no upfront payment?

A

On Demand

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

Is there a long-term commitment for On Demand Instances?

A

No. You only pay for what you use.

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

How are Reserved Instances priced in comparison to On Demand?

A

They are heavily discounted. Can be up to 72%

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

What are the instance attributes that are reserved for Reserved Instances?

A

Instance Type (e.g. General purpose, compute optimised)
Region
Tenancy (Host, Dedicated, Default)
OS

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

What is the reservation period for Reserved Instances?

A

1 or 3 years. 3 years have a greater discount applied.

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

What are the payment options for Reserved Instances?

A

No upfront, partially upfront and all upfront. With greater discounts being applied based on how large of an upfront payment there is.

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

What use cases are Reserved Instances recommended for?

A

They are recommended long workloads and steady-state usage applications e.g. databases

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

What is the name of the marketplace where you can buy and sell Reserved Instances?

A

Reserved Instance Marketplace

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

What two ways does a Convertible Reserved Instance differ from a standard RI?

A
  1. You can change the EC2 Instance type, family, OS, scope and tenancy.
  2. You get less of a discount (up to 66% compared to On-Demand). This is because of the additional flexibility.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the scopes you can set for a Reserved Instance?

A

Regional or Zonal (Reserve capacity in an AZ)

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

How are EC2 Savings Plans discounted?

A

They are discounted based on long term usage (up to 72% compared to On-Demand)

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

Which purchasing option requires you to commit to a certain type of usage? (e.g. $10/hour for 1 year)

A

Savings Plans

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

At what price will any usage beyond the limit for the Savings Plans be set to?

A

Any additional usage will be billed at the On Demand price

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

What two instance attributes are locked for EC2 Savings Plans?

A
  1. Instance family (e.g. M5)
  2. Region
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What three instance attributes are flexible for EC2 Savings Plans?

A
  1. Instance Size (e.g. m5xlarge, m5.2xlarge)
  2. OS (e.g. Linux, Windows)
    Tenancy (host, Dedicated, Default)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What Purchasing Option has the highest discount in comparison to On-Demand?

A

Spot Instances (up to 90%)

20
Q

What must you set for Spot Instances?

21
Q

Why might your Spot Instance be stopped or terminated? And how long is the grace period?

A

If the max price is less than the current spot price.

The grace period is 2 minutes.

22
Q

What is the most cost efficient Instance purchasing option?

A

Spot Instances

23
Q

What workloads are Spot Instances useful for? Provide some examples

A

Useful for workloads that are resilient to failure. Examples are:

Batch jobs
Data analysis
Image processing
Any distributed workloads
Workloads with a flexible start and end time

24
Q

What use cases are NOT suitable for Spot Instances?

A

Not suitable for critical jobs or databases

25
Which purchasing option provides a physical server with EC2 instance capacity fully dedicated to your use?
Dedicated Hosts
26
What are the two problems that Dedicated Hosts solve
1. Compliance requirements i.e. companies that have strong regulatory or compliance needs 2. Allows companies to use existing server-bound software licenses (per-socket, per-core, per-VM software licenses)
27
What are the purchasing options for dedicated hosts?
On-Demand - Pay per second for active Dedicated Host Reserved - 1 or 3 years ( No Upfront, Partial Upfront, All Upfront)
28
What is the most expensive purchasing option and why?
Dedicated Hosts because you are renting out a physical server that is reserved for your company's use only.
29
How does Dedicated Instances differ from Dedicated Hosts?
1. Instances run on hardware that's dedicated to you and not the entire server.
30
Can you control the instance placement for dedicated instances?
No
31
True or False? For Dedicated instances, you may share hardware with other instances in the same account?
True
32
What is Capacity Reservation?
Where you reserve On-Demand instance capacity in a specific AZ for any duration
33
True or False? You always have access to EC2 Capacity Reservations whenever you need it
True. You can reserve the capacity for any duration
34
True or False? There is a specific time commitment set for EC2 Capacity Reservations.
False. There is no time commitment and you can create/cancel instances within the capacity stated at any time.
35
At what price point are you charged for EC2 Capacity Reservations?
Charged at On-Demand rate whether you run instances or not. No billing discounts.
36
How can you gain billing discounts for Capacity reservations?
Combine with reserved instances and savings plans as capacity reservations are not discounted.
37
What use cases are Capacity Reservations suitable for?
Suitable for short-term, uninterrupted workloads that need to be in a specific AZ.
38
How frequently does the spot price vary and why?
Varies hourly and this is due to capacity
39
What is included in the Spot request when trying to create Spot Instances? List 5
Maximum price Desired number of instances Launch specification When the request is valid from/until Request type (one-time or persistent)
40
When can you cancel Spot Instance requests?
When the request is either open, active or disabled
41
Why must you cancel a spot request before terminating the spot instance?
If the spot request is set to persistent, more spot instances will be created to replace the ones that were terminated based on the desired number of instances set.
42
What are spot fleets?
They are set of spot instances as well as optional on-demand instances. It will try to meet the target capacity based on the price constraints that are set.
43
What are defined by the admin for the launch pools?
The instance type, OS, availability zone
44
True or False? You can have multiple launch pools. (Give a reason)
True. This is so the spot fleet can choose the most appropriate launch pool based on the allocation strategy.
45
When do spot fleets stop launching instances?
Whenever the instance capacity or max price is reached.
46
What are the different spot fleet allocation strategies and their benefits?
LowestPrice: Allocated from the pool with the lowest price (best for cost optimisation and short workloads) Diversified: Distributed across all defined pools (great for availability and long workloads) CapacityOptimised: Pool with the optimal capacity for the number of instances PriceCapacityOptimised (recommended for most workloads): Pools with the highest capacity available, then select the pool with the lowest price.
47
What are the benefits of using a spot fleet over a spot request?
Can get extra savings based on the allocation strategy set