Module 2: Compute in the cloud Flashcards

1
Q

What is an Amazon Elastic Compute Cloud (EC2) instance?

A

An AWS server you can deploy to

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

What are the 5 instance types?

A
  1. General purpose
  2. Compute optimized
  3. Memory optimized
  4. Accelerated computing
  5. Storage optimized
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the features of a general purpose EC2 instance?

A

Balances compute, memory and networking resources

Suitable for a broad range of workloads

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

What are the features of a compute optimized EC2 instance?

A

Offers high-performance processors

Ideal for compute-intensive applications and batch processing workloads

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

What are features of memory optimized EC2 instances?

A

Delivers fast performance for memory-intensive workloads

Well suited for high-performance databases

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

What are the features of accelerated computing EC2 instances? What is the EC2 ideal for?

A

Uses hardware accelerators to expedite data processing

Ideal for applications streaming and graphics workloads

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

What are the features of storage optimized EC2 instances? What is the instance ideal for? (the use case)

A

Offers low latency and high input/output per second

Suitable for workloads such as distributed file systems and data warehousing applications

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

What are the 6 pricing options for EC2 instances and their definitions?

A
  1. On-demand - No upfront cost or minimum contract. Ideal for short-term, irregular workloads
  2. Spot - Like picking stock price. Ideal for workloads with flexible start and end times. Offers savings over on-demand prices.
  3. Reserved - Provides a billing discount over On-Demand pricing. Required a 1 OR 3 years commitment.
  4. Compute savings plan - Offers up to 72% savings over on-demand costs fir a consistent amount of compute usage. Requires 1 OR 3 year commitment.
  5. Dedicated instance - An EC2 instance that runs in a VPC on hardware for a single customer. Higher cost to standard EC2 instances
  6. Dedicated host - A physical server with EC2 instance capacity for a single customer. Most expensive EC2 option.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Amazon’s EC2 Auto-Scaling service?

A

The number of EC2 servers will automatically scale out or in when demand/computing requirements fluctuate.

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

What does and Elastic Load Balancer do? (2)

A

Automatically distributes traffic across multiple resources

Provides a single point of contact for your Auto Scaling group

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

What are the 2 Amazon Messaging services?

A

Simple Notification Service (SNS)

Simple Queue Service (SQS)

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

What are the main differences between SNS and SQS?

A

SNS is a publisher-subscriber messaging service where it doesn’t consider the implications of the message being sent (Doesn’t need a response). Good for messaging only.

SQS sends a message/request to a server and if there is no response then it addes it to a queue for the next available server. Good for sequential automations

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

What is AWS Lambda?

A

Serverless computing service.

Run code without managing servers. Only pay for the compute time whilst the code is running. Can be used in tandem with other AWS services to automatically trigger code.

Considered the ‘glue’ between services in the cloud. Helps automation e.g. Netflix receives a video with high resolution and uses Lambda to compress the file/change the resolution so it can be streamed and viewed on different devices.

E.g. Cloud guru - Static HTML that is serverless - no instances.

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

What are containers?

A

A standardised way to package the code necessary to run an application

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

What are the 3 categories of container services provided by AWS?

A

Orchestrate
Compute
Tools (Don’t need to know about this one)

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

What are the 2 container orchestration services?

A

Elastic container service - Run and scale containerized applications. Use API calls to control Docker-enables apps
Elastic Kubernetes service - Run and scale Kubernetes apps. Readily update apps with new features

17
Q

What is the only compute container service that a practitioner needs to know about?

A

AWS Fargate - Run serverless containers with Amazon ECS or EKS

Pay only for the resources used (like lambda)

NOTE: Fargate is an add on on top of ECS and EKS