Wednesday , November 18 2026
Breaking News

Docker and Kubernetes Professional Certification Exam Answers 2026 (All 100 Questions)

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:

A. A virtual hard disk only
B. A web browser
C. A programming language
D. A lightweight, isolated runtime instance of an image ✔

Correct answer: D. A lightweight, isolated runtime instance of an image

2. Which file defines how to build a Docker image?

A. docker.json
B. Dockerfile ✔
C. image.yml
D. compose.txt

Correct answer: B. Dockerfile

3. Which command lists running containers?

A. docker run -l
B. docker ps ✔
C. docker show
D. docker list

Correct answer: B. docker ps

4. Which command builds an image from a Dockerfile in the current folder?

A. docker compile .
B. docker build -t name . ✔
C. docker create image
D. docker make name

Correct answer: B. docker build -t name .

5. Docker Hub is:

A. A public registry for Docker images ✔
B. A Linux distribution
C. A Kubernetes node
D. A text editor

Correct answer: A. A public registry for Docker images

6. Volumes in Docker are used to:

A. Change image names
B. Increase CPU speed
C. Delete containers
D. Persist data outside the container lifecycle ✔

Correct answer: D. Persist data outside the container lifecycle

7. Docker Compose is used to:

A. Monitor GPUs
B. Write Dockerfiles automatically
C. Define and run multi-container applications ✔
D. Compress images

Correct answer: C. Define and run multi-container applications

8. The Dockerfile instruction that sets the base image is:

A. BASE
B. IMAGE
C. START
D. FROM ✔

Correct answer: D. FROM

9. Kubernetes is a:

A. Container orchestration platform ✔
B. Programming language
C. Operating system for phones
D. Database

Correct answer: A. Container orchestration platform

10. The smallest deployable unit in Kubernetes is a:

A. Namespace
B. Pod ✔
C. Node
D. Cluster

Correct answer: B. Pod

11. A Kubernetes Deployment is used to:

A. Build images
B. Create users
C. Store secrets only
D. Manage replicas and rolling updates of pods ✔

Correct answer: D. Manage replicas and rolling updates of pods

12. Which command-line tool is used to interact with Kubernetes?

A. kubeadm only
B. dockerctl
C. k8sh
D. kubectl ✔

Correct answer: D. kubectl

13. A Kubernetes Service provides:

A. Logging only
B. Persistent storage only
C. Image builds
D. A stable network endpoint to access a set of pods ✔

Correct answer: D. A stable network endpoint to access a set of pods

14. Which object stores sensitive data like passwords in Kubernetes?

A. Ingress
B. Pod
C. ConfigMap
D. Secret ✔

Correct answer: D. Secret

15. Kubernetes configuration files are usually written in:

A. YAML ✔
B. Markdown
C. CSV
D. SQL

Correct answer: A. YAML

16. Which command runs a container from the nginx image?

A. docker pull-run nginx
B. docker exec nginx
C. docker start-new nginx
D. docker run nginx ✔

Correct answer: D. docker run nginx

17. The EXPOSE instruction in a Dockerfile:

A. Deletes ports
B. Publishes the image to Docker Hub
C. Documents the port the container listens on ✔
D. Sets environment variables

Correct answer: C. Documents the port the container listens on

18. Horizontal Pod Autoscaler in Kubernetes:

A. Backs up the cluster
B. Resizes the monitor
C. Builds Docker images
D. Changes the number of pod replicas based on load ✔

Correct answer: D. Changes the number of pod replicas based on load

19. Compared to virtual machines, containers are generally:

A. Heavier and slower
B. Lighter and faster to start because they share the host OS kernel ✔
C. Unable to run applications
D. Only for Windows

Correct answer: B. Lighter and faster to start because they share the host OS kernel

20. An Ingress in Kubernetes manages:

A. CPU limits only
B. Image layers
C. External HTTP/HTTPS access to services ✔
D. Disk formatting

