Quiz Details
QZ-20251227-41147
Topics:
Kubernetes interview questions for senior
Difficulty:
Level 3 - Medium
Questions:
7
Generated:
December 27, 2025 at 06:14 PM
Generated by:
Guest User
Instructions: Select an answer for each question and click "Check Answer" to see if you're correct. Then view the explanation to learn more!
1 What is a Pod in Kubernetes?
Correct Answer:
D
Explanation: A Pod is the smallest deployable unit in Kubernetes, representing a single instance of a running process in the cluster.
Explanation: A Pod is the smallest deployable unit in Kubernetes, representing a single instance of a running process in the cluster.
2 Which Kubernetes component is responsible for maintaining the desired state of the cluster?
Correct Answer:
D
Explanation: The Controller Manager is responsible for maintaining the desired state of the cluster by monitoring the state of all resources and making adjustments as necessary.
Explanation: The Controller Manager is responsible for maintaining the desired state of the cluster by monitoring the state of all resources and making adjustments as necessary.
3 How does Kubernetes handle service discovery?
Correct Answer:
D
Explanation: Kubernetes uses DNS and Service objects to provide service discovery, allowing Pods to communicate with each other using their service names.
Explanation: Kubernetes uses DNS and Service objects to provide service discovery, allowing Pods to communicate with each other using their service names.
4 What is a ReplicaSet in Kubernetes?
Correct Answer:
B
Explanation: A ReplicaSet is a controller that ensures a specified number of pod replicas are running at any given time, providing high availability.
Explanation: A ReplicaSet is a controller that ensures a specified number of pod replicas are running at any given time, providing high availability.
5 Which command is used to view the logs of a specific Pod in Kubernetes?
Correct Answer:
B
Explanation: The correct command to view the logs of a specific Pod is 'kubectl logs', which retrieves logs from the specified Pod.
Explanation: The correct command to view the logs of a specific Pod is 'kubectl logs', which retrieves logs from the specified Pod.
6 What is the purpose of a ConfigMap in Kubernetes?
Correct Answer:
D
Explanation: A ConfigMap is used to store configuration data in key-value pairs, allowing applications to consume this configuration at runtime.
Explanation: A ConfigMap is used to store configuration data in key-value pairs, allowing applications to consume this configuration at runtime.
7 What does the 'kubectl apply' command do in Kubernetes?
Correct Answer:
A
Explanation: 'kubectl apply' is used to create or update resources in Kubernetes based on the provided YAML or JSON configuration files, applying changes in a declarative manner.
Explanation: 'kubectl apply' is used to create or update resources in Kubernetes based on the provided YAML or JSON configuration files, applying changes in a declarative manner.