ECS Flashcards

1
Q

Task definitions are metadata in ___ form

A

JSON

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

The EC2 instances run a special ___ made specifically for ECS

A

AMI

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

Private Docker Image Repository

A

ECR

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

${aws ecr get-login –no-include-email –region eu-west-1)

A

AWS CLI v1 login command

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

aws ecr get-login-password –region eu-west-1 | docker login –username AWS –password-stdin 1234.dkr.ecr.eu-west-1.amazonaws.com

A

AWS CLI v2 login command

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

Used by the ECS agent, make API calls to ECS service, send container logs to CW logs

A

EC2 Instance Profile

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

Allow each task to have a specific role, defined in the task definition

A

ECS Task Role

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

Task Placement - Place tasks based on the least available amount of CPU or memory

A

Binpack

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

Task Placement - Place the task randomly

A

Random

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

Task Placement - Place the task evenly based on the specified value

A

Spread

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

Task Placement Constraint - Place each task on a different container instance

A

DistinctInstance

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

Task Placement Constraint - Place task on instances that satisfy an expression. Uses Cluster Query Language

A

memberOf

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

Auto Scaling - Target a specific average CloudWatch metric

A

Target Tracking

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

Auto Scaling - Scale based on CloudWatch alarms

A

Step Scaling

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

Auto Scaling - Based on predictable changes

A

Scheduled Scaling

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

Provision EC2 instances to run containers onto

A

ECS “Classic”

17
Q

Don’t need to provision EC2 instances; serverless

A

Fargate

18
Q

Managed Kubernetes

A

EKS

19
Q

ECS Service can be linked to which kinds of load balancers

A

ELB/NLB/ALB

20
Q

Do this to scale Fargate

A

Increase task number

21
Q

Use these for the different ECS services you run

A

ECS Task Role

22
Q

Name of config file

A

/etc/ecs/ecs.config

23
Q

ECS_ENABLE_TASK_IAM_ROLE

A

Enable IAM roles in the ecs.config file with this variable name

24
Q

Configure cluster name in ecs.config file with this variable name

A

ECS_CLUSTER

25
Q

Need to setup logging at the _ definition level

A

Task