1
Q

What is a hypervisor?

A

A computer software, firmware or hardware that creates and runs virtual machines

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

What other name is given to a hypervisor?

A

Virtual Machine Monitor (VMM)

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

What is a host machine?

A

A computer on which a hypervisor runs one or more virtual machines

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

What is a guest machine?

A

A virtual machine

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

What is Docker?

A

Docker is a software development platform to deploy apps that are packaged in containers that can run on any OS

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

What are the benefits of using Docker?

A
Run on any machine
No compatibility issues
Predictable behavior
Less work
Easier to maintain and deploy
Works with any language, OS and technology
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Can a machine run many Docker containers at the same time?

A

Yes

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

What is the difference between a Docker image vs Docker container?

A

A Docker container is an actual instanciation of a Docker image

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

What does a Docker image packs?

A

The application and environment required by the application to run

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

Where are Docker images stored?

A

In Docker Repositories

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

What is the main public Docker Repository?

A

Docker Hub

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

What AWS service allows you to create your own private Docker repository?

A

AWS ECR

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

What does ECR stand for?

A

Elastic Container Registry

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

What does VM stand for?

A

Virtual Machine

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

How does Docker Containers differ from VMs?

A

VMs are sitting on an hypervisor and all have their own guest OS

Docker containers are managed by the Docker Daemon, which itself is controlled by the Docker client (CLI, AWS Console, etc.)

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

What is the file that allows you to create Docker images?

A

Dockerfile

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

What are the three container management platforms offered by AWS?

A

ECS
EKS
Fargate

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

What does ECS stand for?

A

Elastic Container Service

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

What does EKS stand for?

A

Elastic Kubernetes Service

20
Q

What are ECS Clusters?

A

Logical grouping of EC2 instances

21
Q

What kind of AMI does EC2 instances inside an ECS cluster must use?

A

An ECS-optimized AMI containing the ECS agent?

22
Q

What is the ECS agent?

A

A container that runs by default on ECSโ€™ EC2 instances that is responsible for managing containers on behalf of Amazon ECS

23
Q

What does the ECS agents do when EC2 instances are created inside an ECS cluster?

A

They register the instances to the ECS cluster

24
Q

What are ECS Task Definitions?

A

Metadata in JSON form to tell ECS how to run a Docker Container

25
Q

What does an ECS task definition contain?

A
Task name
Task role (optional)
Task execution role
Memory and CPU required
Container definitions
26
Q

What do container definitions contain?

A
Container name
Image
Memory limits
Port mappings
Environment variables
27
Q

What do ECS Services do?

A

Define how many tasks should run and how they should be run

Ensure that the number of tasks desired is running accross our fleet of EC2 instances

28
Q

What is โ€œTask roleโ€ ?

A

The Task Role is optional IAM role that tasks can use to make API requests to authorized AWS services.

29
Q

What is โ€œTask execution roleโ€ ?

A

The Task Execution Role is the role that authorizes Amazon ECS to pull private images and publish logs for your task. This takes the place of the EC2 Instance role when running tasks.

30
Q

What must be tasks definitions port mapping host port in order to make them work with an ALB?

A

0, they will get generated randomly and the ALB will take care of forwarding the traffic to those generated ports

31
Q

What do you need to do BEFORE any push / pull to AWS ECR private repositories?

A

You need to retrieve an authentication token from AWS and authenticate from your Docker client to your registry using the docker CLI

aws ecr get-login-password โ€“region ca-central-1 | docker login โ€“username AWS โ€“password-stdin _____________.dkr.ecr.ca-central-1.amazonaws.com/repositoryname

32
Q

What docker command allows you to push an image?

A

docker push ____

33
Q

What docker command allows you to pull an image?

A

docker pull ____

34
Q

What is Fargate?

A

AWS Fargate is a serverless compute engine for containers that works with ECS and EKS

35
Q

What does Fargate removes?

A

The need to provision and manage servers

36
Q

What is the only role of the developer when using Fargate?

A

Creating Task Definitions

37
Q

What is the file that must be configured with the cluster name when working directly with EC2 instances when working with ECS?

A

/etc/ecs/ecs.config

38
Q

What traffic must EC2 instances security group accept when working with ECS with an ALB?

A

The traffic from ALL ports from the ALB

39
Q

What are the two available X-Ray integration options for classic ECS clusters?

A

X-Ray Container as a Daemon

X-Ray Container as a โ€œSide Carโ€

40
Q

What port mapping configuration should the X-Ray Container have?

A
{
  "HostPort": 0,
  "containerPort": 2000,
  "protocol": "udp"
}
41
Q

What should your app container have in order to find the X-Ray Container as a Daemon?

A

The environment variable
AWS_XRAY_DAEMON_ADDRESS=xray-daemon:2000

And a โ€œlinksโ€ array containing the value โ€œxray-daemonโ€

42
Q

Can you run docker containers in EB?

A

Yes, either in Single or Multi Docker mode

43
Q

What does your EB source code need in order to run Docker containers?

A

Dockerfile

Dockerrun.aws.json

44
Q

How can you create a service on ECS using the CLI?

A

aws ecs create-service

45
Q

What docker CLI cmd allows you to build a docker image?

A

docker build -t demo .

The . is important here