Managing our Microservices: Docker and Kubernetes Flashcards

1
Q

What does Docker guarantee with its container-based approach?

A

Docker guarantees consistency and isolation by packaging software with all necessary components, ensuring it runs the same regardless of the environment.

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

How does Docker solve the “it works on my machine” problem?

A

Docker manages dependencies through Dockerfiles to ensure all environments use the same versions of everything, providing consistency across development, testing, and production stages.

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

What is a major advantage of Docker’s portability?

A

Docker containers can be run on any machine with Docker installed, regardless of the underlying operating system, which simplifies moving software between different environments.

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

How does Docker enhance scalability and efficiency in resource usage?

A

Docker containers share the host system’s kernel and can be limited in CPU and memory use, allowing more containers to run on the same hardware than traditional virtual machines.

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

What makes Docker ideal for rapid deployment?

A

Docker containers can be started and stopped in seconds and utilize layering and caching to speed up the build and distribution process, allowing for quick scaling and updates.

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

Why is Docker’s ecosystem considered a significant advantage?

A

Docker’s vast ecosystem through Docker Hub offers access to a multitude of community and official containers, which speeds up deployment and ensures standardization.

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

What is the main function of the Docker Daemon?

A

The Docker Daemon is responsible for managing Docker objects such as images, containers, networks, and volumes. It listens for Docker API requests and handles the services needed to build and manage containers.

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

What role does the Docker Client play in Docker’s architecture?

A

The Docker Client is the primary way users interact with Docker. It sends commands to the Docker Daemon, which then executes them. Commands include building, running, and inspecting Docker containers and images.

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

What are Docker Images and how are they used?

A

Docker Images are read-only templates used to create containers. They include all the dependencies and source code needed to run an application. Images are built from a Dockerfile and stored in a registry like Docker Hub.

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

Describe the purpose of Docker Containers.

A

Docker Containers are the runnable instances of Docker images. They isolate applications from the host system, ensuring that they run consistently regardless of where they are deployed.

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

What is Docker Hub?

A

Docker Hub is a cloud-based registry service that allows you to link code repositories, build your images, and test them, store manually pushed images, and link to Docker Cloud so you can deploy images to your hosts.

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

How do Docker Registries interact with the Docker ecosystem?

A

Docker Registries store Docker images. Users can push images to or pull images from registries. Public registries like Docker Hub and private ones can be used depending on security needs and company policies.

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

What is the Dockerfile and its importance in the Docker ecosystem?

A

A Dockerfile is a script composed of various commands and arguments listed successively to automatically perform actions on a base image in order to create a new one. They are crucial for defining the steps to assemble an image that meets specific needs.

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

What problem does Docker address related to application deployment?

A

Docker addresses the problem of inconsistent environments by encapsulating an application and its dependencies into a container. This ensures that the application runs consistently across different computing environments.

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

How does Docker improve developer productivity?

A

Docker containers can be used to create isolated development environments quickly and can be easily replicated. This speeds up the development process and reduces conflicts between working on different parts of a project or with different technologies.

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

Why is Docker particularly useful for microservices architectures?

A

Docker provides a lightweight way to isolate microservices, allowing each service to be packaged with its specific dependencies and scaled independently. This isolation simplifies managing dependencies and versioning across services.

17
Q

What economic benefit does Docker offer in terms of infrastructure?

A

Docker uses system resources more efficiently than traditional virtual machines, allowing more applications to run on the same hardware. This resource efficiency can significantly reduce infrastructure costs.

18
Q

How does Docker simplify configuration management?

A

Docker uses Dockerfiles to automate the deployment of containerized applications, which simplifies the configuration management. These Dockerfiles provide a clear, version-controlled specification of how an environment should be built.

19
Q

What role does Docker play in Continuous Integration/Continuous Deployment (CI/CD)?

A

Docker streamlines CI/CD by allowing developers to build and test applications in containers, then push these containers through testing and into production. This container-based approach ensures that the application behaves the same way from development through to deployment.

20
Q

Why is Docker favored for ensuring application security?

A

Docker enhances security by isolating applications in containers, limiting potential malicious attacks to the affected container without impacting others. Additionally, Docker images can be scanned for vulnerabilities before deployment.