Containers Flashcards

1
Q

What is the main difference between ECS and Fargate?

A

With ECS you have to manage instances etc. Fargate is serverless, so you don’t manage instances

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

Are task roles the same as IAM roles?

A

No, an IAM role is assigned to a service. A task role is assigned to a specific ECS task that is running and it is advised to have 1:1

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

What is Dynamic Port Mapping?

A

It is when the ALB supports finding the right port on the EC2 instance

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

What must you allow to use Dynamic Port Mapping?

A

You must allow any port in your EC2 instance security group, from the ALB

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

Does Fargate use Dynamic Port Mapping?

A

No, Fargate uses ENI’s which all have a unique IP address, and are on port 80/443

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

How does Fargate work with an ALB?

A

We need to allow the ALB task port on the ENI’s security group

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