Module 2 - Compute in the Cloud Flashcards

(86 cards)

1
Q

What is “compute”?

A

the processing power needed to run applications, manage data, and perform calculations

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

What is compute in the AWS cloud?

A

Remote, on-demand, computing power without the need to own, manage or maintain physical hardware.

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

What is Amazon EC2?

A

Amazon Elastic Compute Cloud -
Creating virtual machines in the AWS cloud.

Amazon EC2 is “compute as a service”

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

True or False

An EC2 Instance is a Virtual Machine

A

True

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

What makes an EC2 instance cost effective compared to running an on-premises server?

A

No need to pay for
* a hardware server and its system software
* a building to house it and electricity, heating and cooling
* people to maintain the hardware

With AWS, only pay for the compute time when the EC2 instance is running

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

How does an EC2 instance increase operational efficiency?

A

Provision and launch an EC2 instance in minutes

vs. waiting for hardware to be delivered, installed and configured

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

How do EC2 instances simplify capacity planning?

A

Launch as many EC2 instances as you need (scale up). Terminate instances you don’t need (scale down).

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

What is a hypervisor?

A

Software that runs on physical hardware (the host) and creates and runs virtual machines that run on the host.

Manages resource sharing between VMs. Manages isolation of VMs.

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

What is multi-tenancy in the context of EC2 instances?

A

When multiple EC2 instances run on a shared host.

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

What is an Amazon Machine Image (AMI)?

A

An image with the Operating System and other software required to set up and boot an Amazon EC2 instance.

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

AWS offers pre-configured AMIs (Amazon Machine Images). Can you also create your own?

A

Yes, you can also create your own or purchase third-party AMIs in the AWS Marketplace.

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

How do AMIs enhance reliability?

A

Launching multiple instances from the same AMI ensures they have the same software, reducing the risk of configuration errors.

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

What is an Amazon EC2 Instance Type?

A

Determines the hardware (compute, memory, storage and networking capacity) of the host computer used for the EC2 instance.

Each instance type includes one or more instance sizes.

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

To get started with an EC2 Instance, you Launch, Connect and Use. What do you do to Launch?

A
  • Name the instance
  • Select an Amazon Machine Image (AMI) (OS and other software)
  • Select an Instance Type (hardware)
  • Select a key pair (for login)
  • Configure network settings and storage
  • Run the instance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

To get started with an EC2 Instance, you Launch, Connect and Use. What are 3 ways for administrators to Connect?

A
  1. SSH for Linux EC2 instances
  2. Remote Desktop Protocol for Windows EC2 instances
  3. AWS Systems Manager (for any kind of EC2 instance)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are instance families?

A

Categories (groupings) of instance types that offer different mixes of CPU, memory, storage and network capacity.

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

Can you name 8 EC2 instance families?

A
  1. General Purpose
  2. Burstable Performance (T)
  3. Compute Optimized
  4. Memory Optimized
  5. Storage Optimized
  6. Accelerated Computing
  7. High-performance Computing
  8. Previous Generation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What does the “General Purpose” instance family provide?

A

A balance of compute, memory, and networking resources. Ideal for applications that use these resources in equal proportions, such as web servers and code repositories.

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

What does the “Burstable Performance” instance family provide?

Also referred to as the T instance family.

A

a baseline CPU performance with the ability to burst above the baseline at any time

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

What does the “Compute Optimized” instance family provide?

A

Hardware configurations with a higher ratio of virtual CPUs to memory than the other families and the lowest cost per virtual CPU of all the EC2 instance types. Good for CPU-bound applications such as frontend fleets for high-traffic websites, on-demand batch processing, distributed analytics, web servers, video encoding, and high-performance science and engineering applications.

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

What does the “Memory Optimized” instance family provide?

A

Fast performance for workloads that process large data sets in memory.

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

What does the “Storage Optimized” instance family provide?

A

