Compute Flashcards

(11 cards)

1
Q

Give an example of the EC2 Instance Type, Instance Size, and generation

A

Accelerated Computing, Compute optimize, General purpose, Memory optimized, storage optimized - Are the Family

t1.nano, t2.small - are the instance types

nano, Large, xLarge, small - are instance size

t2, t3, m4, m5, m6 - are the generations

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

What type of workload type is each EC2 family useful for?

A

Accelerated Computing - Customized hardware acceleration
Compute optimize - Large amount of computational power
General purpose - Burstable with T2, T3
Memory optimized - Large amounts of memory
storage optimized - Large amounts of read and write disk throughput

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

What is EC2 Spot pricing model?

What is the benefits of Spot?

What type of work is it suited for and not suited for?

A

Compared to On-Demand the cost is 90% less.

Spot takes the extra capacity left on the server

Spot is best suited for instances that can be interrupted

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

Can you copy a EC2 instance to another AZ? How?

If not, is there a workaround?

A

Yes, to do so, stop the instance and create an image from the instance.

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

What is the difference between launch configurations and launch templates

A

Launch configurations is where you set networking configs such as IPv4, subnets, … ect.

Launch templates are saved templates that can be used or shared once created

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

When should you use ECS over EC2?

When should you use Fargate over ECS ?

A

ECS should be used over EC2 when you have a large workload but worried about the price.

ECS should be used over fargate when you have a steady workload and don’t mind the overhead.

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

How do you allocate permissions to ECS containers?

A

To allocate permissions you will use already created IAM roles in the tasks definitions tab

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

What is Lambda runtime

What is Lambdas execution roles

How Do you grant permissions on Lambda

How does Lambda scale

A

Lambda runtimes - Python, ruby, go, node.js

Lambda execution role - Describes what the function does

Permissions - You can grant Resource based policies. Which are not Identity policies that are for IAM, user, groups, and roles but policies for individual services

Lambda will keep deploying instances until it hits the concurrency limit

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

What types of invokes can happen to lambda?

What services integrate with lambda?

A

synchronous Invokes - Meaning typed on CLI
Asynchronous Invokes - Meaning triggered by an event
Poll based invokes - Meaning done by queue based services

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

What are services that invoke Lambda Synchronously?

What are services that invoke Lambda Poll based?

A

S3
SNS
CloudFormation
CloudWatch

Kinesis
SQS
Dynamo Streams

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

How do instance profiles work?

How do instance profiles compare to instance roles?

How are credentials passed to an instance?

A

Instance profiles are the created instance roles that you can select before or after the instance creation.

Instance profiles are the container which the roles sit

The credentials are passed automatically if the IAM is attached to an instance

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