Compute Flashcards

1
Q

EC2

A

Manage & rent virtual servers

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

Lambda

A

A serverless compute service that runs code without you managing servers.

Uses your own app code, called functions, and supports many popular languages.

Scales automatically.

Lambda allows devs. to focus on core business logic for apps they are developing instead of worrying about managing servers

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

EC2 Spot Instance

A

Let you take advantage of unused EC2 capacity. Request is fulfilled only if capacity is available.

Uses:

  1. You are not concerned about start or stop time of your app
  2. Your workloads can be interrupted
  3. Your app is only feasible at very low compute prices

you can save up to 90% off on demand pricing. You pay spot prices that are in effect @ the beginning of each hour

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

EC2 On Demand Pricing

A

Fixed price in which you are billed down to the second based on the instance type. No contract and you only pay for usage.

Uses:

  1. You care about low cost without any upfront payment or commitment
  2. Your apps have unpredictable workloads that can’t be interrupted
  3. Your apps are under development
  4. Your workloads will not run longer than a year

You can reserve capacity using on-demand capacity reservations. The EC2 capacity is held for you whether or not you run the instance.

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

EC2 Reserved Instance

A

Allow you to commit to a specific instance type in a particular region for 1 - 3 years.

Uses:

  1. App has a steady state usage and you can commit for 1 - 3 years
  2. You can pay $ upfront to get a discount on, on-demand pricing
  3. Your app requires a capacity reservation

You can save up to 75% on, on-demand pricing.

You are required to sign a contract.

You can reserve capacity in an availability zone for any duration

You can pay all upfront, partial upfront, or no upfront. All upfront for a max term gets the best discount.

Provides convertible types at 54% discount

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

EC2 Dedicated Hosts

A

Dedicated Hosts allow you to pay for a physical server that is fully dedicated to running your instances.

Uses:

  1. You want to bring your own server bound licenses from vendors like MS or Oracle
  2. You have regulatory or corporate compliance requirements around your tenancy model

You can save up to 70% off on demand prices

You bring your existing per socket, per core, or per VM software licenses

There is no multi-tenancy meaning the server isn’t shared with other AWS customers

A dedicated host is a physical server where a dedicated instance runs on a host

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

EC2 Savings Plan

A

Allows commitment to compute usage, measured per hour, for 1 - 3 years

Uses:

  1. You want to lower your bill across multiple compute services
  2. You want the flexibility to change compute services, instance types, OS’s, or regions

You can save 72% off on demand pricing

You are not making a commitment to a dedicated host just compute usage

Savings can be be shared across various compute services like EC2, Fargate, and Lmbda

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

EC2 Load Balancing - Elastic Load Balancing

A

Automatically distributes your incoming app traffic across multiple EC2 instances.

Classic load balancers, app load balancers, gateway load balancers, network load balancers

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

EC2 Auto-scaling

A

Adds or replaces EC2 instances automatically across AZs, based on need and changing demand

Horizontal scaling - scaling out (auto scaling) reduces the impact of system failures and improves the availability of your apps.

*don’t confuse horizontal scaling for vertical scaling - scaling up. Vertical scaling upgrades an EC2 instance by adding more hardware resources to an existing VM

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

Ways to connect to an EC2 Instance

A

AWS mgmt console

SSH

EC2 instance connect

AWS systems manager

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

Lambda Use Case: Real-Time File Processing

A

Use a trigger like uploading a file to S3, lambda then pulls that data from S3 and imports it to dynamo db

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

Lambda Use Case: Sending Email Notifications

A

Sends an email based on predefined trigger in conjunction with other services

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

Lambda Features

A
  1. Supports popular programming languages like Java, python, powershell, ruby, c#, etc.
  2. You author the code either in your favorite ide, or via the console
  3. Lambda can execute code in response to events
  4. Lambda functions have a 15 minute time out and aren’t good for things longer than 15 min
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Lambda Pricing Model

A

You’re charged on the duration and # of requests

  1. Compute time, pay only for the compute time used, there is no charge if your code isn’t running
  2. Request Count - a request is counted each time it starts execution. Test invokes in the console as well (eg. testing is charged)
  3. Always Free - the free usage tier includes 1 million free requests each month
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

AWS Fargate

A

Serverless compute engine for containers.

Allows management of containers like docker.

Fargate scales automatically.

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

Amazon Light Sail

A

Allows you to launch all resources you need for small projects quickly.

Deploy preconfigured apps, like Wordpress websites, at the click of a button.

Has a simple UI for the inexperienced

Includes a VM, sad storage, data transfer, dns management, and a static IP

Provides a low predictable monthly fee as low as $3.50

17
Q

AWS Outposts

A

Allows you to run cloud services in your internal data center.

Supports workloads that need to remain on prem due to latency or data sovereignty needs

AWS delivers and installs servers in your internal data center

Used for a hybrid experience

Have access to cloud services and APIs to develop apps on prem

18
Q

AWS Batch

A

Allows you to process large workloads in small chunks called batches

Runs 100’s or 1,000’s or smaller batch processing jobs

19
Q

Server Migration Service (SMS)

A

Migrates on-prem servers to AWS

Server is saved as a new Amazon Machine Image (AMI)

Use AMI to launch servers as an EC2 instance

20
Q

Amazon Workspaces

A

Allows hosting of virtual desktops in the cloud

Virtualize Windows or Linux

Enables employees to work from home

21
Q

Amazon Connect

A

Cloud Contact Center Service (Help Desk)

Provides customer service functionality

Improves productivity of HD agents through real time monitoring and alerts

Also able to set up 800 #s