Technology Compute Flashcards

1
Q
A

Elastic Compute Cloud

EC2

Allows you to rent and manage virtual servers in the cloud

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

What are EC2 instances?

A

The virtual servers running on physical servers

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

Are instances considered serverless?

A

NO

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

EC2 is a foundational service used for managing your _________ _____________

A

virtual

instances

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

What are 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
6
Q

Can you deploy your applications directly to EC2 instances ?

A

Yes

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

EC2

Free Tier plan includes

A

750 compute hours per month

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

EC2 in the real world

Mention 2 real world uses

A

1.-Deploy a Database

(Deploying a database to EC2 gives you full control over the database )

2.- Deploy a Web Application

(Deploy to multiple AZs to make the web application highly available )

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

Methods to Access an EC2 Instance

A

1.- AWS Mgmt Console

Config and manage your instances via a web browser

2.- EC2 Instance Connect (EIC)

EIC allow you to use IAM policies to control SSH access to your instances, removing the need to manage SSH keys

3.- Secure Shell (SSH)

SSH allows to establish a secure connection to your instance from your local laptop

4.- AWS Systems Manager

Systems Manager allows you to manage your EC2 instances via web browser or the AWS CLI

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

Most common vay to connect to Linux EC2 instances

A

Secure Shell SSH

    • Generate a key pair
  1. -Connect via SSH
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a key pair

A

Consists of a private key ( SSH Cliente on laptop )

and

a public key ( EC2 instances )

proves your identity when connecting to an EC2 instance

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

EC2 Pricing Options

A
    • On-Demand
    • Spot
    • Reserved Instances
    • Dedicated Hosts
    • Saving Plans
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

On Demand

A

Fix prices, billed down to the second based on instance type. No contract and you pay only for what you use

Fun fact

You can reserve capacity using On Demand Capacity Reservations. EC2 capacity is held whether or not you run the instance

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

When to use on demand instances

A
    • Care about low cost without any upfront payment or long term commitment
    • Your apps have unpredictable workloads that can´t be interrupted
  1. -Your applications are under development
    • Workloads will not run longer than a year
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Spot

A

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

Fun facts

  • You can save up to 90% off On Demand prices
  • You pay the spot price that´s in effect at the beginning of each hour

CHEAPEST OF OPTION

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

When to use Spot

A
    • 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
17
Q

Reserved Instances (RIs)

A

RIs allow you to commit to a specific instance type in a particular Region for 1 or 3 years

Fun facts

  • Save up to 75% off On Demand Prices
  • Required to sign a contract
  • Reserve capacity in an Availability Zone for any duration
  • Can pay All Upfront, Partial Upfront, or No Upfront. All Upfront for max term = highest discount
  • Provides convertible types at 54% discount
18
Q

When to use Reserved Instances

A
    • Application has steady state usage, and you can commit to 1 or 3 years
    • You can pay money upfront to receive more discount
    • You app requieres a capacity reservation
19
Q

Dedicated Hosts

A

Allo you to pay for a physical server that is fully dedicated to running your instances

Fun facts

  • Save up to 70% off On Demand Prices
  • You bring your existing per-socket, per-core, or per-VM SW license
  • There is no multi-tenancy, server is not shared with other customers
  • Dedicated host is a physical server, whereas a Dedicated Instance runs on the host
20
Q

When to use Dedicated Host

A
    • You want to bring your own server-bound SW license from vendors like Microsoft or Oracle
    • You have regulatory or corporate compliance requierements arond tenancy model
21
Q

Savings Plan

A

Allows you to commit to compute usage ( measured per hour ) for 1 or 3 years

Fun facts

    • 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
    • Does not provide a capacity reservation
22
Q

When to use Savings Plans

A
    • Want to lower your bill across multiple compute services
    • Want the flexibility to change compute services, instance types, operating systems or Regions
23
Q

EC2 Features

A
    • Elastic Load Balancing. automatically distributes your incoming application traffic across multiple EC2 instances
    • Auto Scaling.- adds or replaces EC2 instances automatically across AZs, based on need and changing demand. Horizontal scaling or scaling out ( reduces the impact of system failures and improves the availability of your applications )

NOTE: Not to confuse Scale out with Scaling up which upgrades an EC2 instance by adding more power (CPU, RAM) to an existing server

24
Q

Types of load balancers

A

Classic

Application

Gateway

Network

25
Q
A

AWS Lambda

Serverless compute service that lets you run code without managing servers

  • You author application code called functions, using many popular. languages
  • Scales automatically
  • Serverless means you don´t worry about managing servers like with EC2
26
Q

Lambda in the Real World

A
    • Real time file processing
    • Sending email notifications
    • Backend business logic
27
Q

Real time file processing

A
28
Q

Sending email notifications

A
29
Q

Backend business logic

A
30
Q

Lambda features

A
    • Supports programming languages like Java, Go, PowerShell, Node.js, C#, Python, and Ruby
    • You author cose using your favorite dev enviornment or via the console
    • Lambda can execute your code in response to events
    • Lambda functions have a 15 minute timeout
31
Q

Lambda Pricing Model

A

Charged based on the duration and number of requests

    • Compute time.- Pay only for compute time used - there is no charge if your code is not running
    • Request count.- A request is counted each time it starts execution. Test invokes in the console count as well
    • Always free.- The free usage tier includes 1 million free request per month
32
Q

Lambda

Your responsibility ?

A

Only for application code

AWS manages servers, coding environment, and language support

33
Q

Guess the service

A

AWS Fargate

Serverless compute engine for containers

  • Fargate allows you to manage containers, like Docker
  • Scales automatically
  • Serverless means you don´t worry about provisioning, configuring, or scaling servers
34
Q

Guess the service

A

Lightsail

Lightsail allows you to quickly launch all the resources you need for small projects

  • Deployed preconfigured apps like WordPress websites, at the click of a button
  • Simple screens for people with no cloud experience
  • Includes a VM, SSD based storage, data transfer, DNS mgmt and a static IP
  • Provides a low, predictable monthly fee, as los as $3.50
35
Q

Guess the service

A

AWS Outposts

Run cloud services in your internal data center

  • Supports workloads that need to remain on prem due to latency or data processing needs
  • AWS delivers and installs servers in your internal data center
  • Used for a hybrid experience
  • Have access to the cloud services and APIs to develop apps on premises
36
Q

Guess the service

A

AWS Batch

Allow you to process large workloads in smaller chunks

( or batches)

  • Runs hundreds and thousands of smaller batch processing jobs
  • Dynamically provisions instances based on volume
37
Q
A