What is the role of a Docker registry in a CI/CD pipeline?
To store and manage Docker images
To execute automated tests within isolated containers
To define the steps of the continuous integration process
To monitor application performance in real-time
What is the purpose of 'docker exec' command?
To execute a command inside a running container
To build a Docker image from a Dockerfile
To push a Docker image to a registry
To list all available Docker images
How does Docker contribute to improved security in CI/CD?
Docker's containerization provides isolation, limiting the impact of vulnerabilities
Docker eliminates the need for security updates by isolating applications
Docker enforces strict access control policies on application code
Docker automatically encrypts data at rest and in transit
How does Docker Swarm achieve network communication between containers on different nodes?
By creating an overlay network that spans across all nodes in the cluster
By establishing secure tunnels between individual containers
By relying on the host operating system's networking capabilities
By creating a single, shared network interface for all containers
What role does a manager node play in a Docker Swarm cluster?
Provides networking and load balancing for the cluster
Executes the actual application tasks within containers
Manages cluster state, schedules tasks, and ensures service availability
Stores and distributes Docker images to worker nodes
How can you control access to images stored in a private Docker Registry?
By implementing authentication and authorization mechanisms within the registry
By configuring network firewalls to restrict access by IP address
By using encryption to secure images during transmission
By regularly updating the registry software to patch vulnerabilities
Which flag is used with 'docker logs' to follow log output in real-time?
-t
-r
-f
-d
In a multi-stage Docker build, how can you refer to a specific stage by its index?
By using the stage's name.
By using a numerical index starting from 1.
It's not possible to refer to stages by index.
By using a numerical index starting from 0.
What is a key advantage of using Docker with Jenkins for deployments?
Docker automatically scales applications based on real-time traffic
Docker eliminates the need for orchestration tools like Kubernetes
Docker enables immutable deployments, ensuring consistent application versions across environments
Docker handles database migrations as part of the deployment process
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 app-server -it ls -l
docker exec -it app-server ls -l
docker exec -d app-server ls -l