[01] Introduction Flashcards

1
Q

Where must images be stored that are run by ECS?

A

In a registry e.g., ECR

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

Do ECS container instances require inbound ports to be opened?

A

No, the ECS agent makes outbound connections to the control plane

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

What command allows a user to run docker without sudo?

A

sudo usermod -a -G docker

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

What does the EXPOSE command in a Dockerfile do?

A

It is purely metadata and doesn’t restrict or limit what ports can be exposed using docker run

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

How many registries does ECR have per account per region?

A

One

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

What does creating an EC2 capacity provider from the Console do?

A

Creates a CloudFormation stack to deploy an ASG, launch template, and capacity provider association

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

What does the launch template include when creating an EC2 capacity provider?

A

User data to define which cluster the instance should join: echo ECS_CLUSTER= >> /etc/ecs/ecs.config

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

What is AWS App2Container?

A

A CLI tool for containerising existing applications

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

What is the credential source precedence for AWS SDKs?

A
  1. Credentials that are explicitly set through the service-client constructor
  2. Environment variables
  3. The shared credentials file (~/.aws/credentials for Linux)
  4. Credentials loaded from the ECS task metadata endpoint, 5. Credentials loaded from the EC2 IMDS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When is the EC2 launch type recommended?

A

For large workloads which must be price optimised, or when advanced features (e.g. GPUs) are required

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

What endpoints need to be configured to connect to the ECS service using PrivateLink?

A

com.amazonaws.{{region}}.ecs-agent, com.amazonaws.{{region}}.ecs-telemetry, com.amazonaws.{{region}}.ecs (these aren’t required for Fargate tasks)

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