Compute Flashcards

1
Q

EC2 (Elastic Compute Cloud): 4 facts

A
  1. Allows you to rent and manage virtual servers in the cloud.
  2. AWS’s virtual servers are called instances.
  3. Elastic - can grow or shrink based on the needs of, or the loads on your application
  4. Uses virtual servers - compute or processing power in the cloud
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Amazon Machine Image (AMI) =

A

a preconfigured template to launch your instance

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

4 Methods to manage an EC2 instance:

A
  1. AWS Management Console - via web browser
  2. SSH - from local computer
  3. EC2 Instance Connect - no need to install an SSH client. EIC allows you to use IAM policies to control SSH access to your instances, removing the need to manage SSH keys.
  4. AWS Systems Manager - allows you to manage your EC2 Instances via a web browser (interactive one-click browser based shell) or the AWS CLI
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The most common way to connect to a Linux EC2 Instance

A

via a Secure Shell (SSH)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. On-Demand Instances:
A
  • fixed price billed down to the second, based on what you use. No contract.
    Common use cases:
  • ideal for low cost without up-front payment or long-term commitment; unpredictable workloads that can’t be interrupted; for applications that are under development; for workloads that will not run longer than a year.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. Spot Instances
A

(least expensive option):
-Lets you take advantage of unused EC2 capacity. Your request is fulfilled only if capacity is available.
Common use cases:
- you are not concerned about the start or stop time of your application; your workloads can be interrupted; your application is only feasible at very low compute prices;
- you pay the spot price that’s in effect at the beginning of the hour; up to 90% less than on-demand.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. Reserved Instances
A
  • RIs allow you to commit to a specific instance type in a particular region for 1 to 3 years.
    Common use cases:
  • your application has/needs steady state usage; can commit to 1or 3 years; can pay upfront to receive a discount on on-demand prices; your application requires a capacity reservation.
  • can save 75% off on-demand; requires a contract; can reserve capacity in an AZ for any duration; can pay all, partial, or no upfront - all upfront earns the highest discount.
  • Provides convertible types at 54% discount - if you need additional flexibility (change the instance family, change the OS, etc.)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. Dedicated Hosts:
A

Allows you to pay for a physical server that is fully dedicated to running your instances.
Use cases:
- You want to bring your own server-bound software license from vendors like Microsoft or Oracle; you have regulatory or corporate compliance requirements around a tenancy model.
- can save up to 70% off on-demand prices; your bring your existing per-socket, per-core, or per-VM software licenses; the server is NOT shared with other customers (no multi-tenancy); a Dedicated Host is a physical server, whereas a Dedicated Instance runs on the host.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. Savings Plans:
A

Allows you to commit to compute usage (measured per hour) for 1 or 3 years.
Use cases:
- you want to lower your bill across multiple compute services; you want the flexibility to change compute services, instance types, OSs, or regions.
- you can save up to 72% off on-demand prices; you are not making a commitment to a Dedicated host, just compute usage; Saving can be shared across various compute services like EC2, Fargate, and Lambda; this does not provide a capacity reservation.

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

Elastic Load Balancing:

A

automatically distributes your incoming application traffic across multiple EC2 instances. “The door greeter standing at the door, directing traffic”
Different types: (classic load balancers - deprecated); application load balancers; gateway load balancers; network load balancers.

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

EC2 Auto Scaling

A

Uses horizontal scaling (or scaling out) - could go from 2 server instances to 3, or 3 down to 1 based on need. Auto (horizontal) scaling is very important because it reduces the impact of system failures and improves availability of your applications.

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

Vertical scaling

A

“upgrading” (or scaling up), which upgrades and EC2 instance by adding more compute power (CPU, RAM) to an existing server.

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

AWS Lambda is a:

A

serverless compute service that lets you run code without managing servers.

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

You author code in Lambda by

A

functions, using many popular programming languages (The code you write is called a function)

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

Lambda _____’s automatically

A

Scales

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

Lambda allows developers to focus on core business logic for the apps they are developing, instead of:

A

managing servers - patching, provisioning, scaling, etc.

17
Q

With Lambda you ___ access servers

A

Cannot

18
Q

Lambda can execute your code in response to

A

events

19
Q

Lambda Functions have a ____ timeout

A

15 min

20
Q

With lambda, you are only responsible for the _____

A

Code. AWS manages the coding environment and the supported language versions

21
Q

With Lambda you are charged based on the ____ and ___

A

compute time duration and number of requests

22
Q

The Lambda free usage tier includes includes ______

A

1 million free requests each month

23
Q

An application in a container will run _____

A

the same every time, because it is a self-contained unit.

24
Q

AWS Fargate is a ___ compute engine for _____

A

Serverless, containers

25
Q

Fargate allows you to manage ____ similar to ____

A

Containers, Docker

26
Q

Fargate ____s automatically and is ___

A

scales, serverless

27
Q

Fargate works well with ___ and ___

A

Amazon Elastic Container Service (ECS) and Amazon Elastic Kubernetes (EKS)

28
Q

AWS Lightsail is a ___ that manages ___

A

Virtual Private Server, containers

29
Q

Lightsail allows you to quickly deploy ____ for small projects

A

pre-configured applications

30
Q

Lightsail includes (5 things):

A

Virtual machine, SSD-based storage, data transfer, DNS service management, and a static IP address

31
Q

AWS Outposts allows you to run AWS cloud services in your _____

A

Internal data center

32
Q

Outposts is an example of a ____ model

A

Hybrid

33
Q

Outposts support workloads that need to remain _____ due to _____ or ______

A

on-premises, latency, data sovereignty needs

34
Q

With Outposts, AWS actually ____ and ____ ___ in your ____

A

delivers and installs servers in your internal data center.
- used for a hybrid experience

35
Q

AWS Batch allows you to:

A

process large workloads in smaller chunks (or batches)

36
Q

AWS Batch is a

A

fully managed batch computing service that plans, schedules, and runs your containerized batch or ML workloads across a full range of AWS compute offerings.

37
Q

_______ is an event-driven, serverless computing platform that runs code in response to _____ and automatically manages the computing resources required by that code.

A

AWS Lambda, events