Containers Flashcards

1
Q

What are the benefits of virtualisation in cloud computing?

A
  • Server consolidation
  • Isolation
  • Resource management
  • Security (to some extent)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are some drawbacks of virtual machines (VMs)?

A
  • Highly resource-intensive
  • Slow to start
  • Tricky to create and manage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a container?

A

A lightweight alternative to virtual machines that starts almost instantaneously, is less resource-intensive, and easier to create and manage.

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

How do containers encapsulate applications?

A

Containers encapsulate an application and its dependencies, sitting on top of the kernel of a host operating system.

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

What are some popular tools for containerisation?

A
  • Docker
  • PodMan
  • Kubernetes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a Dockerfile?

A

A file used to create Docker images, specifying instructions for building the image.

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

What command is used to pull a standard Ubuntu image in Docker?

A

docker pull ubuntu:latest

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

What does the command ‘docker run -it ubuntu:latest /bin/bash’ do?

A

Runs a new container and starts a bash shell with an interactive terminal.

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

What is the purpose of the ‘FROM’ instruction in a Dockerfile?

A

Specifies another image upon which the new image is being built.

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

What is the role of control groups (cgroups) in containers?

A

Manage resource allocation for containers, limiting and monitoring CPU, memory, disk I/O, etc.

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

What is the function of namespaces in Linux?

A

Isolate system resources for a collection of processes, ensuring each set sees its own instance of a global resource.

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

Fill in the blank: Containers create the illusion of ________ on top of a host OS.

A

[separate operating systems]

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

What does Kubernetes do?

A

Automates the deployment, scaling, and operation of containers.

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

What is the significance of the name ‘Kubernetes’?

A

Originates from Greek, meaning helmsman or pilot, and is represented by a ship’s wheel logo.

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

True or False: Kubernetes was originally designed by engineers at Microsoft.

A

False

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

What are union file systems used for in containers?

A

Provide a layered file system allowing containers to share a read-only base while maintaining separate writable layers.

17
Q

What does the ‘CMD’ instruction in a Dockerfile do?

A

Specifies the command to run when the container starts from the image.

18
Q

What is the primary purpose of orchestration software like Kubernetes?

A

Manage deployment, scaling, and operation of applications in data centers.

19
Q

What is the relationship between Kubernetes and Google’s proprietary systems, Borg and Omega?

A

Kubernetes was built from lessons learned from Borg and Omega, though it is not a direct descendant.

20
Q

Fill in the blank: Kubernetes is sometimes called ________.

21
Q

What does the ‘docker build -t hello-world .’ command do?

A

Builds a Docker image from the Dockerfile in the current directory.

22
Q

What is the purpose of exposed ports in a Dockerfile?

A

Specify which ports should be exposed when running a container from the image.

23
Q

What are the key elements of a Dockerfile?

A
  • Base image
  • Instructions
  • Commands
  • Exposed ports
  • Entrypoint
24
Q

What is the main advantage of using containers over traditional virtual machines?

A

Containers are lightweight, start quickly, and are easier to manage.

25
What does the name Kubernetes mean?
Helmsman or pilot ## Footnote The name originates from Greek.
26
What does the Kubernetes logo represent?
A ship's wheel ## Footnote It symbolizes the helm used to steer a ship.
27
How many spokes does the Kubernetes logo have, and what does it signify?
7 spokes ## Footnote This is a nod to the original name 'Seven of Nine'.
28
What is the abbreviation for Kubernetes and how is it pronounced?
k8s (pronounced kates) ## Footnote There are 8 letters between the ‘k’ and the ‘s’.
29
What was the original container runtime used by Kubernetes?
Docker ## Footnote Kubernetes initially relied on Docker but evolved to support more runtimes.
30
What is the Kubernetes Container Runtime Interface (CRI)?
A specification that allows plugable container runtimes ## Footnote It enables Kubernetes to support multiple container runtimes.
31
What is the default container runtime for Kubernetes now?
containerd ## Footnote It is a stripped-down version of Docker that supports Docker containers.
32
What standard must a container adhere to for Kubernetes to run it?
Open Container Initiative (OCI) standard ## Footnote Kubernetes supports a broader class of containers beyond just Docker.
33
What is the primary advantage of using microservices in Kubernetes?
Applications can be deployed as a collection of containers ## Footnote Each container runs a single service, enhancing modularity.
34
What is a monolith in software development?
A large codebase that packages the entire application as a single inter-woven tangle of code ## Footnote This often results in millions of lines of code.
35
Fill in the blank: Kubernetes allows for easy deployment of ________.
containers
36
True or False: Kubernetes has removed support for Docker due to its perceived bloat.
True