Correct answer: C. External HTTP/HTTPS access to services

21. A container is:

A. A full virtual machine with its own kernel
B. A lightweight, isolated package of an application and its dependencies ✔
C. A database
D. A physical server

Correct answer: B. A lightweight, isolated package of an application and its dependencies

22. Docker is:

A. A programming language
B. A platform for building, shipping and running containers ✔
C. A cloud provider
D. A text editor

Correct answer: B. A platform for building, shipping and running containers

23. A Docker image is:

A. A log file
B. A read-only template used to create containers ✔
C. A running process
D. A virtual disk only

Correct answer: B. A read-only template used to create containers

24. A Docker container is:

A. A registry
B. A volume
C. A Dockerfile
D. A running instance of an image ✔

Correct answer: D. A running instance of an image

25. A Dockerfile contains:

A. Container logs
B. Kubernetes manifests
C. Instructions to build an image ✔
D. Passwords

Correct answer: C. Instructions to build an image

Questions 26 to 50

26. FROM in a Dockerfile specifies:

A. The working directory
B. The exposed port
C. The command to run
D. The base image ✔

Correct answer: D. The base image

27. RUN in a Dockerfile:

A. Sets environment variables only
B. Executes commands during the image build ✔
C. Copies files
D. Starts the container

Correct answer: B. Executes commands during the image build

28. COPY in a Dockerfile:

A. Copies files from the build context into the image ✔
B. Downloads from the internet always
C. Runs commands
D. Exposes ports

Correct answer: A. Copies files from the build context into the image

29. WORKDIR sets:

A. The port
B. The user
C. The working directory for subsequent instructions ✔
D. The base image

Correct answer: C. The working directory for subsequent instructions

30. ENV sets:

A. Build arguments only
B. Volumes
C. The base image
D. Environment variables in the image ✔

Correct answer: D. Environment variables in the image

31. EXPOSE documents:

A. The port the container listens on ✔
B. The volume path
C. The base image
D. The host IP

Correct answer: A. The port the container listens on

32. CMD specifies:

A. The base image
B. Build-time commands
C. The network
D. The default command when the container starts ✔

Correct answer: D. The default command when the container starts

33. ENTRYPOINT defines:

A. The build context
B. The base image
C. The registry
D. The executable that always runs when the container starts ✔

Correct answer: D. The executable that always runs when the container starts

34. Each Dockerfile instruction creates:

A. A network
B. A new container
C. An image layer ✔
D. A volume

Correct answer: C. An image layer

35. Layer caching speeds up builds when:

A. Every layer is rebuilt
B. Images are deleted
C. Ports change
D. Unchanged instructions are reused ✔

Correct answer: D. Unchanged instructions are reused

36. Placing dependency installation before copying source code helps:

A. Increase image size
B. Break builds
C. Slow builds
D. Maximise build cache reuse ✔

Correct answer: D. Maximise build cache reuse

37. Multi-stage builds help to:

A. Create networks
B. Increase image size
C. Run multiple containers
D. Produce smaller final images by separating build and runtime stages ✔

Correct answer: D. Produce smaller final images by separating build and runtime stages

38. A .dockerignore file:

A. Excludes files from the build context ✔
B. Lists running containers
C. Stores secrets
D. Defines networks

Correct answer: A. Excludes files from the build context

39. docker build -t app:1.0 . :

A. Runs a container
B. Builds an image tagged app:1.0 from the current directory ✔
C. Deletes an image
D. Pushes an image

Correct answer: B. Builds an image tagged app:1.0 from the current directory

40. docker run -d -p 8080:80 nginx:

A. Builds nginx
B. Deletes nginx
C. Runs nginx detached mapping host port 8080 to container port 80 ✔
D. Pulls only

Correct answer: C. Runs nginx detached mapping host port 8080 to container port 80

41. docker ps lists:

A. Networks
B. Running containers ✔
C. All images
D. Volumes

