nerdexam
Linux_Foundation

KCNA · Question #14

Which command will list the resource types that exist within a cluster?

The correct answer is A. kubectl api-resources. The kubectl api-resources command is used to display the list of all available resource types and their short names within a Kubernetes cluster.

Submitted by fatema_kw· May 4, 2026Kubernetes Fundamentals

Question

Which command will list the resource types that exist within a cluster?

Options

How the community answered

(33 responses)
  • A
    94% (31)
  • C
    3% (1)
  • D
    3% (1)

Why each option

The `kubectl api-resources` command is used to display the list of all available resource types and their short names within a Kubernetes cluster.

Akubectl api-resourcesCorrect

The `kubectl api-resources` command queries the Kubernetes API server to retrieve a comprehensive list of all resource types that the API server recognizes. This includes details like their API group, version, and whether they are namespace-scoped, making it the correct command for discovering available cluster resources.

Ckubectl api-versions

`kubectl api-versions` lists the API versions supported by the Kubernetes API server, not the resource types themselves.

Dcurl https://kubectrl/namespaces

This is an invalid `curl` command syntax for directly querying Kubernetes resources and is not the standard `kubectl` way to list resource types.

Concept tested: Listing Kubernetes API resources

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

Topics

#kubectl#API Resources#Cluster Inspection#Command Line Interface

Community Discussion

No community discussion yet for this question.

Full KCNA Practice