What is the primary purpose of Docker Swarm?
Deploying and managing containerized applications at scale
Storing and versioning Docker images
Building Docker images faster
Scanning Docker images for vulnerabilities
What is the purpose of a Swarm service's 'update_config' setting?
To automatically update the service's Docker image to the latest version
To scale the number of replicas for the service up or down
To change the environment variables for the service's containers
To configure how updates to the service are rolled out across replicas
When might a bind mount be a suitable choice for data persistence in Docker?
When you require data portability across different Docker environments.
When you need to share data between multiple Docker containers running on the same host.
When you want to leverage the scalability and redundancy of cloud storage.
When you need to share sensitive configuration files between the host and a container.
What is the primary advantage of using Docker containers in a CI/CD pipeline?
Elimination of the need for version control
Guaranteed execution on any operating system
Enhanced environment consistency across development, testing, and production
Reduced storage footprint for build artifacts
Which flag is used with 'docker logs' to follow log output in real-time?
-r
-f
-t
-d
Which open-source tool is commonly used to set up a private Docker Registry?
Kubernetes
Docker Registry
Docker Compose
Docker Hub
How can you view the logs of a specific container named 'webserver'?
docker show-logs webserver
docker logs -id webserver
docker logs webserver
docker inspect webserver | grep logs
What is the default networking mode in Docker Compose when no explicit network configuration is provided?
None
Host
Overlay
Bridge
Which statement accurately describes a drawback of using bind mounts for sensitive data?
Bind mounts are less efficient than Docker volumes for handling large data volumes.
Bind mounts provide enhanced security for storing sensitive data.
Bind mounts can expose parts of the host's filesystem to containers, potentially leading to security risks.
Bind mounts are not supported in the latest versions of Docker.
What is the primary advantage of using Docker volumes over bind mounts for data persistence?
Bind mounts are easier to back up and restore compared to Docker volumes.
Volumes offer better performance compared to bind mounts.
Volumes are managed by Docker and provide data portability across different host environments.
Bind mounts are generally more secure than Docker volumes.