Correct answer: B. Running containers

42. docker ps -a lists:

A. All containers including stopped ones ✔
B. Only images
C. Only volumes
D. Only running ones

Correct answer: A. All containers including stopped ones

43. docker images lists:

A. Running containers
B. Networks
C. Local images ✔
D. Volumes

Correct answer: C. Local images

44. docker exec -it container sh:

A. Deletes images
B. Builds an image
C. Opens an interactive shell inside a running container ✔
D. Stops a container

Correct answer: C. Opens an interactive shell inside a running container

45. docker logs container shows:

A. Volume data
B. Image layers
C. Network config
D. The container’s output logs ✔

Correct answer: D. The container’s output logs

46. docker stop:

A. Deletes an image
B. Pulls an image
C. Gracefully stops a running container ✔
D. Builds an image

Correct answer: C. Gracefully stops a running container

47. docker rm removes:

A. A network only
B. An image
C. A registry
D. A stopped container ✔

Correct answer: D. A stopped container

48. docker rmi removes:

A. An image ✔
B. A network
C. A container
D. A volume

Correct answer: A. An image

49. docker pull downloads:

A. A volume
B. A Dockerfile
C. An image from a registry ✔
D. A container’s logs

Correct answer: C. An image from a registry

50. docker push uploads:

A. A container
B. Files to a container
C. An image to a registry ✔
D. Logs to a server

Correct answer: C. An image to a registry

Questions 51 to 75

51. Docker Hub is:

A. A CI tool
B. A public container image registry ✔
C. A container runtime
D. A Kubernetes distribution

Correct answer: B. A public container image registry

52. Image tags like :latest or :1.2 identify:

A. Volumes
B. Container names
C. Networks
D. Versions of an image ✔

Correct answer: D. Versions of an image

53. Using :latest in production is discouraged because:

A. It is not a fixed, reproducible version ✔
B. It cannot be pulled
C. It is slower
D. It is insecure always

Correct answer: A. It is not a fixed, reproducible version

54. Volumes in Docker are used to:

A. Expose ports
B. Persist data outside the container lifecycle ✔
C. Build images
D. Increase CPU

Correct answer: B. Persist data outside the container lifecycle

55. Bind mounts map:

A. A network to a volume
B. A host directory into a container ✔
C. An image into a registry
D. A port to a host

Correct answer: B. A host directory into a container

56. Docker networks allow:

A. Logs to rotate
B. Volumes to grow
C. Images to build faster
D. Containers to communicate with each other ✔

Correct answer: D. Containers to communicate with each other

57. Containers on the same user-defined bridge network can reach each other by:

A. Container name ✔
B. Image ID
C. MAC address only
D. Host file path

Correct answer: A. Container name

58. Docker Compose is used to:

A. Build Kubernetes clusters
B. Define and run multi-container applications with a YAML file ✔
C. Manage registries
D. Write Dockerfiles

Correct answer: B. Define and run multi-container applications with a YAML file

59. docker compose up:

A. Deletes all containers
B. Creates and starts all services defined in the compose file ✔
C. Builds a cluster
D. Pushes images

Correct answer: B. Creates and starts all services defined in the compose file

60. Running containers as a non-root user improves:

A. Security ✔
B. Build speed
C. Image size
D. Networking

Correct answer: A. Security

61. Image vulnerability scanning helps to:

A. Reduce ports
B. Find known security issues in packages ✔
C. Speed up builds
D. Create networks

Correct answer: B. Find known security issues in packages

62. Secrets should not be:

A. Baked into images or Dockerfiles ✔
B. Encrypted
C. Stored in secret managers
D. Rotated

Correct answer: A. Baked into images or Dockerfiles

63. Containers differ from VMs because containers:

A. Need hypervisors only
B. Are always slower
C. Share the host kernel and start quickly ✔
D. Include a full guest OS

Correct answer: C. Share the host kernel and start quickly

