nerdexam
Linux_Foundation

KCNA · Question #174

What is the command to list all the available objects in your Kubernetes cluster?

The correct answer is C. kubectl api-resources. The kubectl api-resources command is used to list all the resource types that the Kubernetes API server understands and can be queried.

Submitted by alyssa_d· May 4, 2026Kubernetes Fundamentals

Question

What is the command to list all the available objects in your Kubernetes cluster?

Options

  • Akubectl get all
  • Bkubectl get api-resources
  • Ckubectl api-resources
  • Dkubectl get pods

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    89% (32)
  • D
    3% (1)

Why each option

The `kubectl api-resources` command is used to list all the resource types that the Kubernetes API server understands and can be queried.

Akubectl get all

`kubectl get all` lists a subset of common resources, not *all* available API resources.

Bkubectl get api-resources

`kubectl get api-resources` is syntactically incorrect; `api-resources` is a top-level command, not a resource type to `get`.

Ckubectl api-resourcesCorrect

The `kubectl api-resources` command lists all the available resource types (like Pods, Deployments, Services, etc.) that the Kubernetes API server exposes, indicating what objects can be created and managed in the cluster. This command provides a comprehensive overview of the resource types the API server recognizes.

Dkubectl get pods

`kubectl get pods` only lists Pod objects, not all available object types in the cluster.

Concept tested: Listing Kubernetes API resources

Source: https://kubernetes.io/docs/reference/kubectl/cheatsheet/#inspecting-and-finding-resources

Topics

#kubectl commands#API resources#Kubernetes objects#Cluster introspection

Community Discussion

No community discussion yet for this question.

Full KCNA Practice