ECS, ECR, Docker Flashcards

1
Q

vm vs docker

A
  • vm - virtualized hardware, uses hypervisor
  • docker - lightweight containers run using docker daemon
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

ECS - elastic container service

A
  • task = pod - launches containers (up to 10 per task definition)
    • task definition - metadata in json form to tell ecs how to run container
      • image name, ports, memory, env variables, IAM role, etc.
        • Secrets - use SSM parameter store or Secrets manager
    • shared storage (bind mounts) - per task, works with ec2 and fargate
      • use for ephemeral data between multiple containers, and sidecar containers for metrics, etc.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

IAM task roles

A
  • specific roles for each tasks
  • task role defined in task definition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

data volumes (EFS)

A
  • works with both ec2 and fargate launch types
  • S3 CANNOT be mounted for ECS tasks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Terminate an instance in stopped state leads to

A

Synchronization issues. Container instance isn’t automatically removed from the cluster

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