64. Kubernetes is:

A. A programming language
B. A container orchestration platform ✔
C. A cloud provider
D. A container image

Correct answer: B. A container orchestration platform

65. Kubernetes was originally developed by:

A. Microsoft
B. Amazon
C. Docker Inc. only
D. Google ✔

Correct answer: D. Google

66. A Kubernetes cluster consists of:

A. Only volumes
B. A control plane and worker nodes ✔
C. Only images
D. Only one container

Correct answer: B. A control plane and worker nodes

67. The kube-apiserver:

A. Runs containers
B. Stores images
C. Balances internet traffic
D. Exposes the Kubernetes API and is the front end of the control plane ✔

Correct answer: D. Exposes the Kubernetes API and is the front end of the control plane

68. etcd in Kubernetes stores:

A. User files
B. Application logs
C. Container images
D. Cluster state as a key-value store ✔

Correct answer: D. Cluster state as a key-value store

69. The kube-scheduler:

A. Stores secrets
B. Assigns pods to nodes ✔
C. Routes DNS
D. Builds images

Correct answer: B. Assigns pods to nodes

70. The kubelet:

A. Stores cluster state
B. Schedules pods
C. Runs on each node and ensures containers in pods are running ✔
D. Is a CLI tool

Correct answer: C. Runs on each node and ensures containers in pods are running

71. kube-proxy handles:

A. Scheduling
B. Network rules for Service traffic on nodes ✔
C. Logging
D. Image builds

Correct answer: B. Network rules for Service traffic on nodes

72. A Pod is:

A. The smallest deployable unit, containing one or more containers ✔
B. A node
C. A cluster
D. An image

Correct answer: A. The smallest deployable unit, containing one or more containers

73. A Deployment manages:

A. Persistent storage only
B. DNS
C. ReplicaSets to keep a desired number of pod replicas and roll out updates ✔
D. Single nodes

Correct answer: C. ReplicaSets to keep a desired number of pod replicas and roll out updates

74. A ReplicaSet ensures:

A. Logs are stored
B. A specified number of pod replicas are running ✔
C. Secrets are encrypted
D. Images are built

Correct answer: B. A specified number of pod replicas are running

75. A Service provides:

A. Container images
B. Node scaling
C. A stable network endpoint to access a set of pods ✔
D. Storage volumes

Correct answer: C. A stable network endpoint to access a set of pods

Questions 76 to 100

76. ClusterIP Service type:

A. Creates a cloud load balancer
B. Uses external DNS only
C. Exposes on each node’s port
D. Exposes the service only inside the cluster ✔

Correct answer: D. Exposes the service only inside the cluster

77. NodePort Service type:

A. Exposes the service on a static port on each node ✔
B. A cloud load balancer
C. DNS only
D. Only internal access

Correct answer: A. Exposes the service on a static port on each node

78. LoadBalancer Service type:

A. Only internal access
B. Only node ports
C. No access
D. Provisions an external load balancer in supported clouds ✔

Correct answer: D. Provisions an external load balancer in supported clouds

79. An Ingress manages:

A. External HTTP/HTTPS routing to services ✔
B. Secrets
C. Storage
D. Pod scheduling

Correct answer: A. External HTTP/HTTPS routing to services

80. A Namespace is used to:

A. Encrypt data
B. Store images
C. Logically separate resources within a cluster ✔
D. Create nodes

Correct answer: C. Logically separate resources within a cluster

81. A ConfigMap stores:

A. Logs
B. Non-confidential configuration data ✔
C. Passwords securely
D. Container images

Correct answer: B. Non-confidential configuration data

82. A Secret stores:

A. Public config only
B. Images
C. Sensitive data such as passwords and tokens ✔
D. Large files

Correct answer: C. Sensitive data such as passwords and tokens

83. A PersistentVolumeClaim is:

A. A network policy
B. A request for storage by a pod ✔
C. A node
D. A container image

