Containers Flashcards

1
Q

What is ECR?

A

Amazon Elastic Container Registry (ECR) allows us to easily store, share, and deploy our container software anywhere. ECR is a fully managed container registry offering high-performance hosting that allows us to reliably deploy application images and artifacts from anywhere. Similar to DockerHub, but for AWS.

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

How many registries can an AWS account have?

A

Each AWS account has a public and private registry.

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

What are the default permissions on a public registry?

A

Public registries offer read-only access to everyone, but read-write requires permissions.

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

What are the default permissions on a private registry?

A

Private registries on the other hand, require permissions for any reading or writing.

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

True/False. Each registry can have many repositories. Each repository can contain many images. A given image can have several tags.

A

True.

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

What are some ECR features?

A

Integration with IAM, Image scanning, Nearly real-time metrics via CloudWatch, API Action logging in CloudTrail, Event logging in EventBridge, Replication of images, both cross-region and cross-account

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

What is ECS?

A

Amazon ECS is a fully managed container orchestration service that makes it easy for us to deploy, manage, and scale containerized applications.

It is deeply integrated with the rest of the AWS platform to provide a secure and easy-to-use solution for running container workloads in the cloud (as well as on our own infrastructure now with the release of Amazon ECS Anywhere).

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

What are container definitions used for?

A

Container definitions are used inside of task definitions to describe the different containers that are launched as part of a task. Container definitions define the image and ports that will be used for a container.

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

What is a task definition?

A

A task definition is required to run Docker containers in Amazon ECS.

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

What are some parameters of task definitions?

A

-The Docker image to use with each container in our task
-How much CPU and memory to use with each task or each container within a task
-The IAM role that our tasks use (Task Role)
-The launch type to use, which determines the infrastructure that our tasks are hosted on

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

True/False. Inside of a task definition we can define only one container.

A

False. Inside of a task definition we can define multiple containers.

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

What is a Task?

A

A task is the instantiation of a task definition within a cluster.

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

What is a Service Definition?

A

A service definition can be used to help with scaling and high availability because it allows us to choose how many copies of a task we would like to run.

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

What is EKS?

A

Amazon EKS is a managed Kubernetes service for running Kubernetes in the AWS cloud and on-premises data centers.

EKS can run on AWS, Outposts, EKS Anywhere, and EKS Distro.

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

When using EKS, what parts are managed by AWS?

A

When using EKS, the Kubernetes control plane and scaling is managed by AWS, and it runs on multiple AZs.

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

Can EKS integrate with other AWS services?

A

EKS integrates with other AWS services such as ECR, ELB, IAM, VPC, etc.

17
Q

What is Kubernetes?

A

Kubernetes (K8s) lets us run containers in a reliable and scalable way, while making efficient use of resources. It also lets us expose our containerized application to the outside world.

18
Q

What is a cluster in Kubernetes?

A

A cluster in Kubernetes is a highly available cluster of compute resources which are organized to work as one unit.

19
Q

What is the control plane in Kubernetes?

A

The control plane manages the cluster, scheduling, applications, scaling, and deploying.

20
Q

What are Nodes in Kubernetes?

A

Nodes are a VM or physical server which function as a worker in the cluster.

21
Q

What is a Kubelet?

A

A kubelet is an agent that can can be used to interact with the cluster control plane.

22
Q

How does the Kubelet communicate with the control plane?

A

The Kubernetes API is what the kubelet agent uses to communicate with the control plane.