EC2 Flashcards

1
Q

What is EC2?

A

A web service that provides secure and resizable compute capacity in the cloud. Simply put, it is an Amazon service that lets you deploy a virtual machine in the cloud.

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

What is the purpose of EC2?

A
  1. Makes web-scale computing easier for developers.

2. Gives you control of your own instances.

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

What are the four types of available pricing for EC2?

A
  1. On demand
  2. Reserved
  3. Spot
  4. Dedicated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the cheapest and most flexible payment option?

A

On Demand.

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

Briefly elaborate on the On-Demand pricing option

A
  • You pay by the hour

- You pay only for time when your instance is running

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

Briefly elaborate on the Reserved pricing option.

A
  • You are reserving EC2 capacity
  • You commit to using a certain amount of instances and get a discount
  • Operate at regional level
  • Great if you are able to make upfront payments
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

If you reserve capacity in the US-East and spin up an EC2 instance in the US-West, will you get a discount?

A

No. You do not get discounts on instances you spin up outside the region of your reserved capacity.

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

For which type of application would it be best to opt for Reserved capacity?

A
  • Apps with predictable usage patterns
  • Apps with specific capacity requirements
  • If you are
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

For which type of application would it be best to opt for On-Demand?

A
  • Aapps with short-term, unpredictable workloads that cannot be interrupted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Name the three types of reserved instances and briefly touch on each one.

A
  1. Standard Reserved Instance –you reserve a certain quantity of a reserved instance type
  2. Convertible Reserved Instance –similar to a Standard Reserved Instance, but you are able to change to a different Reserved Instance of equal or greater value if you need to upgrade your instance (discount received is lower)
  3. Schedules Reserved Instance –enables you to launch a Reserved Instance within a specified time-frame so that you can match your capacity reservation to a predictable schedule
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Briefly elaborate on the Spot pricing option.

A
  • You purchase unused capacity at a discount
  • You are able to bid whatever price you want for instance capacity
  • When the maximum price you bid is exceeded, the instance is terminated or hibernated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Who is the Spot pricing option most suitable for?

A

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
13
Q

Who is the Reserved pricing option most suitable for?

A

Users who can make upfront payments

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

Who is the On-Demand pricing option most suitable for?

A

Users looking for something with low costs, lots of flexibility and no upfront payments

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

For which type of application would it be best to opt for the Spot pricing option?

A
  • Apps with flexible start and end times (not for apps that need to be up and running all the time)
  • Apps that are only feasible at low compute prices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Briefly elaborate on the Dedicated pricing option.

A
  • You have a physical server running EC2 instances, dedicated for your use
17
Q

In which situation is it most suitable to go for the Dedicated pricing option?

A
  • If you have to meet regulatory requirements which do no support multi-tenancy
  • For licensing which does not support multi-tenancy or cloud deployments
  • If money is not a concern
18
Q

CPU, memory and storage of your EC2 instance is determined by what?

A

The instance type

19
Q

Where is your instance hosted?

A

On a host computer whose hardware is determined by the instance type.

20
Q

How are instances created?

A

Using AMIs (Amazon Machine Images)

21
Q

What is a bootstrap script?

A

It is essentially any command you want to run when the system boots up.

22
Q

What is a security group and for what do we make use of it?

A

A security group is similar to a virtual firewall –it is what we use to allow traffic in and out of our instance.