ECR Flashcards

1
Q

Difference between S3 Pre-signed url and Cloudfront signed url

A

Signed url allows access to a path, no matter the origin. S3 presigned url assumes the role of the person issuing it directly to the s3 without using Cloudfront, if there’s an oia use cloudfront signed url.

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

ECS is used to ____ and has ______

A

run Docker containers and has 3 flavors: Classic = provision ec2 instances to run containers onto (you manage your infrastructure), Fargate: ECS Serverless, no more Ec2 to provision, EKS: Managed Kubernettes byAWS

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

AWS CLI login command for ecr

A

aws ecr get-login –no-iclude email –region eu-west-1

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

if an ec2 instance cannot pull a docker image..

A

check iam roles

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

What role do you use for your tasks in ec2

A

IAM taskroles.

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

What are the task placement strategies?

A

Binpack (all tasks on one ec2 instance), random, spread (across AZ zones)

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

Difference between ECS service auto scaling and Ec2 auto scaling

A

ECS service scaling occurs on the task level, Ec2 autoscaling occurs on the instance level

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

ECS Cluster Capacity Provider

A

Capacity Provider is used in association with a cluster to determine the infrastructure that a task runs on. For ECS and Fargate users, FARGATE and FARGATE_SPOT capacity providers are added automatically.
For ECS on Ec2, you need to associate the capacity provider with an autoscaling group.

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

What is a task definition?

A

Blueprint for how docker containers should be launched.

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

What is a task?

A

A running container, think as an “instance

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

What is a service?

A

Defines long running tasks of the same task definition.

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

What is a cluster?

A

A logic group of Ec2 instances. When an instance launches the ecs-agent the isntance becomes registered to the cluster

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

How to enable multiple containers of the same type to launch on the same instance?

A

Set host port = 0

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

Do security groups matter when an instance registers with an ecs service?

A

No.

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