Q121
Q121 A Swarm manager node fails. How is leadership transferred?
Manually through the CLI
Automatically using Raft consensus
By restarting the Swarm
By reinitializing the manager node
Q122
Q122 What is the main advantage of integrating Docker with CI/CD pipelines?
Improved network management
Better storage allocation
Consistent environments
Faster debugging
Q123
Q123 Which CI/CD tool is specifically designed to work natively with Docker?
Jenkins
Travis CI
Docker Hub
CircleCI
Q124
Q124 How does Docker simplify the build process in CI/CD pipelines?
By creating network bridges
By enabling persistent storage
By using Dockerfiles to define builds
By providing native orchestration
Q125
Q125 What is the role of a Docker registry in CI/CD pipelines?
To store container logs
To manage volumes
To host and distribute container images
To monitor pipeline performance
Q126
Q126 How do you build a Docker image as part of a CI/CD pipeline?
docker create
docker run
docker build -t
docker make
Q127
Q127 How do you automate the push of a Docker image to a registry in a CI/CD pipeline?
docker push
docker registry push
docker automate push
Use CI/CD scripts with docker push
Q128
Q128 A Docker build fails in a CI/CD pipeline. What should you check first?
Registry URL
Dockerfile syntax
Pipeline logs
Network settings
Q129
Q129 How do you troubleshoot a failed Docker push in a CI/CD pipeline?
Check registry authentication
Rebuild the Docker image
Restart the CI/CD pipeline
Inspect network configurations
Q130
Q130 What is the primary reason for using Docker in production?
Easier debugging
Consistent deployment environments
Improved file storage
Better network management
Q131
Q131 What is the key benefit of using multi-stage builds in production?
Faster deployment
Reduced image size
Improved networking
Better resource allocation
Q132
Q132 Why is it important to use a reverse proxy with Docker containers in production?
To improve image builds
To enable persistent storage
To handle traffic routing and load balancing
To manage Docker logs
Q133
Q133 How do you restart a Docker service in production?
docker restart service
docker service update
docker service restart
docker update service
Q134
Q134 How do you deploy a stack of services in Docker?
docker deploy stack
docker stack deploy -c
docker service deploy
docker stack start
Q135
Q135 What should you check first if a production container stops unexpectedly?
Container logs
Service health status
Network configuration
Container image
Q136
Q136 How do you troubleshoot a Docker service failing to scale in production?
Inspect network settings
Review node resource availability
Update the service definition
Check Docker Daemon logs
Q137
Q137 What is the primary purpose of monitoring Docker containers?
To improve build speed
To optimize resource usage
To debug network issues
To manage Docker images
Q138
Q138 Which tool is commonly used for centralized logging in Docker environments?
Prometheus
ELK Stack
Docker Compose
Kubernetes
Q139
Q139 What is the role of cAdvisor in Docker monitoring?
To monitor container logs
To manage container networking
To collect resource usage metrics
To schedule container tasks
Q140
Q140 How do you view real-time logs for a running container?
docker logs
docker logs -f
docker tail
docker show logs
Q141
Q141 How do you configure a container to use a logging driver?
Specify it in Dockerfile
Use the --log-driver flag in docker run
Set it in the container environment
Enable it in Docker Compose
Q142
Q142 What should you check if a container's logs are missing in the central logging system?
Log driver configuration
Container image
Network settings
Docker Daemon logs
Q143
Q143 How do you troubleshoot high resource usage by a Docker container?
Inspect Docker Daemon
Check container logs
Monitor resource metrics using cAdvisor
Rebuild the container
Q144
Q144 What is a common use case for Docker in e-commerce applications?
Data backup
Application containerization
Real-time analytics
Customer support automation
Q145
Q145 How did Netflix leverage Docker in its microservices architecture?
For containerized streaming services
To scale microservices dynamically
To replace its monolithic system
To automate network configuration
Q146
Q146 Why is Docker often chosen for continuous delivery pipelines in enterprise solutions?
To simplify image management
To automate testing
To provide consistent environments
To manage persistent storage
Q147
Q147 How do you scale a microservice using Docker Swarm?
docker swarm scale
docker service scale
docker scale service
docker stack scale
Q148
Q148 How do you test the health of a containerized service in production?
docker inspect health
docker service health
docker container inspect
docker inspect --format='{{.State.Health.Status}}'
Q149
Q149 What should you check if a containerized microservice fails to respond to requests?
Container logs
Service definition
Network settings
All of the above
Q150
Q150 How do you troubleshoot intermittent connectivity issues in a Dockerized application?
Inspect the container network
Restart the application
Rebuild the Docker image
Update the service definition