Containers Flashcards

(29 cards)

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 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.

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

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

A

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

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

What is the primary purpose of orchestration software like Kubernetes?

A

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

17
Q

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

A

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

18
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.

19
Q

What are the key elements of a Dockerfile?

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

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

A

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

21
Q

What was the original container runtime used by Kubernetes?

A

Docker

Kubernetes initially relied on Docker but evolved to support more runtimes.

22
Q

What is the Kubernetes Container Runtime Interface (CRI)?

A

A specification that allows plugable container runtimes

It enables Kubernetes to support multiple container runtimes.

23
Q

What is the default container runtime for Kubernetes now?

A

containerd

It is a stripped-down version of Docker that supports Docker containers.

24
Q

What standard must a container adhere to for Kubernetes to run it?

A

Open Container Initiative (OCI) standard

Kubernetes supports a broader class of containers beyond just Docker.

25
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.
26
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.
27
Fill in the blank: Kubernetes allows for easy deployment of ________.
containers
28
True or False: Kubernetes has removed support for Docker due to its perceived bloat.
True
29
what is a microservice?
A style of software architectures that can take advantage of the ability to run large numbers of containers.