High performance read/write access to large data sets on local storage. Optimized to delivery tens of thousands of low latency, random I/O operations per second (IOPS).

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

What does the “Accelerated Computing” instance family provide?

A

Hardware accelerators, such as graphics processing units (GPUs) or field programmable gate arrays (FPGAs), which enable more parallelism for higher throughput on compute-intensive workloads. Hardware accelerators, or co-processors, perform functions, such as floating point number calculations, graphics processing, or data pattern matching, more efficiently than is possible in software running on CPUs.

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

What does the “High-performance computing” instance family provide?

A

Best price performance for running HPC workloads at scale on AWS. These instances are ideal for applications that benefit from high-performance processors, such as large, complex simulations and deep learning workloads.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What does the "Previous Generation" instance family provide?
Previous generation instance types for users who have optimized their applications around them and have yet to upgrade. ## Footnote [See Amazon EC2 instance type specifications](https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-type-specifications.html)
26
# Fill in the blanks Instance Types are named based on their instance ________ and their instance __________.
family and size | e.g. c7gn.2xlarge
27
# True or False A larger instance size carries a larger $ cost.
True. When choosing instance size, customers may want to balance performance and cost.
28
Can you change the instance type of an instance, e.g. to resize it?
Yes. (It does seem that you will need to stop the EC2 instance, change the instance type, and then start the EC2 instance.) ## Footnote [See Change EC2 instance type](https://repost.aws/questions/QUqnnC0uIqRMywnNVAoIIyaA/change-ec2-instance-type)
29
What does API stand for?
**Application Programming Interface** "mechanisms that enable two software components to communicate with each other using a set of definitions and protocols" ## Footnote [See What is an API?](https://aws.amazon.com/what-is/api/)
30
How does an AWS customer interact with AWS?
API calls | API = Application Programming Interface
31
Name three ways AWS customers can call the AWS APIs
1. AWS Management Console 2. AWS Command Line Interface (CLI) 3. AWS Software Development Kit (SDK)
32
Describe the AWS Management Console
Browser based user interface that calls AWS APIs. Oriented for manual operations vs. production operations. Good for e.g. at getting started, experimenting, looking at AWS bills. ## Footnote See [What is the AWS Management Console](https://docs.aws.amazon.com/awsconsolehelpdocs/latest/gsg/what-is.html)
33
Describe the AWS CLI (Command Line Interface).
Supports text commands to call AWS APIs. Enables scripting automation. ## Footnote See [What is the AWS Command Line Interface](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html)
34
What is AWS CloudShell?
A browser-based, pre-authenticated shell that you can launch directly from the AWS Management Console. AWS CLI is pre-installed so you can make AWS API calls. ## Footnote [See What is AWS CloudShell.](https://docs.aws.amazon.com/cloudshell/latest/userguide/welcome.html)
35
What are AWS SDKs?
Software Development Kits that enable software programs to make AWS API calls. AWS provides SDKs for many popular technologies and programming languages.
36
What is an IDE?
"An integrated development environment (IDE) is a software application that combines essential developer tools into one interface to streamline software development." ## Footnote [https://github.com/resources/articles/what-is-an-ide](https://github.com/resources/articles/what-is-an-ide)
37
What is Visual Studio Code?
An IDE from Microsoft. "A standalone source code editor that runs on Windows, macOS, and Linux. The top pick for JavaScript and web developers, with extensions to support just about any programming language." ## Footnote [https://visualstudio.microsoft.com/](https://visualstudio.microsoft.com/)
38
Does AWS offer SDK ToolKits for IDEs?
Yes, e.g. the AWS toolkit for Visual Studio Code is an open source plug-in for the Visual Studio Code that makes it easier to create, debug, and deploy applications on Amazon Web Services. ## Footnote [https://aws.amazon.com/visualstudiocode/](https://aws.amazon.com/visualstudiocode/)
39
# True or False? EC2 is an **unmanaged** AWS service.
True. The AWS customer is responsible for managing the guest operating system (OS), applying OS updates, and setting up firewalls (security groups).
40
Name the 7 different EC2 pricing options.
1. On-Demand instances 2. Reserved instances 3. Spot instances 4. Savings Plans 5. Dedicated Hosts 6. Dedicated Instances 7. Capacity Reservations ## Footnote See [Pricing for Amazon EC2](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html#ec2-pricing)
41
Describe the EC2 Pricing Option known as "On-Demand Instances".
On-Demand Instances: Pay only for the compute capacity you consume with no upfront payments or long-term commitments required. Pricing can be per/hour or per/second.
42
Describe the EC2 Pricing Option known as "Reserved Instances".
Reduce your Amazon EC2 costs by making a commitment to a specific instance configuration, including instance type and Region, for a term of 1 or 3 years. Reserved Instances are a billing discount applied to On-Demand Instances that match the instance type and Region to which you committed.
43
Describe the EC2 Pricing Option known as "Spot Instances".
Spot Instances: Bid on spare compute capacity at up to 90 percent off the On-Demand price, with the flexibility to be interrupted when AWS reclaims the instance. You do get a 2-minute warning before the instance terminates. | Use for workloads that can tolerate interruption.
44
Describe the EC2 Pricing Option known as "Savings Plans".
Savings Plans: Save by committing to use a specified amount of compute power (measured in $ per hour) over a 1 or 3 year period. Reduce costs by 72% for commitment to usage within individual instance families in a region. Save 66% for commitment to usage regardless of instance family, size, AZ, region OS or tenancy. | Savings Plans also offered for AWS Lambda and AWS Fargate usage. ## Footnote See [What are Savings Plans?](https://docs.aws.amazon.com/savingsplans/latest/userguide/what-is-savings-plans.html)
45
Name the three payment options for Savings Plans
* No Upfront (your commitment is charged on a monthly basis) * Partial Upfront (pay half up front and the remaining on a monthly basis - this gets you lower prices) * All Upfront (pay everything up front for the lowest prices) ## Footnote See [Savings Plans FAQs](https://aws.amazon.com/savingsplans/faqs/)
46
# Fill in the blanks With Savings Plans you commit to a consistent ____________ usage and with Reserved Instances you commit to specific ____________ configurations.
compute instance Savings Plans give you the flexibility to use the compute option that best suits your needs. ## Footnote See [Compute Savings Plans and Reserved Instances](https://docs.aws.amazon.com/savingsplans/latest/userguide/sp-ris.html)
47
Describe the EC2 Pricing Option known as "Dedicated Hosts".
Dedicated Hosts: Reserve an entire physical server for your exclusive use. This option offers full control and is ideal for workloads with strict security or licensing needs.
48
Describe the EC2 Pricing Option known as "Dedicated Instances".
Dedicated Instances: Pay for instances running on hardware dedicated solely to your account. This option provides isolation from other AWS customers.
49
Both Dedicated Hosts and Dedicated Instances run your EC2 instances on hardware dedicated to you. How are they different?
Dedicated Instances provide isolation without you choosing which physical server they run on. Dedicated Hosts give you an entire physical server for exclusive use, providing complete control over instance placement and resource allocation.
50
Describe the EC2 Pricing Option known as "Capacity Reservations".
Reserve compute capacity in a specific Availability Zone for critical workloads. Reservations are charged at the On-Demand rate, whether used or not. When you run an instance that matches the attributes of a reservation, you just pay for the instance and nothing for the reservation.
51
Define Scalability
Ability of a system to handle increased load by adding resources.
52
What is Vertical Scaling?
Adding more power to existing machines.
53
# Fill in the blank Vertical Scaling is also known as scaling ____________.
up
54
What is Horizontal Scaling?
Adding more machines. Allows for parallel processing.
55
# Fill in the blank Horizontal Scaling is also known as scaling ____________.
out
56
# True or False Long term capacity planning should consider whether and how the application can scale.
True. Capacity planning should ensure that the application resources can scale over time to accomodate growth in users and/or workloads.
57
Define Elasticity
Elasticity is the ability to scale resources up or down in response to real-time demand, i.e. the dynamic on-demand adjustment of resources.
58
What are 2 benefits of Elasticity?
1. Cost efficiency (pay for what you use) 2. Optimize resource usage (don't waste resources)
59
What is Amazon EC2 Auto Scaling?
Amazon EC2 Auto Scaling automatically adjusts the number of EC2 instances based on changes in application demand, providing better availability. ## Footnote See [What is Amazon EC2 Auto Scaling](https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html)
60
In the context of Amazon EC2 Auto Scaling, what is **dynamic scaling**?
Dynamic scaling adjusts in real time to fluctuations in demand. ## Footnote See [Choose your scaling method](https://docs.aws.amazon.com/autoscaling/ec2/userguide/scaling-overview.html)
61
In the context of Amazon EC2 Auto Scaling, what is **predictive scaling**?
Predictive scaling preemptively schedules the right number of instances based on anticipated demand. ## Footnote See [Choose your scaling method](https://docs.aws.amazon.com/autoscaling/ec2/userguide/scaling-overview.html)
62
In the context of Amazon EC2 Auto Scaling, what are Auto Scaling groups?
Collections of EC2 instances that can scale in or out to meet application needs. ## Footnote See [What is Amazon EC2 Auto Scaling](https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html) and [Auto Scaling groups](https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-groups.html)
63
Auto Scaling groups are a feature of Amazon EC2 Auto Scaling. What are 3 settings for Auto Scaling Groups?
1. *Minimum Capacity.* Least number of EC2 instances required to keep the application running. 2. *Desired Capacity*. The ideal number of instances to handle the current workload. 3. *Maximum Capacit*y. An upper limit on number of instances to prevent over-scaling and/or cost overruns. ## Footnote See [What is Amazon EC2 Auto Scaling](https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html) and [Auto Scaling groups](https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-groups.html)
64
How does Amazon EC2 Auto Scaling measure demand and load?
Using **Amazon CloudWatch**, a service which collects and monitors performance metrics. ## Footnote See [What is Amazon CloudWatch](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html) and [Monitor CloudWatch metrics for your Auto Scaling groups and instances](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html)
65
What is AWS Elastic Load Balancing (ELB)?
Elastic Load Balancing automatically distributes your incoming traffic across multiple targets, such as EC2 instances, containers, and IP addresses, in one or more Availability Zones. ## Footnote See [What is ELB?](https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/what-is-load-balancing.html) and [How ELB works](https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html)
66
How does Elastic Load Balancing work with Amazon EC2 Auto Scaling?
As Amazon EC2 scales the number of EC2 instances in and out, Elastic Load Balancing distributes requests to the then available set of EC2 instances.
67
What are the 4 kinds of Load Balancers offered under AWS Elastic Load Balancing?
1. Application Load Balancer 2. Network Load Balancer 3. Gateway Load Balancer 4. Classic Load Balancer ## Footnote See [What is ELB?](https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/what-is-load-balancing.html)
68
What is an Application Load Balancer? | Topic: Elastic Load Balancing
A load balancer that operates at the application layer (7) of the OSI network model. Supports HTTP, HTTPS and gRPC protocol listeners. Good for balancing HTTP/S requests. ## Footnote See [What is an Application Load Balancer?](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html)
69
What is a Network Load Balancer? | Topic: Elastic Load Balancing
A load balancer that operates at layer 4 of the OSI network model. Supports TCP, UDP and TLS protocol listeners. Use when extreme performance and low latency are required. ## Footnote See [What is a Network Load Balancer?](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html)
70
What is a Gateway Load Balancer? | Topic: Elastic Load Balancing
Gateway Load Balancers enable you to deploy, scale, and manage virtual appliances, such as firewalls, intrusion detection and prevention systems, and deep packet inspection systems. It combines a transparent network gateway (that is, a single entry and exit point for all traffic) and distributes traffic while scaling your virtual appliances with the demand. A Gateway Load Balancer operates at the third (network) layer of the OSI model. ## Footnote See [What is a Gateway Load Balancer?](https://docs.aws.amazon.com/elasticloadbalancing/latest/gateway/introduction.html)
71
What is a Classic Load Balancer? | Topic: Elastic Load Balancing
A load balancer that operates at layers 4 and 7 of the OSI network model. Supports TCP, SSL/TLS, HTTP and HTTPS protocol listeners. This is an earlier generation of load balancer from Elastic Load Balancing.
72
Are there off-the-shelf alternatives to Amazon Elastic Load Balancing?
Yes, but you will have to maintain the load balancer.
73
# True or False AWS Elastic Load Balancing can manage internal and external traffic.
True.
74
# True or False Elastic Load Balancing distributes traffic in one or more Availability Zones in a single AWS Region.
True. There is a single URL for the region and Elastic Load Balancing does not appear to route traffic to more than one region.
75
What does **Elastic** refer to in Elastic Load Balancing?
AWS Elastic Load Balancing scales your load balancer capacity automatically in response to changes in incoming traffic.
76
What are 4 routing methods used by AWS Elastic Load Balancing?
1. Round Robin 2. Least Connections 3. IP Hash 4. Least Response Time
77
Describe a **Round Robin** routing strategy. | Topic: AWS Elastic Load Balancing
Distributes traffic evenly across all available servers in a cyclic manner.
78
Describe a **Least Connections** routing strategy. | Topic: AWS Elastic Load Balancing
Routes traffic to the server with the fewest active connections, maintaining a balanced load.
79
Describe an **IP Hash** routing strategy. | Topic: AWS Elastic Load Balancing
Uses the client’s IP address to consistently route traffic to the same server.
80
Describe a **Least Response Time** routing strategy. | Topic: AWS Elastic Load Balancing
Directs traffic to the server with the fastest response time, minimizing latency.
81
Name 4 benefits of Elastic Load Balancing.
1. Efficient traffic distribution across EC2 servers 2. Automatic scaling with changes in network traffic 3. Enables architectures that decouple the front end from the back end 4. Simplifed management as AWS handles maintenance updates, etc.
82
How does Elastic Load Balancing enable an architecture that decouples the front-end from the back-end?
Front-end instances can make requests of a single URL that routes to an available back-end instance. The front-end instances don't need to remember/manage which back-end instances are available.
83
What is a Microservices architecture? | Also known as a Service Oriented Architecture.
Application is designed with loosely coupled components such that if one component fails the others continue to function. Promotes greater flexibility and reliability in the application.
84
What is Amazon EventBridge?
Events are generated from sources like custom apps and AWS services. EventBridge routes these events to other services (application components). If a component/service fails, events are stored and processed when the service is available again. | EventBridge is a serverless service. ## Footnote [What is Amazon EventBridge?](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is.html)
85
What is Amazon SQS?
Amazon Simple Queue Service (SQS) is a scalable message queuing service that facilitates reliable communication between software components. In Amazon SQS, an application places messages into a queue, and a user or service retrieves the message, processes it, and then removes it from the queue. ## Footnote [What is Amazon Simple Queue Service?](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html)
86
What is Amazon SNS?
Amazon Simple Notification Service (SNS) is a publish-subscribe service that publishers use to send messages to subscribers through SNS topics. In Amazon SNS, subscribers can include web servers, email addresses, Lambda functions, and various other endpoints. | Subscribers can choose topics of interest. ## Footnote [What is Amazon SNS?](https://docs.aws.amazon.com/sns/latest/dg/welcome.html)