ECS Flashcards

1
Q

What is AWS ECS?

A

“A container managment service that uses Docker containers on a cluster
set up regionally”

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

What is a image?

A

“A runable snapshot of an application and it’s environment
A container is made by running an image
point in time capture of code and dependencies”

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

What is a Dockerfile?

A

“A static read-only file with executable code containing
system libraries
system tools
other platform settings a software program needs to run on a containerization platform
Images are typically built from a Dockerfile but not exclusivly
A Dockerfile is built to make an image”

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

What is a Task?

A

“The instantiation of a task definition within a cluster

You can specify the number of tasks that will fun on your cluster”

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

What is a task definition?

A

“A JSON file that defines how to launch a Docker container on an instance(metadata for container)
ref to Image
Environment Variables
Links to other containers
Volume
up to a maximum or ten that form your application
point in time capture of configuration for running an image”

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

What is the service scheduling feature?

A

“A feature on the service description level

provides options specifying how or when a task should be placed into a cluster”

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

What is a Cluster?

A

A grouping EC2 instances that each run Docker and a Container agent(provided by ECS)

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

What are the launch types?

A

“An ECS level setting determining the type of infrastructure on which your tasks and services are hosted
EC2 - instances that you manage
Can use 3rd party security configuration
Can use isolation frameworks
Fargate - a serverless option for Container services”

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

What is a Container agent?

A

“A component that runs on each infrastructure resource (Container EC2 instance) within a cluster
It sends information about the resources current running task and resource utilization to the ECS
Container agents are responsible for starting and stopping tasks when requested by the ECS”

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

Clusters and AZs

A

Clusters are an EC2 group designation and can span across multiple AZs

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

EC2 instances accessing ECS service endpoints

A

“Either:
Create an interface VPC Endpoint for ECS service and attach to VPC subnets route table in which ECS instances are running
or
Create a NAT Gatewat and attach it to VPC subnet’s route table in which ECS insances are running”

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

What are the parameters specified in task definition?

A

“The Docker images to use with the container in the task
How much CPU and memory to use with each container
The command the container should run when it is started
launch type
whether containers are linked in a task
data volumes that should be used with the containers in the task
Docker networking mode
(optional)
Environment variables - IAM role - ports”

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

What is a Service Definition?

A

“Defines which task definition to use with your service
how many instantiations of that task to run
which load balancers(if any) to associate with your class”

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

What are common parameters for Service Definitions?

A

“Cluster on which to run your service
Full ARN of the task definition to run in your service
IAM role that allows ECS to make calls to your load balancer on your behalf”

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

What is the user data feature?

A

“Convenience feature for ECS instances that allows perform common automated configuration tasks and even run scripts when the instance boots. eliminating the need to SSH into the instance to set up the Docker Daemon or Container Agent”

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

What logging service is automatically integrated into ECS instances?

A

CloudTrail - this provides a log of actions taken by a user role or service

17
Q

What is dynamic port allocation?

A

when using a load balancer with your ECS you can map your host port to 0 and the load balancer will dynamically assign a port to it upon instantiation

18
Q

hard limit vs soft limit?

A

“Memory allocation specifications for a task
Soft - is the minimum reserved
Hard - the max the container can request before the container is terminated “

19
Q

What is ECR?

A

“Elastic container registry

As part of the ECS services, a repository for container images is provided for local storage and fast secure access”