PRACTICE / UNDERSTAND / REPEAT

Kubernetes MCQ Practice

Read manifests and reason about workloads, Services, scheduling, and resource limits.

250 questionsAnswers explainedFree · no login

Put your knowledge to the test.

A random set of up to 10 questions from Kubernetes. Your answers stay on this page.

Choose a topic

Try a few questions

Open a topic above to explore the complete question bank.

01 / Workloads · MCQQuestion link ↗

Which Kubernetes resource maintains a desired number of interchangeable Pods?

Choose one answer
Answer & explanation

Answer: Deployment

A Deployment manages ReplicaSets to keep the desired number of stateless Pods running.

02 / Services · MCQQuestion link ↗

Which Service type is reachable inside the cluster by default?

Choose one answer
Answer & explanation

Answer: ClusterIP

`ClusterIP` provides an internal virtual IP and is the default Service type.

03 / Selectors · MCQQuestion link ↗

What must a Deployment selector match?

Choose one answer
Answer & explanation

Answer: Labels on its Pod template

The Deployment selector identifies the Pods created from its template; its labels must match.

04 / Configuration · MCQQuestion link ↗

Which object is intended for non-sensitive configuration data?

Choose one answer
Answer & explanation

Answer: ConfigMap

ConfigMaps store non-confidential key-value configuration. Secrets are intended for sensitive values.

05 / Troubleshooting · MCQQuestion link ↗

Which command displays the recent logs from Pod `api`?

Choose one answer
Answer & explanation

Answer: kubectl logs api

`kubectl logs` prints a container’s stdout and stderr. `describe` shows resource details and events.

06 / Manifest structure · Code recallQuestion link ↗

Complete the Kubernetes field that selects the resource API version.

___: apps/v1
kind: Deployment
Answer & explanation

Answer: apiVersion

`apiVersion` selects the API version used to interpret a manifest.