Q91
Q91 How can you troubleshoot a failing service in Docker Compose?
Inspect service logs
Recreate the Compose file
Restart Docker
Remove unused networks
Q92
Q92 What is Docker Hub?
A tool for building images
A cloud-based Docker registry
A command-line utility
A networking tool
Q93
Q93 What is the primary purpose of a Docker Registry?
To monitor Docker containers
To store and distribute Docker images
To build multi-container applications
To manage Docker networks
Q94
Q94 Which of the following is a public Docker registry?
Docker Hub
AWS Elastic Container Registry
Google Container Registry
All of the above
Q95
Q95 What is the difference between a public and a private registry?
Public registries require authentication
Private registries are always cloud-based
Public registries are accessible to anyone, while private registries are restricted
Private registries cannot be used in production
Q96
Q96 How does a self-hosted Docker Registry differ from Docker Hub?
Self-hosted registries provide more features
Docker Hub requires no setup
Self-hosted registries are used for private images only
Docker Hub does not support public images
Q97
Q97 How do you log in to a Docker registry?
docker registry login
docker login
docker login registry
docker authenticate
Q98
Q98 How do you push an image to a Docker registry?
docker push
docker registry push
docker image push
docker upload
Q99
Q99 How do you pull an image from a Docker registry?
docker pull
docker registry pull
docker download
docker get
Q100
Q100 How do you list all tags for an image in a Docker registry?
docker registry tags
docker image tags
docker pull --tags
docker inspect tags
Q101
Q101 What should you check if a Docker image fails to push to a registry?
Registry URL
Docker image version
Authentication credentials
All of the above
Q102
Q102 A Docker pull command fails with 'unauthorized' error. What might be the issue?
The image does not exist
Incorrect registry URL
Invalid credentials
The registry is offline
Q103
Q103 You encounter slow upload speeds when pushing images to a Docker registry. What could be a reason?
High network latency
Docker Daemon misconfiguration
Registry authentication
Image size too small
Q104
Q104 What is the primary purpose of using Docker secrets?
Store sensitive information
Manage container logs
Monitor container performance
Debug networking issues
Q105
Q105 Why is it recommended to run containers with non-root users?
For better performance
To avoid privilege escalation
To improve networking
To reduce memory usage
Q106
Q106 What is the role of image signing in Docker security?
To encrypt container traffic
To verify the authenticity of images
To improve image performance
To manage image storage
Q107
Q107 What is the purpose of Docker Content Trust (DCT)?
To monitor container activity
To enforce signed image verification
To optimize container builds
To manage container logs
Q108
Q108 How do you enable Docker Content Trust?
Set DOCKER_TRUST=1
Set DOCKER_CONTENT_TRUST=1
Enable trust in Docker settings
Use the --trust flag with Docker commands
Q109
Q109 How do you scan a Docker image for vulnerabilities?
docker inspect
docker image scan
docker scan
docker image verify
Q110
Q110 How do you limit memory usage for a container?
Use the --mem-limit flag
Use the --memory flag
Set memory_limit in docker-compose.yml
Set max_mem in the Dockerfile
Q111
Q111 What should you do if a container is accessing restricted resources?
Restart the container
Check and update security policies
Stop all other containers
Inspect the container logs
Q112
Q112 How do you troubleshoot unauthorized access attempts in Docker?
Inspect Docker logs
Rebuild the container
Update Docker to the latest version
Restart the Docker Daemon
Q113
Q113 What is Docker Swarm primarily used for?
Container storage management
Networking between containers
Container orchestration
Monitoring container performance
Q114
Q114 What is the role of a manager node in Docker Swarm?
Handles container storage
Schedules tasks and manages cluster state
Executes container workloads
Manages container logs
Q115
Q115 What is the default communication protocol used in Docker Swarm?
HTTP
gRPC
Raft
UDP
Q116
Q116 How does Docker Swarm ensure high availability?
By using multiple manager nodes
By distributing storage
By enabling persistent volumes
By isolating network traffic
Q117
Q117 How do you initialize a Docker Swarm?
docker swarm init
docker init swarm
docker swarm create
docker swarm start
Q118
Q118 How do you add a worker node to a Docker Swarm?
docker swarm add-worker
docker swarm join
docker swarm connect
docker join swarm --worker
Q119
Q119 How do you list all nodes in a Docker Swarm?
docker node ls
docker swarm list-nodes
docker swarm nodes
docker list nodes
Q120
Q120 What should you check if a Docker Swarm service fails to deploy?
Node logs
Service definition
Network connectivity
All of the above