Which of the following is a key characteristic of bind mounts in Docker?
They provide a way to share data between containers.
They directly link a directory on the host machine to a container's filesystem.
They are the preferred method for managing sensitive data within Docker containers.
They are stored within the Docker's internal storage system.
What is the role of authentication tokens in the context of a Docker Registry?
They define the network routes for communication between the registry and clients.
They are used to digitally sign images to ensure their integrity.
They are used to encrypt images stored in the registry.
They provide temporary access credentials for interacting with the registry.
What is the purpose of volume drivers in Docker?
To restrict container access to specific volumes.
To enable the use of remote storage or cloud-based solutions for volumes.
To improve the performance of volume operations.
To manage the lifecycle of bind mounts.
You want to execute 'ls -l' inside a container named 'app-server' and allocate a pseudo-TTY. Which command is correct?
docker run -it app-server ls -l
docker exec -it app-server ls -l
docker exec -d app-server ls -l
docker exec app-server -it ls -l
What is the purpose of 'docker exec' command?
To execute a command inside a running container
To push a Docker image to a registry
To list all available Docker images
To build a Docker image from a Dockerfile
What role does a manager node play in a Docker Swarm cluster?
Stores and distributes Docker images to worker nodes
Provides networking and load balancing for the cluster
Executes the actual application tasks within containers
Manages cluster state, schedules tasks, and ensures service availability
What is the primary way to define and deploy applications in a Docker Swarm?
Docker Swarm stacks
Dockerfiles
Docker Compose files
Kubernetes Deployments
What is the role of a Docker registry in a CI/CD pipeline?
To monitor application performance in real-time
To execute automated tests within isolated containers
To store and manage Docker images
To define the steps of the continuous integration process
What is the purpose of the 'docker push' command in the context of a Docker Registry?
Build a Docker image from a Dockerfile
Run a Docker container from an image
Download an image from a registry
Upload an image to a registry
How can you control access to images stored in a private Docker Registry?
By regularly updating the registry software to patch vulnerabilities
By using encryption to secure images during transmission
By configuring network firewalls to restrict access by IP address
By implementing authentication and authorization mechanisms within the registry