ECS: Elastic Container Service Flashcards

1
Q

What is AWS’s container registry called?

A

Elastic Container Registry (ECR).

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

What structure must be provided to ECS to describe the structure of a container application?

A

One or many Container Definitions contained within a Task Definition. This can optionally be wrapped in a Service Definition to provide scaling and high availability.

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

What is the best way to give ECS containers the permissions they need to access AWS products and services?

A

Via a Task Role defined in the Task Definition.

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

What does a Container Definition provide in ECS?

A

The image and ports used by the container.

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

What does a Task Definition provide in ECS?

A

The security/permissions (via a Task Role), Container Definitions, and the resources the Task will consume.

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

What does a Task Role provide in ECS?

A

The IAM Role with the Task assumes to perform work it needs to do.

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

What does a Service Definition provide in ECS?

A

The number of copies of the Task to run (scaling), high availability, restarts and monitoring, etc.

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

What are the two ECS Cluster Modes?

A

EC2 mode and Fargate.

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

Are you billed for the EC2 instances used as part of an ECS Cluster in EC2 Mode?

A

Yes, these instances appear in your account and you can even connect to them. They are billed regardless of the containers running or not running on them.

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

Who is responsible for managing capacity and availability in ECS - EC2 Mode?

A

The customer.

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

Who is responsible for managing capacity and availability in ECS - Fargate Mode?

A

AWS.

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

What is Fargate?

A

An ECS shared infrastructure that runs many customers’ containers on the same hardware. Tasks are injected into a customer’s VPC by attaching them to ENI inside the VPC.

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

When should you use ECS?

A

If you use containers.

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

When should you use EC2 Mode for ECS?

A

If you have a large workload and are price conscious (i.e., you use spot pricing or reservations).

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

When should you use Fargate Mode for ECS?

A
  1. If you don’t want to manage the container host infrastructure.
  2. If you have small, burst workloads or batch, periodic workloads.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What container standard does ECS support?

A

Docker.