Compute in the cloud Flashcards

1
Q

types of software you can run on an EC2 instance

A

internal business applications, simple web apps, or complex web apps, databases or third party software like enterprise software packages

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

what is vertically scaling an instance

A

give an instance more memory and more CPU based on the demand

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

what is multitenancy

A

the idea of sharing underlying hardware

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

where does EC2 run

A

EC2 runs on top of physical host machines managed by AWS using virtualization technology

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

what is the responsibility of the hypervisor

A

hypervisor running on the host machine is responsible for sharing the underlying physical resources between the virtual machines

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

EC2 instance types

A

general purpose instances, compute optimized,
memory optimized,
accelerated computing,
storage optimized.

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

General purpose instances

A

this provides a balance of compute, memory, and networking resources.

  1. application servers
  2. gaming servers
  3. backend servers for enterprise applications
  4. small and medium databases

when there is an application in which the resource needs for compute, memory, and networking are roughly equivalent we can use general purpose instances.

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

Compute optimized instances

A

deal for compute-bound (CPU bound) applications that benefit from high-performance processors

  1. high-performance web servers
  2. compute-intensive applications servers
  3. dedicated gaming servers
  4. batch processing workload
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Memory optimized instances

A

this is ideal for workloads that process large datasets in memory

when we have a workload that requires large amounts of data to be preloaded before running an application. This scenario might be a high-performance database or a workload that involves performing real-time processing of a large amount of unstructured data.

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

Accelerated computing instances

A

these instances use hardware accelerators, or coprocessors, to perform some functions more efficiently than is possible in software running on CPUs

  1. graphics applications
  2. game streaming
  3. application streaming.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Storage optimized instances

A

these instances are designed for workloads that require high, sequential read and write access to large datasets on local storage

  1. distributed file systems
  2. data warehousing applications
  3. high-frequency online transaction 4. processing (OLTP) systems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

how we pay for EC2 instances

A

we only pay for the compute time we use, only when instances are running not when they are stopped or terminated. we only pay for server capacity we need

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

what is amazon EC2 service

A

this is the service which provides the access to virtual server

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

what to consider when selecting an EC2 instance type

A

requirement for compute, memory or storage capabilities

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

what are the Amazon EC2 pricing types

A
  1. On-Demand
  2. Amazon EC2 Savings Plans
  3. Reserved Instances
  4. Spot Instances
  5. Dedicated Hosts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

On-Demand Pricing mode

A

ideal for short-term, irregular workloads that cannot be interrupted. No upfront costs or minimum contracts apply. The instances run continuously until you stop them, and you pay for only the compute time you use.

On-Demand Instances are not recommended for workloads that last a year or longer

  1. developing and testing applications
  2. running applications that have unpredictable usage patterns
17
Q

Amazon EC2 Savings Plans

A

several compute services including EC2 has this plan.

we can reduce our compute costs by committing to a consistent amount of compute usage for a 1-year or 3-year term. This term commitment results in savings of up to 66% over On-Demand costs

Any usage up to the commitment is charged at the discounted plan rate (for example, $10 an hour). Any usage beyond the commitment is charged at regular On-Demand rates.

18
Q

Reserved Instances pricing mode

A

this billing discount applied to the use of On-Demand Instances in your account

suited for steady-state workloads or ones with predictable usage

you qualify for a discount once you commit to a one or three-year term and can pay for them with three payment options

19
Q

what happens at the end of the reserved instance term

A

can continue using the Amazon EC2 instance without interruption. However, you are charged On-Demand rates until you do one of the following:

  1. Terminate the instance.
  2. Purchase a new Reserved Instance that matches the instance attributes (instance type, Region, tenancy, and platform).
20
Q

three payment options of reserved instances plan

A
  1. all upfront - you pay for them in full when you commit
  2. partial upfront - you pay for a portion when you commit
  3. no upfront, - you don’t pay anything at the beginning.
21
Q

Spot Instances pricing mode

A

allow you to request spare Amazon EC2 computing capacity for up to 90% off of the On-Demand price.

AWS can reclaim the instance at any time they need it, giving you a two-minute warning to finish up work and save state.

we can resume later if we want
with this workload will get interrupted.

ideal for workloads with flexible start and end times, or that can withstand interruptions
ex - batch workloads

22
Q

Dedicated Hosts pricing

A

physical servers with Amazon EC2 instance capacity that is fully dedicated to your use.

Dedicated Hosts are the most expensive.

23
Q

What is the difference between Amazon EC2 Savings Plans and Spot Instances?

A

Unlike Amazon EC2 Savings Plans, Spot Instances do not require contracts or a commitment to a consistent amount of compute usage.

24
Q

what is scalability

A

beginning with only the resources you need and designing your architecture to automatically respond to changing demand by scaling out or in

we pay only for the

25
Q

Amazon EC2 Auto Scaling

A

enables you to automatically add or remove Amazon EC2 instances in response to changing application demand. By automatically scaling your instances in and out as needed

26
Q

Amazon EC2 Auto Scaling, you can use two approaches

A
  1. Dynamic Scaling - responds to changing demand

2. Predictive Scaling - automatically schedules the right number of Amazon EC2 instances based on predicted demand.

27
Q

what we can do to scale faster

A

use dynamic scaling and predictive scaling together.

28
Q

what the meaning of minimum capacity in Amazon EC2 Auto Scaling

A

number of Amazon EC2 instances that launch immediately after you have created the Auto Scaling group

29
Q

what are the configurations we can set in Amazon auto-scaling group

A

minimum capacity
desired capacity
maximum capacity

30
Q

what happens if we don’t specify the desired number in the Auto Scaling group

A

If you do not specify the desired number of Amazon EC2 instances in an Auto Scaling group, the desired capacity defaults to your minimum capacity.