Compute Flashcards

1
Q

What does Lightsail provide?

A

Quick and easy to setup of instances, containers, storage, and managed databases

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

Lightsail is best for?

A

small websites, blogs, low usage workloads

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

EKS integrates with …?

A

ECR for containers images
Elastic Load Balancing for load distribution
IAM for authentication
vpc for isolation

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

How EKS provides high availability and scalability

A

Master nodes are regionally resilient( put accross multiple AZs
Worker nodes can be spread across multiple was account and vpcs
uses ELB to distribute traffic, Auto scaling to adjust number of nodes

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

EKS Deployment Options

A

Standard - managed by aws, workers on ec2 or fargate
EKS on AWS Outposts - on-premises and cloud ( on aws compute)
EKS Anywhere - eks on any hardware in you data center

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

EKS Monitoring

A

eks control plane provides logs to amazon cloudWatch logs, api calls recorded in CLoudTrail as events

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

ECS is global service?

A

False, is regional

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

What is required to start using ECS?

A

Need to create ECS cluster with VPC

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

What ECS provides?

A

container management service to run, stop and manage containers on a cluster

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

Is ECS self-managed?

A

Yes in cluster mode, serverless with Fargate

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

Where are docker volumes stored?

A

local instance store volume, EBS volume, or EFS volume,Fsx lustre

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

ESC modes

A

ec2 - cheaper, best for constant, big workloads, net to maintain
fargate - pay as you go, best for small,burst, batch workloads

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

ESC service definition

A

how many copies, HA, restarts etc

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

ECS task definition

A

represents an application, what steps are needed for that app

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

ECS container definition

A

specify which image to use, how much CPU and memory the container is allocated, and many more options.

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

ECS integrates with..

A

ECR - for docker images
ELB for load balancing
CloudWatch for Logs

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

AWS Batch allows…

A

to run batch jobs across multiple az in region

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

AWS Batch is a regional service

A

true

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

Elastic Beanstalk is X aaService

A

Platform as a service, like Cloud Foundry

20
Q

What provides Beanstalk?

A

automatically handles the details of capacity provisioning, load balancing, scaling, and application health monitoring

21
Q

What is fargate?

A

Serverless container engine, works with EKS and ECS

22
Q

Is Fargate public or private service?

A

It is private, elastic network interface with private IP is assigned. Public IP can be assigned or NAT gateway attached

23
Q

Is Lambda public service?

A

Yes, by default

24
Q

Limits for Lambada

A

execution max 15 minutes, size 512mb - 10GB

25
How Lambda scales?
scales autmatically when code is executed
26
How Lambda preserve state?
Lambda is stateless service
27
lambda synchronous invocation - (services)
API Gateway, Cognito, DAta firehose, cloudfront
28
lambda asynchronous invocation - (services)
API Gateway, s3, cloudwatch logs, event bridge, codecommit, cloudformation, Config
29
Event Source Mapping
lambda reads event from queue or stream and invokes lambda function on that event
30
Lambda support event source mappings for..
kinesis, dynamodb,sqs,mq,managed streaming for kafka
31
lambda provisioned concurrency
allocate lambda resources and hold it on standby
32
how lambda can be used with cloudFront?
you can use lambda function or request to and from CloudFront (and origin)
33
Lambda SnapStart
speeds up your Java applications by reusing a single initialized snapshot
34
How to coordinate multiple lambda functions
aws step functions
35
x-ray for lambda
distributed tracing
36
How to inject user data to ec2 instance?
using User Data in UI/ or in cloud formation template, defining cloudinit
37
What is metadata service ip?
169.254.169.254
38
ec2 launch types
on-demand- short workload,predictable pricing Reserved (1/3 years) - long workloads, pay upfront, 75% cheaper, region locked,or az locked spot -90% savings, can be interupted
39
dedicated host vs dedicated instance
pay for a physical host that is fully dedicated to running your instances vs you are not sharing instance with anyone, but instance might change
40
ec2 placement groups
Cluster- same rack, low latency, single az Spread - distributed across AZs, HA, Partition - set o partitions per AZ, each partition has multiple instances
41
ENI
Elastic Network Interface - logical networking component, represents network card, bound to AZ
42
How to get detailed logs and metrics from ec2?
Install cloudWatch Agent
43
What is a target group
group of resources (ec2) to use with Elastic load balancers
44
what is a launch template?
specify ami, instance typ, key pair, security group, block device mapping for Auto scaling group
45