Skip to content

Kubernetes API Questions

Practice questions for Kubernetes API topic in Kubernetes and Cloud Native Associate. 24 questions covering this domain.

24 questions6 easy12 medium6 hard
Q1
easy

A user runs kubectl get pods. Which component ultimately receives and processes that request?

Q2
medium

In a Kubernetes manifest, what does the apiVersion field identify?

Q3
medium

A team wants to manage resources declaratively so repeated commands converge the cluster toward the manifest in version control. Which kubectl command...

Q4
medium

A cluster operator wants to check what API resources are available on the cluster and which API group each belongs to. Which kubectl command provides ...

Q5
medium

A custom resource definition (CRD) has been installed in a cluster. A developer applies a manifest using this CRD. Which Kubernetes component validate...

Q6
easy

When writing a Kubernetes manifest for a Deployment, a developer uses `apiVersion: apps/v1`. What does the `apps` portion of this value represent?

Q7
easy

A security engineer wants RBAC rules that grant access only to Pod logs as a subresource. Which resource string should appear in the rule?

Q8
medium

A default service account in a normal application namespace has not been granted any custom RoleBindings. What access should you expect by default?

Q9
hard

A RoleBinding points to the wrong role, and the subject list is already correct. What is the required way to fix the referenced role?

Q10
medium

A security reviewer wants to add an RBAC rule that explicitly denies deleting Pods while preserving an older allow rule. What will Kubernetes RBAC act...

Q11
easy

A platform team wants one binding that grants a ClusterRole across every namespace. Which object should they create?

Q12
hard

A RoleBinding in production points to the wrong role. The subject list is fine, but the referenced role must change. What is the required fix?

Q13
hard

Why is `kubectl apply --dry-run=server` a better validation check than relying only on published OpenAPI schemas when precise verification matters?

Q14
hard

A client tool queries the Kubernetes API and receives inconsistent resource definitions across multiple clusters. The tool needs to understand which r...

Q15
medium

The Kubernetes API server exposes both a REST API and a gRPC API (streaming). Which resource modifications are better served by gRPC streaming compare...

Q16
medium

A Custom Resource Definition (CRD) is applied to a cluster. Before the custom controller is deployed, an operator applies a manifest for that custom r...

Q17
medium

A client is building a Kubernetes resource and needs to know which API group and version (apiVersion) to use for StatefulSet. The cluster is running K...

Q18
medium

The Kubernetes API provides both OpenAPI v2 and OpenAPI v3 schema endpoints. An API client tool needs to support multiple Kubernetes versions. Why mig...

Q19
easy

An autoscaler needs a generic way to change the replica count of a Deployment without editing the full object definition. Which Kubernetes API subreso...

Q20
medium

An operator wants to update only the observed health fields of a custom controller's object, not the desired configuration. Which subresource exists f...

Sign in to see all 24 questions

Create a free account to browse the questions included with the free plan.