Cuestionario: Mastering Docker: Container Architecture and Deployment — 9 preguntas

Preguntas y respuestas detalladas

1. What is the core component of Docker architecture responsible for running and managing containers?

Docker Engine
Docker CLI
Docker Registry
Docker Compose

Docker Engine

Explicación

Docker Engine is the core component that runs and manages containers, handling image building, container execution, and resource allocation. The other options serve different roles: CLI is the command interface, Registry stores images, and Compose orchestrates multi-container setups.

2. What is a Docker container primarily designed to do?

Provide a full virtualized OS environment for applications.
Package an application and its dependencies in an isolated environment.
Create a static template for production deployment.
Store and distribute application code across networks.

Package an application and its dependencies in an isolated environment.

Explicación

Docker containers are designed to package applications and their dependencies in isolated environments, not to emulate full OS systems.

3. What is the primary role of resource isolation in containers?

To simplify the process of building container images
To allow containers to share resources freely without restrictions
To prevent interference between containers and the host system
To enable containers to run on any operating system without modification

To prevent interference between containers and the host system

Explicación

Resource isolation in containers, achieved through Linux namespaces and cgroups, primarily serves to prevent interference between containers and the host system, ensuring secure and predictable operation of multiple containers on a single host.

4. Which component of Docker is responsible for managing and running containers?

Docker Compose
Docker Registry
Docker Engine
Docker CLI

Docker Engine

Explicación

Docker Engine is the core component that handles container execution, image management, and resource allocation.

5. How do images and layered structures in Docker differ or are similar?

Images are built from multiple immutable layers stacked together, while containers are runtime instances with a writable layer on top of the image layers.
Images and layered structures are identical; both are composed of stacked immutable layers used during runtime.
Containers are built from layered images, and they themselves are also layered structures with multiple immutable layers.
Images are single, monolithic files without layers, whereas layered structures involve multiple layers.

Images are built from multiple immutable layers stacked together, while containers are runtime instances with a writable layer on top of the image layers.

Explicación

Docker images are constructed from multiple immutable layers that are stacked to form the complete filesystem. Containers are runtime instances that add a writable layer on top of these image layers, but they are not layered in the same sense. Therefore, images are layered structures, whereas containers are not layered but have a layered architecture.

6. What role do Docker images play in container management?

They serve as live environments that are configured during runtime.
They are read-only templates used to create containers.
They are identical to containers and run directly on the host OS.
They store network configurations for containers.

They are read-only templates used to create containers.

Explicación

Docker images are static, read-only templates used to instantiate containers, providing a consistent environment for container creation.

7. Which of the following is NOT a storage option supported by Docker?

Bind mounts
Volumes
In-memory storage
Full disk duplication

Full disk duplication

Explicación

Docker supports bind mounts, volumes, and in-memory storage for data persistence and sharing; full disk duplication is not a storage option in Docker.

8. How does Docker ensure network connectivity between containers?

Through port mapping, bridge networks, and user-defined networks.
By requiring containers to run on separate physical machines.
Using proprietary network hardware interfaces.
Only through shared host network namespace.

Through port mapping, bridge networks, and user-defined networks.

Explicación

Docker supports host port mapping, bridge networks, and user-defined networks to enable container communication and external access.

9. What is the primary purpose of a Dockerfile?

To automate the process of creating Docker images.
To configure network settings for containers.
To store Docker images in registries.
To manage running containers.

To automate the process of creating Docker images.

Explicación

A Dockerfile contains instructions to automate building Docker images, defining the environment, and setting up the application environment.

Repasa con tarjetas de memoria

Memoriza las respuestas con 10 tarjetas de memoria sobre Mastering Docker: Container Architecture and Deployment.

Docker — main function?

Automates deployment and management of containers.

Docker — definition?

Open-source platform for container deployment and management.

Container — role?

Provides isolated environment for applications.

Ver tarjetas de memoria →

Estudia la hoja de repaso

Lee la hoja de repaso completa sobre Mastering Docker: Container Architecture and Deployment.

Ver hoja de repaso →

Similar courses

Crea tus propios cuestionarios

Importa tu curso y la IA genera cuestionarios con correcciones en 30 segundos.

Generador de cuestionarios