nerdexam
Linux_Foundation

KCNA · Question #138

How can you extend the Kubernetes API?

The correct answer is A. Adding a CustomResourceDefinition or implementing an aggregation layer. The two official mechanisms to extend the Kubernetes API are CustomResourceDefinitions (CRDs) and the API Aggregation Layer (A). CRDs let you define new resource types stored in etcd without writing custom servers. The aggregation layer allows running extension API servers…

Submitted by rohit_dlh· May 4, 2026Kubernetes Fundamentals

Question

How can you extend the Kubernetes API?

Options

  • AAdding a CustomResourceDefinition or implementing an aggregation layer.
  • BAdding a new version of a resource, for instance v4beta3.
  • CWith the command kubectl extend api, logged in as an administrator.
  • DAdding the desired API object as a kubelet parameter

How the community answered

(29 responses)
  • A
    93% (27)
  • C
    3% (1)
  • D
    3% (1)

Explanation

The two official mechanisms to extend the Kubernetes API are CustomResourceDefinitions (CRDs) and the API Aggregation Layer (A). CRDs let you define new resource types stored in etcd without writing custom servers. The aggregation layer allows running extension API servers alongside the main API server. Option B is wrong - adding a new API version like v4beta3 modifies existing resources, not extends the API. Options C and D describe non-existent kubectl commands and kubelet parameters.

Topics

#Kubernetes API Extension#CustomResourceDefinition#CRD#Aggregation Layer

Community Discussion

No community discussion yet for this question.

Full KCNA Practice