Module 1 Flashcards

1
Q

Container

A

A container is an executable unit of software in which application code is packaged, along with its libraries and dependencies, in common ways so that it can be run anywhere, whether on a desktop, on-premises, or in the cloud.

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

Benefits of containers

A
  • Lightweight
  • Portable and platform independent
  • Support modern development and architecture
  • Improve utilization
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Docker

A

Docker is an open-source community that develops container technologies. It is a company that provides enterprise software.

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

Dockerfile

A

•Text file that contains all the commands a user would call on the command line to create the image. •Blueprint from which an image is built. •Outlines all the steps to be taken to build the desired image; Docker then builds that image.

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

Image

A
  • Immutable file that contains the source code, libraries, and dependencies that are necessary for an application to run.
  • That immutability means that images are read-only; if users change an image, a new image is created.
  • In a sense, images are templates or blueprints for a container. Users can also think of images as snapshots of a container. A container is therefore a running image. Since images are read-only, a write layer is placed on top of images to enable the container to execute.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a container registry?

A

A container registry is used for the storage and distribution of named container images. They can be public or private and hosted or self-hosted.

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

When storing an image in a registry, users___the image to the registry.

A

push

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

When retrieving an image from a registry, users___the image

A

“pull”

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

The image name usually consists of three parts

A

hostname/repository:tag

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

Which is abenefitof containers?

A

They supply portabilitybetween different platforms and clouds.

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

What is one of the reasons that containers are considered a better option than virtual machines?

A

C.Containers are small and do not consume as many resources.

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

Which of the following defines a read-only file that holds code, libraries, and dependencies required by an application to run?

A

A container image

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

Which of the following is true regarding containers?

A

Containers do not require a guest operating system.

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

What are the operating system primitives that enable virtualization in the Linux Kernel?

A

namespacesand cgroups

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

Physical hardware is traditionally virtualized by which of the following?

A

Hypervisors

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

Which of the following is a platform used for container orchestration?

A

Kubernetes

17
Q

What is an important difference between containers and virtual machines?

A

Containers virtualize the operating system and VMs virtualize the hardware.

18
Q

What is a Dockerfile?

A

A text file that contains the instructions needed to create a new container image.

19
Q

Which of the following isconsideredimmutable?

A

Image