Docker and Kubernetes Professional Certification exam answers 2026: This page lists all 100 questions of the official Docker and Kubernetes Professional Certification exam by Itronix Solutions, each with its four answer options and the correct answer highlighted in green. Use it to revise every topic before you attempt the test and earn your verifiable certificate.
About this certification: Test your container skills: Docker images, containers, Dockerfile, volumes, networking and Kubernetes pods, deployments and services.
| Certification | Docker and Kubernetes Professional Certification |
| Provider | Itronix Solutions |
| Category | Cloud & DevOps |
| Total questions | 100 multiple-choice questions |
| Marks | 1 mark per question (100 marks) |
| Passing score | 80% (80 out of 100) |
| Retake | Available if you do not pass |
| Certificate | Verifiable online certificate |
Take the exam: Docker and Kubernetes Professional Certification on Itronix Solutions. See every other Itronix exam in our complete list of Itronix certification answers.
Docker and Kubernetes Exam Questions and Answers
Questions 1 to 25
1. A Docker container is:
Correct answer: D. A lightweight, isolated runtime instance of an image
2. Which file defines how to build a Docker image?
Correct answer: B. Dockerfile
3. Which command lists running containers?
Correct answer: B. docker ps
4. Which command builds an image from a Dockerfile in the current folder?
Correct answer: B. docker build -t name .
5. Docker Hub is:
Correct answer: A. A public registry for Docker images
6. Volumes in Docker are used to:
Correct answer: D. Persist data outside the container lifecycle
7. Docker Compose is used to:
Correct answer: C. Define and run multi-container applications
8. The Dockerfile instruction that sets the base image is:
Correct answer: D. FROM
9. Kubernetes is a:
Correct answer: A. Container orchestration platform
10. The smallest deployable unit in Kubernetes is a:
Correct answer: B. Pod
11. A Kubernetes Deployment is used to:
Correct answer: D. Manage replicas and rolling updates of pods
12. Which command-line tool is used to interact with Kubernetes?
Correct answer: D. kubectl
13. A Kubernetes Service provides:
Correct answer: D. A stable network endpoint to access a set of pods
14. Which object stores sensitive data like passwords in Kubernetes?
Correct answer: D. Secret
15. Kubernetes configuration files are usually written in:
Correct answer: A. YAML
16. Which command runs a container from the nginx image?
Correct answer: D. docker run nginx
17. The EXPOSE instruction in a Dockerfile:
Correct answer: C. Documents the port the container listens on
18. Horizontal Pod Autoscaler in Kubernetes:
Correct answer: D. Changes the number of pod replicas based on load
19. Compared to virtual machines, containers are generally:
Correct answer: B. Lighter and faster to start because they share the host OS kernel
20. An Ingress in Kubernetes manages:
Correct answer: C. External HTTP/HTTPS access to services
21. A container is:
Correct answer: B. A lightweight, isolated package of an application and its dependencies
22. Docker is:
Correct answer: B. A platform for building, shipping and running containers
23. A Docker image is:
Correct answer: B. A read-only template used to create containers
24. A Docker container is:
Correct answer: D. A running instance of an image
25. A Dockerfile contains:
Correct answer: C. Instructions to build an image
Questions 26 to 50
26. FROM in a Dockerfile specifies:
Correct answer: D. The base image
27. RUN in a Dockerfile:
Correct answer: B. Executes commands during the image build
28. COPY in a Dockerfile:
Correct answer: A. Copies files from the build context into the image
29. WORKDIR sets:
Correct answer: C. The working directory for subsequent instructions
30. ENV sets:
Correct answer: D. Environment variables in the image
31. EXPOSE documents:
Correct answer: A. The port the container listens on
32. CMD specifies:
Correct answer: D. The default command when the container starts
33. ENTRYPOINT defines:
Correct answer: D. The executable that always runs when the container starts
34. Each Dockerfile instruction creates:
Correct answer: C. An image layer
35. Layer caching speeds up builds when:
Correct answer: D. Unchanged instructions are reused
36. Placing dependency installation before copying source code helps:
Correct answer: D. Maximise build cache reuse
37. Multi-stage builds help to:
Correct answer: D. Produce smaller final images by separating build and runtime stages
38. A .dockerignore file:
Correct answer: A. Excludes files from the build context
39. docker build -t app:1.0 . :
Correct answer: B. Builds an image tagged app:1.0 from the current directory
40. docker run -d -p 8080:80 nginx:
Correct answer: C. Runs nginx detached mapping host port 8080 to container port 80
41. docker ps lists:
Correct answer: B. Running containers
42. docker ps -a lists:
Correct answer: A. All containers including stopped ones
43. docker images lists:
Correct answer: C. Local images
44. docker exec -it container sh:
Correct answer: C. Opens an interactive shell inside a running container
45. docker logs container shows:
Correct answer: D. The container’s output logs
46. docker stop:
Correct answer: C. Gracefully stops a running container
47. docker rm removes:
Correct answer: D. A stopped container
48. docker rmi removes:
Correct answer: A. An image
49. docker pull downloads:
Correct answer: C. An image from a registry
50. docker push uploads:
Correct answer: C. An image to a registry
Questions 51 to 75
51. Docker Hub is:
Correct answer: B. A public container image registry
52. Image tags like :latest or :1.2 identify:
Correct answer: D. Versions of an image
53. Using :latest in production is discouraged because:
Correct answer: A. It is not a fixed, reproducible version
54. Volumes in Docker are used to:
Correct answer: B. Persist data outside the container lifecycle
55. Bind mounts map:
Correct answer: B. A host directory into a container
56. Docker networks allow:
Correct answer: D. Containers to communicate with each other
57. Containers on the same user-defined bridge network can reach each other by:
Correct answer: A. Container name
58. Docker Compose is used to:
Correct answer: B. Define and run multi-container applications with a YAML file
59. docker compose up:
Correct answer: B. Creates and starts all services defined in the compose file
60. Running containers as a non-root user improves:
Correct answer: A. Security
61. Image vulnerability scanning helps to:
Correct answer: B. Find known security issues in packages
62. Secrets should not be:
Correct answer: A. Baked into images or Dockerfiles
63. Containers differ from VMs because containers:
Correct answer: C. Share the host kernel and start quickly
64. Kubernetes is:
Correct answer: B. A container orchestration platform
65. Kubernetes was originally developed by:
Correct answer: D. Google
66. A Kubernetes cluster consists of:
Correct answer: B. A control plane and worker nodes
67. The kube-apiserver:
Correct answer: D. Exposes the Kubernetes API and is the front end of the control plane
68. etcd in Kubernetes stores:
Correct answer: D. Cluster state as a key-value store
69. The kube-scheduler:
Correct answer: B. Assigns pods to nodes
70. The kubelet:
Correct answer: C. Runs on each node and ensures containers in pods are running
71. kube-proxy handles:
Correct answer: B. Network rules for Service traffic on nodes
72. A Pod is:
Correct answer: A. The smallest deployable unit, containing one or more containers
73. A Deployment manages:
Correct answer: C. ReplicaSets to keep a desired number of pod replicas and roll out updates
74. A ReplicaSet ensures:
Correct answer: B. A specified number of pod replicas are running
75. A Service provides:
Correct answer: C. A stable network endpoint to access a set of pods
Questions 76 to 100
76. ClusterIP Service type:
Correct answer: D. Exposes the service only inside the cluster
77. NodePort Service type:
Correct answer: A. Exposes the service on a static port on each node
78. LoadBalancer Service type:
Correct answer: D. Provisions an external load balancer in supported clouds
79. An Ingress manages:
Correct answer: A. External HTTP/HTTPS routing to services
80. A Namespace is used to:
Correct answer: C. Logically separate resources within a cluster
81. A ConfigMap stores:
Correct answer: B. Non-confidential configuration data
82. A Secret stores:
Correct answer: C. Sensitive data such as passwords and tokens
83. A PersistentVolumeClaim is:
Correct answer: B. A request for storage by a pod
84. A StatefulSet is used for:
Correct answer: C. Stateful applications needing stable identities and storage
85. A DaemonSet ensures:
Correct answer: B. A pod runs on every (or selected) node
86. A Job runs:
Correct answer: B. Pods to completion for batch tasks
87. A CronJob runs:
Correct answer: B. Jobs on a schedule
88. kubectl get pods:
Correct answer: B. Lists pods
89. kubectl apply -f file.yaml:
Correct answer: B. Creates or updates resources from a manifest
90. kubectl describe pod name:
Correct answer: C. Shows detailed information and events for a pod
91. kubectl logs pod:
Correct answer: D. Shows container logs from a pod
92. kubectl scale deployment app –replicas=5:
Correct answer: D. Changes the number of replicas to five
93. Liveness probes:
Correct answer: B. Restart containers that are unhealthy
94. Readiness probes:
Correct answer: A. Control whether a pod receives traffic
95. Resource requests and limits define:
Correct answer: D. CPU and memory reserved and allowed for containers
96. The Horizontal Pod Autoscaler:
Correct answer: C. Scales pod replicas based on metrics like CPU
97. Rolling updates in Deployments:
Correct answer: D. Replace pods gradually without downtime
98. kubectl rollout undo:
Correct answer: D. Rolls back a Deployment to a previous revision
99. Helm is:
Correct answer: D. A package manager for Kubernetes applications using charts
100. Managed Kubernetes services include:
Correct answer: B. EKS, AKS and GKE
How to Pass the Docker and Kubernetes Exam
- Read every question carefully; most options look similar, so look for the most precise answer.
- Revise the questions above topic by topic rather than memorising letters, because option order can change in the live test.
- You need 80 correct answers out of 100 to pass, so aim to understand at least 85 to stay safe.
- If you do not clear it on the first attempt, review the questions you missed and use the retake option.
Frequently Asked Questions
How many questions are in the Docker and Kubernetes Professional Certification exam?
The exam has 100 multiple-choice questions, each worth 1 mark.
What is the passing score for the Docker and Kubernetes Professional Certification?
You need at least 80% (80 out of 100) to pass and receive the certificate.
Can I retake the Docker and Kubernetes Professional Certification exam?
Yes. If you score below 80%, you can retry the test after reviewing the topics.
Is the Itronix certificate verifiable?
Yes. Every certificate issued by Itronix Solutions has a unique ID that can be checked on the Itronix verify-certificate page.
More Cloud & DevOps Certification Answers
- Amazon AWS Solution Architect Certification Exam Answers
- AWS Certification Exam Answers
- Cloud Computing Certification Exam Answers
- DevOps and Software Engineering Professional Certification Exam Answers
- DevOps Certification Exam Answers
- Google Cloud Certification Exam Answers
- Microsoft Azure Certification Exam Answers
- Unix/ Linux Certification Exam Answers
Disclaimer: These answers are provided for learning and revision. Questions and answers are checked regularly; if you find a mistake, let us know in the comments.
Priya Dogra – Free Certifications, Exam Answers & Career Guides Free certification exam answers, courses, scholarships and career guides for learners worldwide