Compute Flashcards
(11 cards)
Give an example of the EC2 Instance Type, Instance Size, and generation
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
What type of workload type is each EC2 family useful for?
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
What is EC2 Spot pricing model?
What is the benefits of Spot?
What type of work is it suited for and not suited for?
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
Can you copy a EC2 instance to another AZ? How?
If not, is there a workaround?
Yes, to do so, stop the instance and create an image from the instance.
What is the difference between launch configurations and launch templates
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
When should you use ECS over EC2?
When should you use Fargate over ECS ?
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 do you allocate permissions to ECS containers?
To allocate permissions you will use already created IAM roles in the tasks definitions tab
What is Lambda runtime
What is Lambdas execution roles
How Do you grant permissions on Lambda
How does Lambda scale
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
What types of invokes can happen to lambda?
What services integrate with lambda?
synchronous Invokes - Meaning typed on CLI
Asynchronous Invokes - Meaning triggered by an event
Poll based invokes - Meaning done by queue based services
What are services that invoke Lambda Synchronously?
What are services that invoke Lambda Poll based?
S3
SNS
CloudFormation
CloudWatch
Kinesis
SQS
Dynamo Streams
How do instance profiles work?
How do instance profiles compare to instance roles?
How are credentials passed to an instance?
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