Docker & EKS Flashcards

1
Q

What is EKS?

A

Amazon Elastic Kubernetes Service

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

What is ECS?

A

Amazon Elastic Container Service

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

What is AWS Fargate?

A

Amazon’s own serverless container platform, works with both ECS and EKS

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

Explain ECS with EC2 launch type

A

You can use EC2 instances to form an ECS cluster, the instances will have an ECS Agent. AWS takes care of starting/stopping containers. You must manage the infa (EC2 instances) yourself.

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

Explain ECS with Fargate launch type

A

AWS managed cluster, infa is managed by AWS

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

Explain the ECS IAM role for EC2 Instance Profile

A

Used by the ECS agent, makes API calls to ECS server, send container logs to CloudWatch, pull container images, reference secrets

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

Explain the ECS Task Role

A

Allows each ECS Task to have a specific role, to grant and control access to AWS services e.g. S3 or RDS

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

Can you mount an S3 bucket as a file system in an ECS task?

A

No but you can use EFS

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

Are ECS IAM roles defined at the service or task definition level?

A

Task definition level (a service is an instance of a task)

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

What is ECS Task Placement?

A

Determines where a task should run or what task should be terminated. Task placement strategies and constraints can be used to assist with this. Only for ECS with EC2 not Fargate.

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

Can you use ECS Task Placement with ECS Fargate?

A

No it is only applicable to EC2 backed ECS

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

What are the main ECS task placement strategies?

A

Binpack - places tasks based on the least available amount of CPU or memory to minimise number of instances and costs. Random - place tasks randomly. Spread - place task evenly based on an attribute e.g. availability zone.

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

What are the placement constraints?

A

distinctInstance - place each task on a different instance. memberOf - place task on instances that satisfies an expression e.g. instance type must be t2.micro or t2.* etc

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