Which of the following is NOT a valid health check type in a Dockerfile?
HTTP
TCP
CMD
NONE
What is the purpose of the COPY --from instruction in a multi-stage Docker build?
COPY --from
To copy files from a remote repository to the current build stage.
To copy files from the current build stage to a later build stage.
To copy files from the host machine to the current build stage.
To copy files from a previous build stage to the current build stage.
What is the purpose of the 'docker push' command in the context of a Docker Registry?
Download an image from a registry
Run a Docker container from an image
Build a Docker image from a Dockerfile
Upload an image to a registry
What is the default networking mode in Docker Compose when no explicit network configuration is provided?
Host
Overlay
None
Bridge
What is the purpose of a replica in the context of Docker Swarm services?
A copy of a Docker image stored on a different node
A backup of a manager node to ensure high availability
An instance of a container running a specific task for a service
A load balancer that distributes traffic across multiple containers
What is the primary function of a Docker Registry?
Running Docker containers in production
Managing network traffic between containers
Building Docker images
Storing and distributing Docker images
What is the purpose of volume drivers in Docker?
To restrict container access to specific volumes.
To improve the performance of volume operations.
To manage the lifecycle of bind mounts.
To enable the use of remote storage or cloud-based solutions for volumes.
How does Docker integrate with GitLab CI for automated testing?
Docker replaces the need for a separate testing framework
GitLab CI automatically generates Dockerfiles based on project code
GitLab CI can use Docker images to provide isolated environments for running tests
Docker directly executes test suites within the GitLab CI/CD platform
What is the primary advantage of using Docker containers in a CI/CD pipeline?
Elimination of the need for version control
Reduced storage footprint for build artifacts
Enhanced environment consistency across development, testing, and production
Guaranteed execution on any operating system
What is a significant benefit of using a volume driver that supports cloud storage?
Increased complexity in managing data.
Improved performance for data-intensive applications.
Reduced need for data backups and disaster recovery planning.
Enhanced data durability and availability through redundancy and backups.