Correct answer: B. A request for storage by a pod

84. A StatefulSet is used for:

A. DNS
B. Batch jobs only
C. Stateful applications needing stable identities and storage ✔
D. Stateless web apps only

Correct answer: C. Stateful applications needing stable identities and storage

85. A DaemonSet ensures:

A. Pods run once
B. A pod runs on every (or selected) node ✔
C. Pods never restart
D. Only one pod runs

Correct answer: B. A pod runs on every (or selected) node

86. A Job runs:

A. Forever
B. Pods to completion for batch tasks ✔
C. Only on the control plane
D. Only DNS

Correct answer: B. Pods to completion for batch tasks

87. A CronJob runs:

A. Continuously
B. Jobs on a schedule ✔
C. Only manually
D. Only once ever

Correct answer: B. Jobs on a schedule

88. kubectl get pods:

A. Logs pods
B. Lists pods ✔
C. Deletes pods
D. Creates pods

Correct answer: B. Lists pods

89. kubectl apply -f file.yaml:

A. Builds images
B. Creates or updates resources from a manifest ✔
C. Pushes images
D. Deletes resources

Correct answer: B. Creates or updates resources from a manifest

90. kubectl describe pod name:

A. Exposes the pod
B. Builds the pod
C. Shows detailed information and events for a pod ✔
D. Deletes the pod

Correct answer: C. Shows detailed information and events for a pod

91. kubectl logs pod:

A. Applies manifests
B. Lists nodes
C. Scales deployments
D. Shows container logs from a pod ✔

Correct answer: D. Shows container logs from a pod

92. kubectl scale deployment app –replicas=5:

A. Creates namespaces
B. Builds images
C. Deletes the app
D. Changes the number of replicas to five ✔

Correct answer: D. Changes the number of replicas to five

93. Liveness probes:

A. Build images
B. Restart containers that are unhealthy ✔
C. Store data
D. Route traffic

Correct answer: B. Restart containers that are unhealthy

94. Readiness probes:

A. Control whether a pod receives traffic ✔
B. Restart containers
C. Scale nodes
D. Delete pods

Correct answer: A. Control whether a pod receives traffic

95. Resource requests and limits define:

A. Network ports
B. Image tags
C. Namespaces
D. CPU and memory reserved and allowed for containers ✔

Correct answer: D. CPU and memory reserved and allowed for containers

96. The Horizontal Pod Autoscaler:

A. Adds nodes only
B. Stores logs
C. Scales pod replicas based on metrics like CPU ✔
D. Builds images

Correct answer: C. Scales pod replicas based on metrics like CPU

97. Rolling updates in Deployments:

A. Never update
B. Require manual SSH
C. Delete all pods first
D. Replace pods gradually without downtime ✔

Correct answer: D. Replace pods gradually without downtime

98. kubectl rollout undo:

A. Deletes the cluster
B. Pushes images
C. Creates secrets
D. Rolls back a Deployment to a previous revision ✔

Correct answer: D. Rolls back a Deployment to a previous revision

99. Helm is:

A. A registry
B. A container runtime
C. A cloud
D. A package manager for Kubernetes applications using charts ✔

Correct answer: D. A package manager for Kubernetes applications using charts

100. Managed Kubernetes services include:

A. Docker Hub
B. EKS, AKS and GKE ✔
C. Jenkins only
D. GitHub Pages

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

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.

About Priya Dogra

Priya Dogra runs priyadogra.com, where she shares free certification courses, internships, jobs, scholarships and exam preparation guides for Indian students and freshers. Follow her on YouTube, LinkedIn and Instagram for the latest opportunities.

Check Also

Unix/ Linux Certification exam answers 2026

Unix/ Linux Certification Exam Answers 2026 (All 100 Questions)

All 100 Unix/ Linux Certification exam questions with correct answers highlighted - updated 2026.

Leave a Reply

Your email address will not be published. Required fields are marked *