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
Q

How Lambda scales?

A

scales autmatically when code is executed

26
Q

How Lambda preserve state?

A

Lambda is stateless service

27
Q

lambda synchronous invocation - (services)

A

API Gateway, Cognito, DAta firehose, cloudfront

28
Q

lambda asynchronous invocation - (services)

A

API Gateway, s3, cloudwatch logs, event bridge, codecommit, cloudformation, Config

29
Q

Event Source Mapping

A

lambda reads event from queue or stream and invokes lambda function on that event

30
Q

Lambda support event source mappings for..

A

kinesis, dynamodb,sqs,mq,managed streaming for kafka

31
Q

lambda provisioned concurrency

A

allocate lambda resources and hold it on standby

32
Q

how lambda can be used with cloudFront?

A

you can use lambda function or request to and from CloudFront (and origin)

33
Q

Lambda SnapStart

A

speeds up your Java applications by reusing a single initialized snapshot

34
Q

How to coordinate multiple lambda functions

A

aws step functions

35
Q

x-ray for lambda

A

distributed tracing

36
Q

How to inject user data to ec2 instance?

A

using User Data in UI/ or in cloud formation template, defining cloudinit

37
Q

What is metadata service ip?

A

169.254.169.254

38
Q

ec2 launch types

A

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
Q

dedicated host vs dedicated instance

A

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
Q

ec2 placement groups

A

Cluster- same rack, low latency, single az
Spread - distributed across AZs, HA,
Partition - set o partitions per AZ, each partition has multiple instances

41
Q

ENI

A

Elastic Network Interface - logical networking component, represents network card, bound to AZ

42
Q

How to get detailed logs and metrics from ec2?

A

Install cloudWatch Agent

43
Q

What is a target group

A

group of resources (ec2) to use with Elastic load balancers

44
Q

what is a launch template?

A

specify ami, instance typ, key pair, security group, block device mapping for Auto scaling group

45
Q
A